@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Parameters extends Object implements Serializable, Cloneable, StructuredPojo
[Snapshot and AMI policies only] Specifies optional parameters for snapshot and AMI policies. The set of valid parameters depends on the combination of policy type and target resource type.
If you choose to exclude boot volumes and you specify tags that consequently exclude all of the additional data
volumes attached to an instance, then Amazon Data Lifecycle Manager will not create any snapshots for the affected
instance, and it will emit a SnapshotsCreateFailed
Amazon CloudWatch metric. For more information, see
Monitor your policies using
Amazon CloudWatch.
Constructor and Description |
---|
Parameters() |
Modifier and Type | Method and Description |
---|---|
Parameters |
clone() |
boolean |
equals(Object obj) |
Boolean |
getExcludeBootVolume()
[Snapshot policies that target instances only] Indicates whether to exclude the root volume from
multi-volume snapshot sets.
|
List<Tag> |
getExcludeDataVolumeTags()
[Snapshot policies that target instances only] The tags used to identify data (non-root) volumes to
exclude from multi-volume snapshot sets.
|
Boolean |
getNoReboot()
[AMI policies only] Indicates whether targeted instances are rebooted when the lifecycle policy runs.
|
int |
hashCode() |
Boolean |
isExcludeBootVolume()
[Snapshot policies that target instances only] Indicates whether to exclude the root volume from
multi-volume snapshot sets.
|
Boolean |
isNoReboot()
[AMI policies only] Indicates whether targeted instances are rebooted when the lifecycle policy runs.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setExcludeBootVolume(Boolean excludeBootVolume)
[Snapshot policies that target instances only] Indicates whether to exclude the root volume from
multi-volume snapshot sets.
|
void |
setExcludeDataVolumeTags(Collection<Tag> excludeDataVolumeTags)
[Snapshot policies that target instances only] The tags used to identify data (non-root) volumes to
exclude from multi-volume snapshot sets.
|
void |
setNoReboot(Boolean noReboot)
[AMI policies only] Indicates whether targeted instances are rebooted when the lifecycle policy runs.
|
String |
toString()
Returns a string representation of this object.
|
Parameters |
withExcludeBootVolume(Boolean excludeBootVolume)
[Snapshot policies that target instances only] Indicates whether to exclude the root volume from
multi-volume snapshot sets.
|
Parameters |
withExcludeDataVolumeTags(Collection<Tag> excludeDataVolumeTags)
[Snapshot policies that target instances only] The tags used to identify data (non-root) volumes to
exclude from multi-volume snapshot sets.
|
Parameters |
withExcludeDataVolumeTags(Tag... excludeDataVolumeTags)
[Snapshot policies that target instances only] The tags used to identify data (non-root) volumes to
exclude from multi-volume snapshot sets.
|
Parameters |
withNoReboot(Boolean noReboot)
[AMI policies only] Indicates whether targeted instances are rebooted when the lifecycle policy runs.
|
public void setExcludeBootVolume(Boolean excludeBootVolume)
[Snapshot policies that target instances only] Indicates whether to exclude the root volume from
multi-volume snapshot sets. The default is false
. If you specify true
, then the root
volumes attached to targeted instances will be excluded from the multi-volume snapshot sets created by the
policy.
excludeBootVolume
- [Snapshot policies that target instances only] Indicates whether to exclude the root volume from
multi-volume snapshot sets. The default is false
. If you specify true
, then the
root volumes attached to targeted instances will be excluded from the multi-volume snapshot sets created
by the policy.public Boolean getExcludeBootVolume()
[Snapshot policies that target instances only] Indicates whether to exclude the root volume from
multi-volume snapshot sets. The default is false
. If you specify true
, then the root
volumes attached to targeted instances will be excluded from the multi-volume snapshot sets created by the
policy.
false
. If you specify true
, then the
root volumes attached to targeted instances will be excluded from the multi-volume snapshot sets created
by the policy.public Parameters withExcludeBootVolume(Boolean excludeBootVolume)
[Snapshot policies that target instances only] Indicates whether to exclude the root volume from
multi-volume snapshot sets. The default is false
. If you specify true
, then the root
volumes attached to targeted instances will be excluded from the multi-volume snapshot sets created by the
policy.
excludeBootVolume
- [Snapshot policies that target instances only] Indicates whether to exclude the root volume from
multi-volume snapshot sets. The default is false
. If you specify true
, then the
root volumes attached to targeted instances will be excluded from the multi-volume snapshot sets created
by the policy.public Boolean isExcludeBootVolume()
[Snapshot policies that target instances only] Indicates whether to exclude the root volume from
multi-volume snapshot sets. The default is false
. If you specify true
, then the root
volumes attached to targeted instances will be excluded from the multi-volume snapshot sets created by the
policy.
false
. If you specify true
, then the
root volumes attached to targeted instances will be excluded from the multi-volume snapshot sets created
by the policy.public void setNoReboot(Boolean noReboot)
[AMI policies only] Indicates whether targeted instances are rebooted when the lifecycle policy runs.
true
indicates that targeted instances are not rebooted when the policy runs. false
indicates that target instances are rebooted when the policy runs. The default is true
(instances
are not rebooted).
noReboot
- [AMI policies only] Indicates whether targeted instances are rebooted when the lifecycle policy
runs. true
indicates that targeted instances are not rebooted when the policy runs.
false
indicates that target instances are rebooted when the policy runs. The default is
true
(instances are not rebooted).public Boolean getNoReboot()
[AMI policies only] Indicates whether targeted instances are rebooted when the lifecycle policy runs.
true
indicates that targeted instances are not rebooted when the policy runs. false
indicates that target instances are rebooted when the policy runs. The default is true
(instances
are not rebooted).
true
indicates that targeted instances are not rebooted when the policy runs.
false
indicates that target instances are rebooted when the policy runs. The default is
true
(instances are not rebooted).public Parameters withNoReboot(Boolean noReboot)
[AMI policies only] Indicates whether targeted instances are rebooted when the lifecycle policy runs.
true
indicates that targeted instances are not rebooted when the policy runs. false
indicates that target instances are rebooted when the policy runs. The default is true
(instances
are not rebooted).
noReboot
- [AMI policies only] Indicates whether targeted instances are rebooted when the lifecycle policy
runs. true
indicates that targeted instances are not rebooted when the policy runs.
false
indicates that target instances are rebooted when the policy runs. The default is
true
(instances are not rebooted).public Boolean isNoReboot()
[AMI policies only] Indicates whether targeted instances are rebooted when the lifecycle policy runs.
true
indicates that targeted instances are not rebooted when the policy runs. false
indicates that target instances are rebooted when the policy runs. The default is true
(instances
are not rebooted).
true
indicates that targeted instances are not rebooted when the policy runs.
false
indicates that target instances are rebooted when the policy runs. The default is
true
(instances are not rebooted).public List<Tag> getExcludeDataVolumeTags()
[Snapshot policies that target instances only] The tags used to identify data (non-root) volumes to exclude from multi-volume snapshot sets.
If you create a snapshot lifecycle policy that targets instances and you specify tags for this parameter, then data volumes with the specified tags that are attached to targeted instances will be excluded from the multi-volume snapshot sets created by the policy.
If you create a snapshot lifecycle policy that targets instances and you specify tags for this parameter, then data volumes with the specified tags that are attached to targeted instances will be excluded from the multi-volume snapshot sets created by the policy.
public void setExcludeDataVolumeTags(Collection<Tag> excludeDataVolumeTags)
[Snapshot policies that target instances only] The tags used to identify data (non-root) volumes to exclude from multi-volume snapshot sets.
If you create a snapshot lifecycle policy that targets instances and you specify tags for this parameter, then data volumes with the specified tags that are attached to targeted instances will be excluded from the multi-volume snapshot sets created by the policy.
excludeDataVolumeTags
- [Snapshot policies that target instances only] The tags used to identify data (non-root) volumes to
exclude from multi-volume snapshot sets.
If you create a snapshot lifecycle policy that targets instances and you specify tags for this parameter, then data volumes with the specified tags that are attached to targeted instances will be excluded from the multi-volume snapshot sets created by the policy.
public Parameters withExcludeDataVolumeTags(Tag... excludeDataVolumeTags)
[Snapshot policies that target instances only] The tags used to identify data (non-root) volumes to exclude from multi-volume snapshot sets.
If you create a snapshot lifecycle policy that targets instances and you specify tags for this parameter, then data volumes with the specified tags that are attached to targeted instances will be excluded from the multi-volume snapshot sets created by the policy.
NOTE: This method appends the values to the existing list (if any). Use
setExcludeDataVolumeTags(java.util.Collection)
or
withExcludeDataVolumeTags(java.util.Collection)
if you want to override the existing values.
excludeDataVolumeTags
- [Snapshot policies that target instances only] The tags used to identify data (non-root) volumes to
exclude from multi-volume snapshot sets.
If you create a snapshot lifecycle policy that targets instances and you specify tags for this parameter, then data volumes with the specified tags that are attached to targeted instances will be excluded from the multi-volume snapshot sets created by the policy.
public Parameters withExcludeDataVolumeTags(Collection<Tag> excludeDataVolumeTags)
[Snapshot policies that target instances only] The tags used to identify data (non-root) volumes to exclude from multi-volume snapshot sets.
If you create a snapshot lifecycle policy that targets instances and you specify tags for this parameter, then data volumes with the specified tags that are attached to targeted instances will be excluded from the multi-volume snapshot sets created by the policy.
excludeDataVolumeTags
- [Snapshot policies that target instances only] The tags used to identify data (non-root) volumes to
exclude from multi-volume snapshot sets.
If you create a snapshot lifecycle policy that targets instances and you specify tags for this parameter, then data volumes with the specified tags that are attached to targeted instances will be excluded from the multi-volume snapshot sets created by the policy.
public String toString()
toString
in class Object
Object.toString()
public Parameters clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.