Class CfnLifecyclePolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchserverless.CfnLifecyclePolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicyProps>
- Enclosing interface:
CfnLifecyclePolicyProps
@Stability(Stable)
public static final class CfnLifecyclePolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicyProps>
A builder for
CfnLifecyclePolicyProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnLifecyclePolicyProps.getDescription()
Sets the value ofCfnLifecyclePolicyProps.getName()
Sets the value ofCfnLifecyclePolicyProps.getPolicy()
Sets the value ofCfnLifecyclePolicyProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnLifecyclePolicyProps.getName()
- Parameters:
name
- The name of the lifecycle policy. This parameter is required.- Returns:
this
-
policy
Sets the value ofCfnLifecyclePolicyProps.getPolicy()
- Parameters:
policy
- The JSON policy document without any whitespaces. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnLifecyclePolicyProps.getType()
- Parameters:
type
- The type of lifecycle policy. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnLifecyclePolicyProps.getDescription()
- Parameters:
description
- The description of the lifecycle policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicyProps>
- Returns:
- a new instance of
CfnLifecyclePolicyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-