Struct aws_sdk_ec2::model::spot_instance_status::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for SpotInstanceStatus
.
Implementations§
source§impl Builder
impl Builder
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 for Linux Instances.
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 for Linux Instances.
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 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 build(self) -> SpotInstanceStatus
pub fn build(self) -> SpotInstanceStatus
Consumes the builder and constructs a SpotInstanceStatus
.