/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.dlm.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* [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.
*
* [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.
*
* [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).
*
* [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. *
*/ private java.util.List
* [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 setExcludeBootVolume(Boolean excludeBootVolume) {
this.excludeBootVolume = 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.
*
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() {
return this.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.
*
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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Parameters withExcludeBootVolume(Boolean excludeBootVolume) {
setExcludeBootVolume(excludeBootVolume);
return this;
}
/**
*
* [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 Boolean isExcludeBootVolume() {
return this.excludeBootVolume;
}
/**
*
* [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 void setNoReboot(Boolean noReboot) {
this.noReboot = 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).
*
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() {
return this.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).
*
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).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Parameters withNoReboot(Boolean noReboot) {
setNoReboot(noReboot);
return this;
}
/**
*
* [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 Boolean isNoReboot() {
return this.noReboot;
}
/**
* * [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. *
* * @return [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 java.util.List
* [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(java.util.Collection
* [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
* {@link #setExcludeDataVolumeTags(java.util.Collection)} or
* {@link #withExcludeDataVolumeTags(java.util.Collection)} if you want to override the existing values.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Parameters withExcludeDataVolumeTags(Tag... excludeDataVolumeTags) {
if (this.excludeDataVolumeTags == null) {
setExcludeDataVolumeTags(new java.util.ArrayList
* [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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Parameters withExcludeDataVolumeTags(java.util.Collection