Class CfnLifecyclePolicy.ExclusionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.ExclusionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.ExclusionsProperty>
- Enclosing interface:
CfnLifecyclePolicy.ExclusionsProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.ExclusionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.ExclusionsProperty>
A builder for
CfnLifecyclePolicy.ExclusionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.excludeBootVolumes(Boolean excludeBootVolumes) Sets the value ofCfnLifecyclePolicy.ExclusionsProperty.getExcludeBootVolumes()excludeBootVolumes(IResolvable excludeBootVolumes) Sets the value ofCfnLifecyclePolicy.ExclusionsProperty.getExcludeBootVolumes()excludeTags(Object excludeTags) Sets the value ofCfnLifecyclePolicy.ExclusionsProperty.getExcludeTags()excludeVolumeTypes(Object excludeVolumeTypes) Sets the value ofCfnLifecyclePolicy.ExclusionsProperty.getExcludeVolumeTypes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
excludeBootVolumes
@Stability(Stable) public CfnLifecyclePolicy.ExclusionsProperty.Builder excludeBootVolumes(Boolean excludeBootVolumes) Sets the value ofCfnLifecyclePolicy.ExclusionsProperty.getExcludeBootVolumes()- Parameters:
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, specifytrue.- Returns:
this
-
excludeBootVolumes
@Stability(Stable) public CfnLifecyclePolicy.ExclusionsProperty.Builder excludeBootVolumes(IResolvable excludeBootVolumes) Sets the value ofCfnLifecyclePolicy.ExclusionsProperty.getExcludeBootVolumes()- Parameters:
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, specifytrue.- Returns:
this
-
excludeTags
@Stability(Stable) public CfnLifecyclePolicy.ExclusionsProperty.Builder excludeTags(Object excludeTags) Sets the value ofCfnLifecyclePolicy.ExclusionsProperty.getExcludeTags()- Parameters:
excludeTags- [Default policies for EBS-backed AMIs only] Specifies whether to exclude volumes that have specific tags.- Returns:
this
-
excludeVolumeTypes
@Stability(Stable) public CfnLifecyclePolicy.ExclusionsProperty.Builder excludeVolumeTypes(Object excludeVolumeTypes) Sets the value ofCfnLifecyclePolicy.ExclusionsProperty.getExcludeVolumeTypes()- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.ExclusionsProperty>- Returns:
- a new instance of
CfnLifecyclePolicy.ExclusionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-