Struct aws_sdk_ec2::types::builders::SpotInstanceStatusBuilder
source · #[non_exhaustive]pub struct SpotInstanceStatusBuilder { /* private fields */ }
Expand description
A builder for SpotInstanceStatus
.
Implementations§
source§impl SpotInstanceStatusBuilder
impl SpotInstanceStatusBuilder
sourcepub fn code(self, input: impl Into<String>) -> Self
pub fn code(self, input: impl Into<String>) -> Self
The status code. For a list of status codes, see Spot request status codes in the Amazon EC2 User Guide.
sourcepub fn set_code(self, input: Option<String>) -> Self
pub fn set_code(self, input: Option<String>) -> Self
The status code. For a list of status codes, see Spot request status codes in the Amazon EC2 User Guide.
sourcepub fn get_code(&self) -> &Option<String>
pub fn get_code(&self) -> &Option<String>
The status code. For a list of status codes, see Spot request status codes in the Amazon EC2 User Guide.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
The description for the status code.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
The description for the status code.
sourcepub fn update_time(self, input: DateTime) -> Self
pub fn update_time(self, input: DateTime) -> Self
The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
sourcepub fn set_update_time(self, input: Option<DateTime>) -> Self
pub fn set_update_time(self, input: Option<DateTime>) -> Self
The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
sourcepub fn get_update_time(&self) -> &Option<DateTime>
pub fn get_update_time(&self) -> &Option<DateTime>
The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
sourcepub fn build(self) -> SpotInstanceStatus
pub fn build(self) -> SpotInstanceStatus
Consumes the builder and constructs a SpotInstanceStatus
.
Trait Implementations§
source§impl Clone for SpotInstanceStatusBuilder
impl Clone for SpotInstanceStatusBuilder
source§fn clone(&self) -> SpotInstanceStatusBuilder
fn clone(&self) -> SpotInstanceStatusBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SpotInstanceStatusBuilder
impl Debug for SpotInstanceStatusBuilder
source§impl Default for SpotInstanceStatusBuilder
impl Default for SpotInstanceStatusBuilder
source§fn default() -> SpotInstanceStatusBuilder
fn default() -> SpotInstanceStatusBuilder
source§impl PartialEq for SpotInstanceStatusBuilder
impl PartialEq for SpotInstanceStatusBuilder
source§fn eq(&self, other: &SpotInstanceStatusBuilder) -> bool
fn eq(&self, other: &SpotInstanceStatusBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SpotInstanceStatusBuilder
Auto Trait Implementations§
impl Freeze for SpotInstanceStatusBuilder
impl RefUnwindSafe for SpotInstanceStatusBuilder
impl Send for SpotInstanceStatusBuilder
impl Sync for SpotInstanceStatusBuilder
impl Unpin for SpotInstanceStatusBuilder
impl UnwindSafe for SpotInstanceStatusBuilder
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
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>
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>
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 more