Struct aws_sdk_ec2::model::fpga_image_state::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for FpgaImageState
.
Implementations§
source§impl 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
.