@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateSnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateSnapshotRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Integer |
getRetentionPeriod()
The new retention period of the snapshot.
|
String |
getSnapshotName()
The name of the snapshot.
|
int |
hashCode() |
void |
setRetentionPeriod(Integer retentionPeriod)
The new retention period of the snapshot.
|
void |
setSnapshotName(String snapshotName)
The name of the snapshot.
|
String |
toString()
Returns a string representation of this object.
|
UpdateSnapshotRequest |
withRetentionPeriod(Integer retentionPeriod)
The new retention period of the snapshot.
|
UpdateSnapshotRequest |
withSnapshotName(String snapshotName)
The name of the snapshot.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setRetentionPeriod(Integer retentionPeriod)
The new retention period of the snapshot.
retentionPeriod
- The new retention period of the snapshot.public Integer getRetentionPeriod()
The new retention period of the snapshot.
public UpdateSnapshotRequest withRetentionPeriod(Integer retentionPeriod)
The new retention period of the snapshot.
retentionPeriod
- The new retention period of the snapshot.public void setSnapshotName(String snapshotName)
The name of the snapshot.
snapshotName
- The name of the snapshot.public String getSnapshotName()
The name of the snapshot.
public UpdateSnapshotRequest withSnapshotName(String snapshotName)
The name of the snapshot.
snapshotName
- The name of the snapshot.public String toString()
toString
in class Object
Object.toString()
public UpdateSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()