Struct aws_sdk_iot::model::elasticsearch_action::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ElasticsearchAction
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The IAM role ARN that has access to OpenSearch.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The IAM role ARN that has access to OpenSearch.
sourcepub fn endpoint(self, input: impl Into<String>) -> Self
pub fn endpoint(self, input: impl Into<String>) -> Self
The endpoint of your OpenSearch domain.
sourcepub fn set_endpoint(self, input: Option<String>) -> Self
pub fn set_endpoint(self, input: Option<String>) -> Self
The endpoint of your OpenSearch domain.
sourcepub fn index(self, input: impl Into<String>) -> Self
pub fn index(self, input: impl Into<String>) -> Self
The index where you want to store your data.
sourcepub fn set_index(self, input: Option<String>) -> Self
pub fn set_index(self, input: Option<String>) -> Self
The index where you want to store your data.
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The unique identifier for the document you are storing.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The unique identifier for the document you are storing.
sourcepub fn build(self) -> ElasticsearchAction
pub fn build(self) -> ElasticsearchAction
Consumes the builder and constructs a ElasticsearchAction
.