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