Class CfnLegalHoldMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.backup.CfnLegalHoldMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLegalHoldMixinProps>
- Enclosing interface:
CfnLegalHoldMixinProps
@Stability(Stable)
public static final class CfnLegalHoldMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLegalHoldMixinProps>
A builder for
CfnLegalHoldMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnLegalHoldMixinProps.getDescription()recoveryPointSelection(CfnLegalHoldPropsMixin.RecoveryPointSelectionProperty recoveryPointSelection) Sets the value ofCfnLegalHoldMixinProps.getRecoveryPointSelection()recoveryPointSelection(IResolvable recoveryPointSelection) Sets the value ofCfnLegalHoldMixinProps.getRecoveryPointSelection()tags(List<? extends CfnLegalHoldPropsMixin.TagsItemsProperty> tags) Sets the value ofCfnLegalHoldMixinProps.getTags()Sets the value ofCfnLegalHoldMixinProps.getTitle()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnLegalHoldMixinProps.getDescription()- Parameters:
description- The description of the legal hold.- Returns:
this
-
recoveryPointSelection
@Stability(Stable) public CfnLegalHoldMixinProps.Builder recoveryPointSelection(IResolvable recoveryPointSelection) Sets the value ofCfnLegalHoldMixinProps.getRecoveryPointSelection()- Parameters:
recoveryPointSelection- The criteria to assign a set of resources, such as resource types or backup vaults.- Returns:
this
-
recoveryPointSelection
@Stability(Stable) public CfnLegalHoldMixinProps.Builder recoveryPointSelection(CfnLegalHoldPropsMixin.RecoveryPointSelectionProperty recoveryPointSelection) Sets the value ofCfnLegalHoldMixinProps.getRecoveryPointSelection()- Parameters:
recoveryPointSelection- The criteria to assign a set of resources, such as resource types or backup vaults.- Returns:
this
-
tags
@Stability(Stable) public CfnLegalHoldMixinProps.Builder tags(List<? extends CfnLegalHoldPropsMixin.TagsItemsProperty> tags) Sets the value ofCfnLegalHoldMixinProps.getTags()- Parameters:
tags- Optional tags to include.- Returns:
this
-
title
Sets the value ofCfnLegalHoldMixinProps.getTitle()- Parameters:
title- The title of the legal hold.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLegalHoldMixinProps>- Returns:
- a new instance of
CfnLegalHoldMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-