Struct aws_sdk_iot::types::builders::ElasticsearchActionBuilder
source · #[non_exhaustive]pub struct ElasticsearchActionBuilder { /* private fields */ }
Expand description
A builder for ElasticsearchAction
.
Implementations§
source§impl ElasticsearchActionBuilder
impl ElasticsearchActionBuilder
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.
This field is required.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 get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
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.
This field is required.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 get_endpoint(&self) -> &Option<String>
pub fn get_endpoint(&self) -> &Option<String>
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.
This field is required.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 type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
The type of document you are storing.
This field is required.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.
This field is required.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 get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The unique identifier for the document you are storing.
sourcepub fn build(self) -> Result<ElasticsearchAction, BuildError>
pub fn build(self) -> Result<ElasticsearchAction, BuildError>
Trait Implementations§
source§impl Clone for ElasticsearchActionBuilder
impl Clone for ElasticsearchActionBuilder
source§fn clone(&self) -> ElasticsearchActionBuilder
fn clone(&self) -> ElasticsearchActionBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ElasticsearchActionBuilder
impl Debug for ElasticsearchActionBuilder
source§impl Default for ElasticsearchActionBuilder
impl Default for ElasticsearchActionBuilder
source§fn default() -> ElasticsearchActionBuilder
fn default() -> ElasticsearchActionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ElasticsearchActionBuilder
impl PartialEq for ElasticsearchActionBuilder
source§fn eq(&self, other: &ElasticsearchActionBuilder) -> bool
fn eq(&self, other: &ElasticsearchActionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ElasticsearchActionBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ElasticsearchActionBuilder
impl Send for ElasticsearchActionBuilder
impl Sync for ElasticsearchActionBuilder
impl Unpin for ElasticsearchActionBuilder
impl UnwindSafe for ElasticsearchActionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.