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