Struct aws_sdk_opensearch::types::builders::OptionStatusBuilder
source · #[non_exhaustive]pub struct OptionStatusBuilder { /* private fields */ }
Expand description
A builder for OptionStatus
.
Implementations§
source§impl OptionStatusBuilder
impl OptionStatusBuilder
sourcepub fn creation_date(self, input: DateTime) -> Self
pub fn creation_date(self, input: DateTime) -> Self
The timestamp when the entity was created.
This field is required.sourcepub fn set_creation_date(self, input: Option<DateTime>) -> Self
pub fn set_creation_date(self, input: Option<DateTime>) -> Self
The timestamp when the entity was created.
sourcepub fn get_creation_date(&self) -> &Option<DateTime>
pub fn get_creation_date(&self) -> &Option<DateTime>
The timestamp when the entity was created.
sourcepub fn update_date(self, input: DateTime) -> Self
pub fn update_date(self, input: DateTime) -> Self
The timestamp of the last time the entity was updated.
This field is required.sourcepub fn set_update_date(self, input: Option<DateTime>) -> Self
pub fn set_update_date(self, input: Option<DateTime>) -> Self
The timestamp of the last time the entity was updated.
sourcepub fn get_update_date(&self) -> &Option<DateTime>
pub fn get_update_date(&self) -> &Option<DateTime>
The timestamp of the last time the entity was updated.
sourcepub fn update_version(self, input: i32) -> Self
pub fn update_version(self, input: i32) -> Self
The latest version of the entity.
sourcepub fn set_update_version(self, input: Option<i32>) -> Self
pub fn set_update_version(self, input: Option<i32>) -> Self
The latest version of the entity.
sourcepub fn get_update_version(&self) -> &Option<i32>
pub fn get_update_version(&self) -> &Option<i32>
The latest version of the entity.
sourcepub fn state(self, input: OptionState) -> Self
pub fn state(self, input: OptionState) -> Self
The state of the entity.
This field is required.sourcepub fn set_state(self, input: Option<OptionState>) -> Self
pub fn set_state(self, input: Option<OptionState>) -> Self
The state of the entity.
sourcepub fn get_state(&self) -> &Option<OptionState>
pub fn get_state(&self) -> &Option<OptionState>
The state of the entity.
sourcepub fn pending_deletion(self, input: bool) -> Self
pub fn pending_deletion(self, input: bool) -> Self
Indicates whether the entity is being deleted.
sourcepub fn set_pending_deletion(self, input: Option<bool>) -> Self
pub fn set_pending_deletion(self, input: Option<bool>) -> Self
Indicates whether the entity is being deleted.
sourcepub fn get_pending_deletion(&self) -> &Option<bool>
pub fn get_pending_deletion(&self) -> &Option<bool>
Indicates whether the entity is being deleted.
sourcepub fn build(self) -> Result<OptionStatus, BuildError>
pub fn build(self) -> Result<OptionStatus, BuildError>
Consumes the builder and constructs a OptionStatus
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OptionStatusBuilder
impl Clone for OptionStatusBuilder
source§fn clone(&self) -> OptionStatusBuilder
fn clone(&self) -> OptionStatusBuilder
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 OptionStatusBuilder
impl Debug for OptionStatusBuilder
source§impl Default for OptionStatusBuilder
impl Default for OptionStatusBuilder
source§fn default() -> OptionStatusBuilder
fn default() -> OptionStatusBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for OptionStatusBuilder
impl PartialEq for OptionStatusBuilder
source§fn eq(&self, other: &OptionStatusBuilder) -> bool
fn eq(&self, other: &OptionStatusBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OptionStatusBuilder
Auto Trait Implementations§
impl RefUnwindSafe for OptionStatusBuilder
impl Send for OptionStatusBuilder
impl Sync for OptionStatusBuilder
impl Unpin for OptionStatusBuilder
impl UnwindSafe for OptionStatusBuilder
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.