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.description(String description) Sets the value ofCfnCollectionProps.getDescription()Sets the value ofCfnCollectionProps.getName()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
 - 
description
Sets the value ofCfnCollectionProps.getDescription()- Parameters:
 description- A description of the collection.- 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 areSEARCHandTIMESERIES. 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
 
 -