Class CfnCollectionProps.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchserverless.CfnCollectionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCollectionProps>
- Enclosing interface:
CfnCollectionProps
@Stability(Stable)
public static final class CfnCollectionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCollectionProps>
A builder for
CfnCollectionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.collectionGroupName(String collectionGroupName) Sets the value ofCfnCollectionProps.getCollectionGroupName()description(String description) Sets the value ofCfnCollectionProps.getDescription()encryptionConfig(IResolvable encryptionConfig) Sets the value ofCfnCollectionProps.getEncryptionConfig()encryptionConfig(CfnCollection.EncryptionConfigProperty encryptionConfig) Sets the value ofCfnCollectionProps.getEncryptionConfig()Sets the value ofCfnCollectionProps.getName()standbyReplicas(String standbyReplicas) Sets the value ofCfnCollectionProps.getStandbyReplicas()Sets the value ofCfnCollectionProps.getTags()Sets the value ofCfnCollectionProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnCollectionProps.getName()- Parameters:
name- The name of the collection. This parameter is required. 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
-
collectionGroupName
@Stability(Stable) public CfnCollectionProps.Builder collectionGroupName(String collectionGroupName) Sets the value ofCfnCollectionProps.getCollectionGroupName()- Parameters:
collectionGroupName- The name of the collection group. The name must meet the following criteria: Unique to your account and AWS Region Starts with a lowercase letter Contains only lowercase letters a-z, the numbers 0-9 and the hyphen (-) Contains between 3 and 32 characters- Returns:
this
-
description
Sets the value ofCfnCollectionProps.getDescription()- Parameters:
description- A description of the collection.- Returns:
this
-
encryptionConfig
Sets the value ofCfnCollectionProps.getEncryptionConfig()- Parameters:
encryptionConfig- The configuration to encrypt the collection.- Returns:
this
-
encryptionConfig
@Stability(Stable) public CfnCollectionProps.Builder encryptionConfig(CfnCollection.EncryptionConfigProperty encryptionConfig) Sets the value ofCfnCollectionProps.getEncryptionConfig()- Parameters:
encryptionConfig- The configuration to encrypt the collection.- Returns:
this
-
standbyReplicas
Sets the value ofCfnCollectionProps.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 ofCfnCollectionProps.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 ofCfnCollectionProps.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<CfnCollectionProps>- Returns:
- a new instance of
CfnCollectionProps - Throws:
NullPointerException- if any required attribute was not provided
-