Class CfnLifecyclePolicyPropsMixin.ParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.dlm.CfnLifecyclePolicyPropsMixin.ParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.ParametersProperty>
- Enclosing interface:
CfnLifecyclePolicyPropsMixin.ParametersProperty
@Stability(Stable)
public static final class CfnLifecyclePolicyPropsMixin.ParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.ParametersProperty>
A builder for
CfnLifecyclePolicyPropsMixin.ParametersProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.excludeBootVolume(Boolean excludeBootVolume) Sets the value ofCfnLifecyclePolicyPropsMixin.ParametersProperty.getExcludeBootVolume()excludeBootVolume(IResolvable excludeBootVolume) Sets the value ofCfnLifecyclePolicyPropsMixin.ParametersProperty.getExcludeBootVolume()excludeDataVolumeTags(List<? extends Object> excludeDataVolumeTags) excludeDataVolumeTags(IResolvable excludeDataVolumeTags) Sets the value ofCfnLifecyclePolicyPropsMixin.ParametersProperty.getNoReboot()noReboot(IResolvable noReboot) Sets the value ofCfnLifecyclePolicyPropsMixin.ParametersProperty.getNoReboot()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
excludeBootVolume
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ParametersProperty.Builder excludeBootVolume(Boolean excludeBootVolume) Sets the value ofCfnLifecyclePolicyPropsMixin.ParametersProperty.getExcludeBootVolume()- Parameters:
excludeBootVolume- [Custom snapshot policies that target instances only] Indicates whether to exclude the root volume from multi-volume snapshot sets. The default isfalse. If you specifytrue, then the root volumes attached to targeted instances will be excluded from the multi-volume snapshot sets created by the policy.- Returns:
this
-
excludeBootVolume
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ParametersProperty.Builder excludeBootVolume(IResolvable excludeBootVolume) Sets the value ofCfnLifecyclePolicyPropsMixin.ParametersProperty.getExcludeBootVolume()- Parameters:
excludeBootVolume- [Custom snapshot policies that target instances only] Indicates whether to exclude the root volume from multi-volume snapshot sets. The default isfalse. If you specifytrue, then the root volumes attached to targeted instances will be excluded from the multi-volume snapshot sets created by the policy.- Returns:
this
-
excludeDataVolumeTags
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ParametersProperty.Builder excludeDataVolumeTags(IResolvable excludeDataVolumeTags) - Parameters:
excludeDataVolumeTags- [Custom 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.- Returns:
this
-
excludeDataVolumeTags
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ParametersProperty.Builder excludeDataVolumeTags(List<? extends Object> excludeDataVolumeTags) - Parameters:
excludeDataVolumeTags- [Custom 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.- Returns:
this
-
noReboot
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ParametersProperty.Builder noReboot(Boolean noReboot) Sets the value ofCfnLifecyclePolicyPropsMixin.ParametersProperty.getNoReboot()- Parameters:
noReboot- [Custom AMI policies only] Indicates whether targeted instances are rebooted when the lifecycle policy runs.trueindicates that targeted instances are not rebooted when the policy runs.falseindicates that target instances are rebooted when the policy runs. The default istrue(instances are not rebooted).- Returns:
this
-
noReboot
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ParametersProperty.Builder noReboot(IResolvable noReboot) Sets the value ofCfnLifecyclePolicyPropsMixin.ParametersProperty.getNoReboot()- Parameters:
noReboot- [Custom AMI policies only] Indicates whether targeted instances are rebooted when the lifecycle policy runs.trueindicates that targeted instances are not rebooted when the policy runs.falseindicates that target instances are rebooted when the policy runs. The default istrue(instances are not rebooted).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.ParametersProperty>- Returns:
- a new instance of
CfnLifecyclePolicyPropsMixin.ParametersProperty - Throws:
NullPointerException- if any required attribute was not provided
-