Class OpenSearchActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.actions.alpha.OpenSearchActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<OpenSearchActionProps>
- Enclosing interface:
OpenSearchActionProps
@Stability(Experimental)
public static final class OpenSearchActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<OpenSearchActionProps>
A builder for
OpenSearchActionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofOpenSearchActionProps.getId()Sets the value ofOpenSearchActionProps.getIndex()Sets the value ofCommonActionProps.getRole()Sets the value ofOpenSearchActionProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofOpenSearchActionProps.getId()- Parameters:
id- The unique identifier for the document you are storing. This parameter is required.- Returns:
this
-
index
Sets the value ofOpenSearchActionProps.getIndex()- Parameters:
index- The OpenSearch index where you want to store your data. This parameter is required.- Returns:
this
-
type
Sets the value ofOpenSearchActionProps.getType()- Parameters:
type- The type of document you are storing. This parameter is required.- Returns:
this
-
role
Sets the value ofCommonActionProps.getRole()- Parameters:
role- The IAM role that allows access to AWS service.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OpenSearchActionProps>- Returns:
- a new instance of
OpenSearchActionProps - Throws:
NullPointerException- if any required attribute was not provided
-