@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Exclusions extends Object implements Serializable, Cloneable, StructuredPojo
[Default policies only] Specifies exclusion parameters for volumes or instances for which you do not want to create snapshots or AMIs. The policy will not create snapshots or AMIs for target resources that match any of the specified exclusion parameters.
Constructor and Description |
---|
Exclusions() |
Modifier and Type | Method and Description |
---|---|
Exclusions |
clone() |
boolean |
equals(Object obj) |
Boolean |
getExcludeBootVolumes()
[Default policies for EBS snapshots only] Indicates whether to exclude volumes that are attached to
instances as the boot volume.
|
List<Tag> |
getExcludeTags()
[Default policies for EBS-backed AMIs only] Specifies whether to exclude volumes that have specific tags.
|
List<String> |
getExcludeVolumeTypes()
[Default policies for EBS snapshots only] Specifies the volume types to exclude.
|
int |
hashCode() |
Boolean |
isExcludeBootVolumes()
[Default policies for EBS snapshots only] Indicates whether to exclude volumes that are attached to
instances as the boot volume.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setExcludeBootVolumes(Boolean excludeBootVolumes)
[Default policies for EBS snapshots only] Indicates whether to exclude volumes that are attached to
instances as the boot volume.
|
void |
setExcludeTags(Collection<Tag> excludeTags)
[Default policies for EBS-backed AMIs only] Specifies whether to exclude volumes that have specific tags.
|
void |
setExcludeVolumeTypes(Collection<String> excludeVolumeTypes)
[Default policies for EBS snapshots only] Specifies the volume types to exclude.
|
String |
toString()
Returns a string representation of this object.
|
Exclusions |
withExcludeBootVolumes(Boolean excludeBootVolumes)
[Default policies for EBS snapshots only] Indicates whether to exclude volumes that are attached to
instances as the boot volume.
|
Exclusions |
withExcludeTags(Collection<Tag> excludeTags)
[Default policies for EBS-backed AMIs only] Specifies whether to exclude volumes that have specific tags.
|
Exclusions |
withExcludeTags(Tag... excludeTags)
[Default policies for EBS-backed AMIs only] Specifies whether to exclude volumes that have specific tags.
|
Exclusions |
withExcludeVolumeTypes(Collection<String> excludeVolumeTypes)
[Default policies for EBS snapshots only] Specifies the volume types to exclude.
|
Exclusions |
withExcludeVolumeTypes(String... excludeVolumeTypes)
[Default policies for EBS snapshots only] Specifies the volume types to exclude.
|
public void setExcludeBootVolumes(Boolean excludeBootVolumes)
[Default policies for EBS snapshots only] Indicates whether to exclude volumes that are attached to
instances as the boot volume. If you exclude boot volumes, only volumes attached as data (non-boot) volumes will
be backed up by the policy. To exclude boot volumes, specify true
.
excludeBootVolumes
- [Default policies for EBS snapshots only] Indicates whether to exclude volumes that are attached to
instances as the boot volume. If you exclude boot volumes, only volumes attached as data (non-boot)
volumes will be backed up by the policy. To exclude boot volumes, specify true
.public Boolean getExcludeBootVolumes()
[Default policies for EBS snapshots only] Indicates whether to exclude volumes that are attached to
instances as the boot volume. If you exclude boot volumes, only volumes attached as data (non-boot) volumes will
be backed up by the policy. To exclude boot volumes, specify true
.
true
.public Exclusions withExcludeBootVolumes(Boolean excludeBootVolumes)
[Default policies for EBS snapshots only] Indicates whether to exclude volumes that are attached to
instances as the boot volume. If you exclude boot volumes, only volumes attached as data (non-boot) volumes will
be backed up by the policy. To exclude boot volumes, specify true
.
excludeBootVolumes
- [Default policies for EBS snapshots only] Indicates whether to exclude volumes that are attached to
instances as the boot volume. If you exclude boot volumes, only volumes attached as data (non-boot)
volumes will be backed up by the policy. To exclude boot volumes, specify true
.public Boolean isExcludeBootVolumes()
[Default policies for EBS snapshots only] Indicates whether to exclude volumes that are attached to
instances as the boot volume. If you exclude boot volumes, only volumes attached as data (non-boot) volumes will
be backed up by the policy. To exclude boot volumes, specify true
.
true
.public List<String> getExcludeVolumeTypes()
[Default policies for EBS snapshots only] Specifies the volume types to exclude. Volumes of the specified types will not be targeted by the policy.
public void setExcludeVolumeTypes(Collection<String> excludeVolumeTypes)
[Default policies for EBS snapshots only] Specifies the volume types to exclude. Volumes of the specified types will not be targeted by the policy.
excludeVolumeTypes
- [Default policies for EBS snapshots only] Specifies the volume types to exclude. Volumes of the
specified types will not be targeted by the policy.public Exclusions withExcludeVolumeTypes(String... excludeVolumeTypes)
[Default policies for EBS snapshots only] Specifies the volume types to exclude. Volumes of the specified types will not be targeted by the policy.
NOTE: This method appends the values to the existing list (if any). Use
setExcludeVolumeTypes(java.util.Collection)
or withExcludeVolumeTypes(java.util.Collection)
if
you want to override the existing values.
excludeVolumeTypes
- [Default policies for EBS snapshots only] Specifies the volume types to exclude. Volumes of the
specified types will not be targeted by the policy.public Exclusions withExcludeVolumeTypes(Collection<String> excludeVolumeTypes)
[Default policies for EBS snapshots only] Specifies the volume types to exclude. Volumes of the specified types will not be targeted by the policy.
excludeVolumeTypes
- [Default policies for EBS snapshots only] Specifies the volume types to exclude. Volumes of the
specified types will not be targeted by the policy.public List<Tag> getExcludeTags()
[Default policies for EBS-backed AMIs only] Specifies whether to exclude volumes that have specific tags.
public void setExcludeTags(Collection<Tag> excludeTags)
[Default policies for EBS-backed AMIs only] Specifies whether to exclude volumes that have specific tags.
excludeTags
- [Default policies for EBS-backed AMIs only] Specifies whether to exclude volumes that have specific
tags.public Exclusions withExcludeTags(Tag... excludeTags)
[Default policies for EBS-backed AMIs only] Specifies whether to exclude volumes that have specific tags.
NOTE: This method appends the values to the existing list (if any). Use
setExcludeTags(java.util.Collection)
or withExcludeTags(java.util.Collection)
if you want to
override the existing values.
excludeTags
- [Default policies for EBS-backed AMIs only] Specifies whether to exclude volumes that have specific
tags.public Exclusions withExcludeTags(Collection<Tag> excludeTags)
[Default policies for EBS-backed AMIs only] Specifies whether to exclude volumes that have specific tags.
excludeTags
- [Default policies for EBS-backed AMIs only] Specifies whether to exclude volumes that have specific
tags.public String toString()
toString
in class Object
Object.toString()
public Exclusions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.