@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceSpecification extends Object implements Serializable, Cloneable
The instance details to specify which volumes should be snapshotted.
Constructor and Description |
---|
InstanceSpecification() |
Modifier and Type | Method and Description |
---|---|
InstanceSpecification |
clone() |
boolean |
equals(Object obj) |
Boolean |
getExcludeBootVolume()
Excludes the root volume from being snapshotted.
|
List<String> |
getExcludeDataVolumeIds() |
String |
getInstanceId()
The instance to specify which volumes should be snapshotted.
|
int |
hashCode() |
Boolean |
isExcludeBootVolume()
Excludes the root volume from being snapshotted.
|
void |
setExcludeBootVolume(Boolean excludeBootVolume)
Excludes the root volume from being snapshotted.
|
void |
setExcludeDataVolumeIds(Collection<String> excludeDataVolumeIds) |
void |
setInstanceId(String instanceId)
The instance to specify which volumes should be snapshotted.
|
String |
toString()
Returns a string representation of this object.
|
InstanceSpecification |
withExcludeBootVolume(Boolean excludeBootVolume)
Excludes the root volume from being snapshotted.
|
InstanceSpecification |
withExcludeDataVolumeIds(Collection<String> excludeDataVolumeIds) |
InstanceSpecification |
withExcludeDataVolumeIds(String... excludeDataVolumeIds)
NOTE: This method appends the values to the existing list (if any).
|
InstanceSpecification |
withInstanceId(String instanceId)
The instance to specify which volumes should be snapshotted.
|
public void setInstanceId(String instanceId)
The instance to specify which volumes should be snapshotted.
instanceId
- The instance to specify which volumes should be snapshotted.public String getInstanceId()
The instance to specify which volumes should be snapshotted.
public InstanceSpecification withInstanceId(String instanceId)
The instance to specify which volumes should be snapshotted.
instanceId
- The instance to specify which volumes should be snapshotted.public void setExcludeBootVolume(Boolean excludeBootVolume)
Excludes the root volume from being snapshotted.
excludeBootVolume
- Excludes the root volume from being snapshotted.public Boolean getExcludeBootVolume()
Excludes the root volume from being snapshotted.
public InstanceSpecification withExcludeBootVolume(Boolean excludeBootVolume)
Excludes the root volume from being snapshotted.
excludeBootVolume
- Excludes the root volume from being snapshotted.public Boolean isExcludeBootVolume()
Excludes the root volume from being snapshotted.
public void setExcludeDataVolumeIds(Collection<String> excludeDataVolumeIds)
excludeDataVolumeIds
- public InstanceSpecification withExcludeDataVolumeIds(String... excludeDataVolumeIds)
NOTE: This method appends the values to the existing list (if any). Use
setExcludeDataVolumeIds(java.util.Collection)
or withExcludeDataVolumeIds(java.util.Collection)
if you want to override the existing values.
excludeDataVolumeIds
- public InstanceSpecification withExcludeDataVolumeIds(Collection<String> excludeDataVolumeIds)
excludeDataVolumeIds
- public String toString()
toString
in class Object
Object.toString()
public InstanceSpecification clone()