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<FpgaImageStateBuilder> for FpgaImageStateBuilder
impl PartialEq<FpgaImageStateBuilder> 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 ==
.