Struct aws_sdk_ec2::types::builders::FpgaImageStateBuilder
source · #[non_exhaustive]pub struct FpgaImageStateBuilder { /* private fields */ }
Expand description
A builder for FpgaImageState
.
Implementations§
source§impl FpgaImageStateBuilder
impl FpgaImageStateBuilder
sourcepub fn code(self, input: FpgaImageStateCode) -> Self
pub fn code(self, input: FpgaImageStateCode) -> Self
The state. The following are the possible values:
-
pending
- AFI bitstream generation is in progress. -
available
- The AFI is available for use. -
failed
- AFI bitstream generation failed. -
unavailable
- The AFI is no longer available for use.
sourcepub fn set_code(self, input: Option<FpgaImageStateCode>) -> Self
pub fn set_code(self, input: Option<FpgaImageStateCode>) -> Self
The state. The following are the possible values:
-
pending
- AFI bitstream generation is in progress. -
available
- The AFI is available for use. -
failed
- AFI bitstream generation failed. -
unavailable
- The AFI is no longer available for use.
sourcepub fn get_code(&self) -> &Option<FpgaImageStateCode>
pub fn get_code(&self) -> &Option<FpgaImageStateCode>
The state. The following are the possible values:
-
pending
- AFI bitstream generation is in progress. -
available
- The AFI is available for use. -
failed
- AFI bitstream generation failed. -
unavailable
- The AFI is no longer available for use.
sourcepub fn message(self, input: impl Into<String>) -> Self
pub fn message(self, input: impl Into<String>) -> Self
If the state is failed
, this is the error message.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
If the state is failed
, this is the error message.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
If the state is failed
, this is the error message.
sourcepub fn build(self) -> FpgaImageState
pub fn build(self) -> FpgaImageState
Consumes the builder and constructs a FpgaImageState
.
Trait Implementations§
source§impl Clone for FpgaImageStateBuilder
impl Clone for FpgaImageStateBuilder
source§fn clone(&self) -> FpgaImageStateBuilder
fn clone(&self) -> FpgaImageStateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FpgaImageStateBuilder
impl Debug for FpgaImageStateBuilder
source§impl Default for FpgaImageStateBuilder
impl Default for FpgaImageStateBuilder
source§fn default() -> FpgaImageStateBuilder
fn default() -> FpgaImageStateBuilder
source§impl PartialEq for FpgaImageStateBuilder
impl PartialEq for FpgaImageStateBuilder
source§fn eq(&self, other: &FpgaImageStateBuilder) -> bool
fn eq(&self, other: &FpgaImageStateBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FpgaImageStateBuilder
Auto Trait Implementations§
impl Freeze for FpgaImageStateBuilder
impl RefUnwindSafe for FpgaImageStateBuilder
impl Send for FpgaImageStateBuilder
impl Sync for FpgaImageStateBuilder
impl Unpin for FpgaImageStateBuilder
impl UnwindSafe for FpgaImageStateBuilder
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