Class CollectionGroupReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.opensearchserverless.CollectionGroupReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CollectionGroupReference>
- Enclosing interface:
CollectionGroupReference
@Stability(Stable)
public static final class CollectionGroupReference.Builder
extends Object
implements software.amazon.jsii.Builder<CollectionGroupReference>
A builder for
CollectionGroupReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.collectionGroupArn(String collectionGroupArn) Sets the value ofCollectionGroupReference.getCollectionGroupArn()collectionGroupId(String collectionGroupId) Sets the value ofCollectionGroupReference.getCollectionGroupId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
collectionGroupArn
@Stability(Stable) public CollectionGroupReference.Builder collectionGroupArn(String collectionGroupArn) Sets the value ofCollectionGroupReference.getCollectionGroupArn()- Parameters:
collectionGroupArn- The ARN of the CollectionGroup resource. This parameter is required.- Returns:
this
-
collectionGroupId
@Stability(Stable) public CollectionGroupReference.Builder collectionGroupId(String collectionGroupId) Sets the value ofCollectionGroupReference.getCollectionGroupId()- Parameters:
collectionGroupId- The Id of the CollectionGroup resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CollectionGroupReference>- Returns:
- a new instance of
CollectionGroupReference - Throws:
NullPointerException- if any required attribute was not provided
-