@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()
The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set.
|
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)
The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set.
|
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)
The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set.
|
InstanceSpecification |
withExcludeDataVolumeIds(String... excludeDataVolumeIds)
The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set.
|
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 List<String> getExcludeDataVolumeIds()
The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set. If you specify the ID of the root volume, the request fails. To exclude the root volume, use ExcludeBootVolume.
You can specify up to 40 volume IDs per request.
You can specify up to 40 volume IDs per request.
public void setExcludeDataVolumeIds(Collection<String> excludeDataVolumeIds)
The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set. If you specify the ID of the root volume, the request fails. To exclude the root volume, use ExcludeBootVolume.
You can specify up to 40 volume IDs per request.
excludeDataVolumeIds
- The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set. If you specify the
ID of the root volume, the request fails. To exclude the root volume, use ExcludeBootVolume.
You can specify up to 40 volume IDs per request.
public InstanceSpecification withExcludeDataVolumeIds(String... excludeDataVolumeIds)
The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set. If you specify the ID of the root volume, the request fails. To exclude the root volume, use ExcludeBootVolume.
You can specify up to 40 volume IDs per request.
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
- The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set. If you specify the
ID of the root volume, the request fails. To exclude the root volume, use ExcludeBootVolume.
You can specify up to 40 volume IDs per request.
public InstanceSpecification withExcludeDataVolumeIds(Collection<String> excludeDataVolumeIds)
The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set. If you specify the ID of the root volume, the request fails. To exclude the root volume, use ExcludeBootVolume.
You can specify up to 40 volume IDs per request.
excludeDataVolumeIds
- The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set. If you specify the
ID of the root volume, the request fails. To exclude the root volume, use ExcludeBootVolume.
You can specify up to 40 volume IDs per request.
public String toString()
toString
in class Object
Object.toString()
public InstanceSpecification clone()