Struct aws_sdk_iot::types::builders::OpenSearchActionBuilder
source · #[non_exhaustive]pub struct OpenSearchActionBuilder { /* private fields */ }
Expand description
A builder for OpenSearchAction
.
Implementations§
source§impl OpenSearchActionBuilder
impl OpenSearchActionBuilder
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 OpenSearch 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 OpenSearch index where you want to store your data.
sourcepub fn get_index(&self) -> &Option<String>
pub fn get_index(&self) -> &Option<String>
The OpenSearch 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<OpenSearchAction, BuildError>
pub fn build(self) -> Result<OpenSearchAction, BuildError>
Trait Implementations§
source§impl Clone for OpenSearchActionBuilder
impl Clone for OpenSearchActionBuilder
source§fn clone(&self) -> OpenSearchActionBuilder
fn clone(&self) -> OpenSearchActionBuilder
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 OpenSearchActionBuilder
impl Debug for OpenSearchActionBuilder
source§impl Default for OpenSearchActionBuilder
impl Default for OpenSearchActionBuilder
source§fn default() -> OpenSearchActionBuilder
fn default() -> OpenSearchActionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for OpenSearchActionBuilder
impl PartialEq for OpenSearchActionBuilder
source§fn eq(&self, other: &OpenSearchActionBuilder) -> bool
fn eq(&self, other: &OpenSearchActionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OpenSearchActionBuilder
Auto Trait Implementations§
impl Freeze for OpenSearchActionBuilder
impl RefUnwindSafe for OpenSearchActionBuilder
impl Send for OpenSearchActionBuilder
impl Sync for OpenSearchActionBuilder
impl Unpin for OpenSearchActionBuilder
impl UnwindSafe for OpenSearchActionBuilder
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.