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