@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ElasticsearchAction extends Object implements Serializable, Cloneable, StructuredPojo
Describes an action that writes data to an Amazon OpenSearch Service domain.
The Elasticsearch
action can only be used by existing rule actions. To create a new rule action or to
update an existing rule action, use the OpenSearch
rule action instead. For more information, see OpenSearchAction.
Constructor and Description |
---|
ElasticsearchAction() |
Modifier and Type | Method and Description |
---|---|
ElasticsearchAction |
clone() |
boolean |
equals(Object obj) |
String |
getEndpoint()
The endpoint of your OpenSearch domain.
|
String |
getId()
The unique identifier for the document you are storing.
|
String |
getIndex()
The index where you want to store your data.
|
String |
getRoleArn()
The IAM role ARN that has access to OpenSearch.
|
String |
getType()
The type of document you are storing.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEndpoint(String endpoint)
The endpoint of your OpenSearch domain.
|
void |
setId(String id)
The unique identifier for the document you are storing.
|
void |
setIndex(String index)
The index where you want to store your data.
|
void |
setRoleArn(String roleArn)
The IAM role ARN that has access to OpenSearch.
|
void |
setType(String type)
The type of document you are storing.
|
String |
toString()
Returns a string representation of this object.
|
ElasticsearchAction |
withEndpoint(String endpoint)
The endpoint of your OpenSearch domain.
|
ElasticsearchAction |
withId(String id)
The unique identifier for the document you are storing.
|
ElasticsearchAction |
withIndex(String index)
The index where you want to store your data.
|
ElasticsearchAction |
withRoleArn(String roleArn)
The IAM role ARN that has access to OpenSearch.
|
ElasticsearchAction |
withType(String type)
The type of document you are storing.
|
public void setRoleArn(String roleArn)
The IAM role ARN that has access to OpenSearch.
roleArn
- The IAM role ARN that has access to OpenSearch.public String getRoleArn()
The IAM role ARN that has access to OpenSearch.
public ElasticsearchAction withRoleArn(String roleArn)
The IAM role ARN that has access to OpenSearch.
roleArn
- The IAM role ARN that has access to OpenSearch.public void setEndpoint(String endpoint)
The endpoint of your OpenSearch domain.
endpoint
- The endpoint of your OpenSearch domain.public String getEndpoint()
The endpoint of your OpenSearch domain.
public ElasticsearchAction withEndpoint(String endpoint)
The endpoint of your OpenSearch domain.
endpoint
- The endpoint of your OpenSearch domain.public void setIndex(String index)
The index where you want to store your data.
index
- The index where you want to store your data.public String getIndex()
The index where you want to store your data.
public ElasticsearchAction withIndex(String index)
The index where you want to store your data.
index
- The index where you want to store your data.public void setType(String type)
The type of document you are storing.
type
- The type of document you are storing.public String getType()
The type of document you are storing.
public ElasticsearchAction withType(String type)
The type of document you are storing.
type
- The type of document you are storing.public void setId(String id)
The unique identifier for the document you are storing.
id
- The unique identifier for the document you are storing.public String getId()
The unique identifier for the document you are storing.
public ElasticsearchAction withId(String id)
The unique identifier for the document you are storing.
id
- The unique identifier for the document you are storing.public String toString()
toString
in class Object
Object.toString()
public ElasticsearchAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.