Struct aws_sdk_ec2::model::fpga_image_state::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for FpgaImageState
.
Implementations
sourceimpl Builder
impl Builder
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 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 build(self) -> FpgaImageState
pub fn build(self) -> FpgaImageState
Consumes the builder and constructs a FpgaImageState
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more