Class CfnDataSource.OpenSearchServiceConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CfnDataSource.OpenSearchServiceConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.OpenSearchServiceConfigProperty>
- Enclosing interface:
- CfnDataSource.OpenSearchServiceConfigProperty
@Stability(Stable)
public static final class CfnDataSource.OpenSearchServiceConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.OpenSearchServiceConfigProperty>
A builder for
CfnDataSource.OpenSearchServiceConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDataSource.OpenSearchServiceConfigProperty.getAwsRegion()build()Builds the configured instance.Sets the value ofCfnDataSource.OpenSearchServiceConfigProperty.getEndpoint()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
awsRegion
@Stability(Stable) public CfnDataSource.OpenSearchServiceConfigProperty.Builder awsRegion(String awsRegion) Sets the value ofCfnDataSource.OpenSearchServiceConfigProperty.getAwsRegion()- Parameters:
awsRegion- The AWS Region. This parameter is required.- Returns:
this
-
endpoint
@Stability(Stable) public CfnDataSource.OpenSearchServiceConfigProperty.Builder endpoint(String endpoint) Sets the value ofCfnDataSource.OpenSearchServiceConfigProperty.getEndpoint()- Parameters:
endpoint- The endpoint. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSource.OpenSearchServiceConfigProperty>- Returns:
- a new instance of
CfnDataSource.OpenSearchServiceConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-