Class CfnTopicRulePropsMixin.ElasticsearchActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnTopicRulePropsMixin.ElasticsearchActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRulePropsMixin.ElasticsearchActionProperty>
- Enclosing interface:
CfnTopicRulePropsMixin.ElasticsearchActionProperty
@Stability(Stable)
public static final class CfnTopicRulePropsMixin.ElasticsearchActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRulePropsMixin.ElasticsearchActionProperty>
A builder for
CfnTopicRulePropsMixin.ElasticsearchActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTopicRulePropsMixin.ElasticsearchActionProperty.getEndpoint()Sets the value ofCfnTopicRulePropsMixin.ElasticsearchActionProperty.getId()Sets the value ofCfnTopicRulePropsMixin.ElasticsearchActionProperty.getIndex()Sets the value ofCfnTopicRulePropsMixin.ElasticsearchActionProperty.getRoleArn()Sets the value ofCfnTopicRulePropsMixin.ElasticsearchActionProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endpoint
@Stability(Stable) public CfnTopicRulePropsMixin.ElasticsearchActionProperty.Builder endpoint(String endpoint) Sets the value ofCfnTopicRulePropsMixin.ElasticsearchActionProperty.getEndpoint()- Parameters:
endpoint- The endpoint of your OpenSearch domain.- Returns:
this
-
id
Sets the value ofCfnTopicRulePropsMixin.ElasticsearchActionProperty.getId()- Parameters:
id- The unique identifier for the document you are storing.- Returns:
this
-
index
@Stability(Stable) public CfnTopicRulePropsMixin.ElasticsearchActionProperty.Builder index(String index) Sets the value ofCfnTopicRulePropsMixin.ElasticsearchActionProperty.getIndex()- Parameters:
index- The index where you want to store your data.- Returns:
this
-
roleArn
@Stability(Stable) public CfnTopicRulePropsMixin.ElasticsearchActionProperty.Builder roleArn(String roleArn) Sets the value ofCfnTopicRulePropsMixin.ElasticsearchActionProperty.getRoleArn()- Parameters:
roleArn- The IAM role ARN that has access to OpenSearch.- Returns:
this
-
type
@Stability(Stable) public CfnTopicRulePropsMixin.ElasticsearchActionProperty.Builder type(String type) Sets the value ofCfnTopicRulePropsMixin.ElasticsearchActionProperty.getType()- Parameters:
type- The type of document you are storing.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTopicRulePropsMixin.ElasticsearchActionProperty>- Returns:
- a new instance of
CfnTopicRulePropsMixin.ElasticsearchActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-