@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateSnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
CreateSnapshotRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getNamespaceName()
The namespace to create a snapshot for.
|
Integer |
getRetentionPeriod()
How long to retain the created snapshot.
|
String |
getSnapshotName()
The name of the snapshot.
|
int |
hashCode() |
void |
setNamespaceName(String namespaceName)
The namespace to create a snapshot for.
|
void |
setRetentionPeriod(Integer retentionPeriod)
How long to retain the created snapshot.
|
void |
setSnapshotName(String snapshotName)
The name of the snapshot.
|
String |
toString()
Returns a string representation of this object.
|
CreateSnapshotRequest |
withNamespaceName(String namespaceName)
The namespace to create a snapshot for.
|
CreateSnapshotRequest |
withRetentionPeriod(Integer retentionPeriod)
How long to retain the created snapshot.
|
CreateSnapshotRequest |
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 setNamespaceName(String namespaceName)
The namespace to create a snapshot for.
namespaceName
- The namespace to create a snapshot for.public String getNamespaceName()
The namespace to create a snapshot for.
public CreateSnapshotRequest withNamespaceName(String namespaceName)
The namespace to create a snapshot for.
namespaceName
- The namespace to create a snapshot for.public void setRetentionPeriod(Integer retentionPeriod)
How long to retain the created snapshot.
retentionPeriod
- How long to retain the created snapshot.public Integer getRetentionPeriod()
How long to retain the created snapshot.
public CreateSnapshotRequest withRetentionPeriod(Integer retentionPeriod)
How long to retain the created snapshot.
retentionPeriod
- How long to retain the created 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 CreateSnapshotRequest withSnapshotName(String snapshotName)
The name of the snapshot.
snapshotName
- The name of the snapshot.public String toString()
toString
in class Object
Object.toString()
public CreateSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()