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