@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateInstanceSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateInstanceSnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
CreateInstanceSnapshotRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getInstanceName()
The Lightsail instance on which to base your snapshot.
|
String |
getInstanceSnapshotName()
The name for your new snapshot.
|
List<Tag> |
getTags()
The tag keys and optional values to add to the resource during create.
|
int |
hashCode() |
void |
setInstanceName(String instanceName)
The Lightsail instance on which to base your snapshot.
|
void |
setInstanceSnapshotName(String instanceSnapshotName)
The name for your new snapshot.
|
void |
setTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
|
String |
toString()
Returns a string representation of this object.
|
CreateInstanceSnapshotRequest |
withInstanceName(String instanceName)
The Lightsail instance on which to base your snapshot.
|
CreateInstanceSnapshotRequest |
withInstanceSnapshotName(String instanceSnapshotName)
The name for your new snapshot.
|
CreateInstanceSnapshotRequest |
withTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
|
CreateInstanceSnapshotRequest |
withTags(Tag... tags)
The tag keys and optional values to add to the resource during create.
|
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 setInstanceSnapshotName(String instanceSnapshotName)
The name for your new snapshot.
instanceSnapshotName
- The name for your new snapshot.public String getInstanceSnapshotName()
The name for your new snapshot.
public CreateInstanceSnapshotRequest withInstanceSnapshotName(String instanceSnapshotName)
The name for your new snapshot.
instanceSnapshotName
- The name for your new snapshot.public void setInstanceName(String instanceName)
The Lightsail instance on which to base your snapshot.
instanceName
- The Lightsail instance on which to base your snapshot.public String getInstanceName()
The Lightsail instance on which to base your snapshot.
public CreateInstanceSnapshotRequest withInstanceName(String instanceName)
The Lightsail instance on which to base your snapshot.
instanceName
- The Lightsail instance on which to base your snapshot.public List<Tag> getTags()
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
Use the TagResource
action to tag a resource after it's created.
public void setTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
tags
- The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
public CreateInstanceSnapshotRequest withTags(Tag... tags)
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
public CreateInstanceSnapshotRequest withTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
tags
- The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
public String toString()
toString
in class Object
Object.toString()
public CreateInstanceSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()