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