Class CfnCollectionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.opensearchserverless.CfnCollectionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCollectionMixinProps>
- Enclosing interface:
CfnCollectionMixinProps
@Stability(Stable)
public static final class CfnCollectionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCollectionMixinProps>
A builder for
CfnCollectionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.collectionGroupName(String collectionGroupName) Sets the value ofCfnCollectionMixinProps.getCollectionGroupName()description(String description) Sets the value ofCfnCollectionMixinProps.getDescription()encryptionConfig(CfnCollectionPropsMixin.EncryptionConfigProperty encryptionConfig) Sets the value ofCfnCollectionMixinProps.getEncryptionConfig()encryptionConfig(IResolvable encryptionConfig) Sets the value ofCfnCollectionMixinProps.getEncryptionConfig()Sets the value ofCfnCollectionMixinProps.getName()standbyReplicas(String standbyReplicas) Sets the value ofCfnCollectionMixinProps.getStandbyReplicas()Sets the value ofCfnCollectionMixinProps.getTags()Sets the value ofCfnCollectionMixinProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
collectionGroupName
@Stability(Stable) public CfnCollectionMixinProps.Builder collectionGroupName(String collectionGroupName) Sets the value ofCfnCollectionMixinProps.getCollectionGroupName()- Parameters:
collectionGroupName- The name of the collection group to associate with the collection.- Returns:
this
-
description
Sets the value ofCfnCollectionMixinProps.getDescription()- Parameters:
description- A description of the collection.- Returns:
this
-
encryptionConfig
@Stability(Stable) public CfnCollectionMixinProps.Builder encryptionConfig(IResolvable encryptionConfig) Sets the value ofCfnCollectionMixinProps.getEncryptionConfig()- Parameters:
encryptionConfig- Encryption settings for the collection.- Returns:
this
-
encryptionConfig
@Stability(Stable) public CfnCollectionMixinProps.Builder encryptionConfig(CfnCollectionPropsMixin.EncryptionConfigProperty encryptionConfig) Sets the value ofCfnCollectionMixinProps.getEncryptionConfig()- Parameters:
encryptionConfig- Encryption settings for the collection.- Returns:
this
-
name
Sets the value ofCfnCollectionMixinProps.getName()- Parameters:
name- The name of the collection. Collection names must meet the following criteria:- Starts with a lowercase letter
- Unique to your account and AWS Region
- Contains between 3 and 28 characters
- Contains only lowercase letters a-z, the numbers 0-9, and the hyphen (-)
- Returns:
this
-
standbyReplicas
Sets the value ofCfnCollectionMixinProps.getStandbyReplicas()- Parameters:
standbyReplicas- Indicates whether to use standby replicas for the collection. You can't update this property after the collection is already created. If you attempt to modify this property, the collection continues to use the original value.- Returns:
this
-
tags
Sets the value ofCfnCollectionMixinProps.getTags()- Parameters:
tags- An arbitrary set of tags (key–value pairs) to associate with the collection. For more information, see Tag .- Returns:
this
-
type
Sets the value ofCfnCollectionMixinProps.getType()- Parameters:
type- The type of collection. Possible values areSEARCH,TIMESERIES, andVECTORSEARCH. For more information, see Choosing a collection type .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCollectionMixinProps>- Returns:
- a new instance of
CfnCollectionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-