/** * Constructs a new CreateSnapshotRequest object. Callers should use the setter or fluent setter * (with...) methods to initialize any additional object members. * * @param volumeId The ID of the EBS volume. * @param description A description for the snapshot. */ public CreateSnapshotRequest(String volumeId, String description) { setVolumeId(volumeId); setDescription(description); }
/** * A description for the snapshot. * * @param description A description for the snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSnapshotRequest withDescription(String description) { setDescription(description); return this; }