Class CfnLegalHold.Builder
java.lang.Object
software.amazon.awscdk.services.backup.CfnLegalHold.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLegalHold>
- Enclosing class:
CfnLegalHold
@Stability(Stable)
public static final class CfnLegalHold.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLegalHold>
A fluent builder for
CfnLegalHold.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnLegalHold.Builderdescription(String description) The description of the legal hold.recoveryPointSelection(IResolvable recoveryPointSelection) The criteria to assign a set of resources, such as resource types or backup vaults.recoveryPointSelection(CfnLegalHold.RecoveryPointSelectionProperty recoveryPointSelection) The criteria to assign a set of resources, such as resource types or backup vaults.tags(List<? extends CfnLegalHold.TagsItemsProperty> tags) Optional tags to include.The title of the legal hold.
-
Method Details
-
create
@Stability(Stable) public static CfnLegalHold.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnLegalHold.Builder.
-
description
The description of the legal hold.- Parameters:
description- The description of the legal hold. This parameter is required.- Returns:
this- See Also:
-
recoveryPointSelection
@Stability(Stable) public CfnLegalHold.Builder recoveryPointSelection(IResolvable recoveryPointSelection) The criteria to assign a set of resources, such as resource types or backup vaults.- Parameters:
recoveryPointSelection- The criteria to assign a set of resources, such as resource types or backup vaults. This parameter is required.- Returns:
this- See Also:
-
recoveryPointSelection
@Stability(Stable) public CfnLegalHold.Builder recoveryPointSelection(CfnLegalHold.RecoveryPointSelectionProperty recoveryPointSelection) The criteria to assign a set of resources, such as resource types or backup vaults.- Parameters:
recoveryPointSelection- The criteria to assign a set of resources, such as resource types or backup vaults. This parameter is required.- Returns:
this- See Also:
-
title
The title of the legal hold.- Parameters:
title- The title of the legal hold. This parameter is required.- Returns:
this- See Also:
-
tags
@Stability(Stable) public CfnLegalHold.Builder tags(List<? extends CfnLegalHold.TagsItemsProperty> tags) Optional tags to include.- Parameters:
tags- Optional tags to include. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLegalHold>- Returns:
- a newly built instance of
CfnLegalHold.
-