Class CfnCollectionGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchserverless.CfnCollectionGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCollectionGroupProps>
- Enclosing interface:
CfnCollectionGroupProps
@Stability(Stable)
public static final class CfnCollectionGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCollectionGroupProps>
A builder for
CfnCollectionGroupProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capacityLimits(IResolvable capacityLimits) Sets the value ofCfnCollectionGroupProps.getCapacityLimits()capacityLimits(CfnCollectionGroup.CapacityLimitsProperty capacityLimits) Sets the value ofCfnCollectionGroupProps.getCapacityLimits()description(String description) Sets the value ofCfnCollectionGroupProps.getDescription()Sets the value ofCfnCollectionGroupProps.getName()standbyReplicas(String standbyReplicas) Sets the value ofCfnCollectionGroupProps.getStandbyReplicas()Sets the value ofCfnCollectionGroupProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnCollectionGroupProps.getName()- Parameters:
name- The name of the collection group. This parameter is required.- Returns:
this
-
standbyReplicas
Sets the value ofCfnCollectionGroupProps.getStandbyReplicas()- Parameters:
standbyReplicas- Indicates whether standby replicas are used for the collection group. This parameter is required.- Returns:
this
-
capacityLimits
@Stability(Stable) public CfnCollectionGroupProps.Builder capacityLimits(IResolvable capacityLimits) Sets the value ofCfnCollectionGroupProps.getCapacityLimits()- Parameters:
capacityLimits- the value to be set.- Returns:
this
-
capacityLimits
@Stability(Stable) public CfnCollectionGroupProps.Builder capacityLimits(CfnCollectionGroup.CapacityLimitsProperty capacityLimits) Sets the value ofCfnCollectionGroupProps.getCapacityLimits()- Parameters:
capacityLimits- the value to be set.- Returns:
this
-
description
Sets the value ofCfnCollectionGroupProps.getDescription()- Parameters:
description- The description of the collection group.- Returns:
this
-
tags
Sets the value ofCfnCollectionGroupProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCollectionGroupProps>- Returns:
- a new instance of
CfnCollectionGroupProps - Throws:
NullPointerException- if any required attribute was not provided
-