Struct aws_sdk_ec2::model::cancelled_spot_instance_request::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CancelledSpotInstanceRequest
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn spot_instance_request_id(self, input: impl Into<String>) -> Self
pub fn spot_instance_request_id(self, input: impl Into<String>) -> Self
The ID of the Spot Instance request.
sourcepub fn set_spot_instance_request_id(self, input: Option<String>) -> Self
pub fn set_spot_instance_request_id(self, input: Option<String>) -> Self
The ID of the Spot Instance request.
sourcepub fn state(self, input: CancelSpotInstanceRequestState) -> Self
pub fn state(self, input: CancelSpotInstanceRequestState) -> Self
The state of the Spot Instance request.
sourcepub fn set_state(self, input: Option<CancelSpotInstanceRequestState>) -> Self
pub fn set_state(self, input: Option<CancelSpotInstanceRequestState>) -> Self
The state of the Spot Instance request.
sourcepub fn build(self) -> CancelledSpotInstanceRequest
pub fn build(self) -> CancelledSpotInstanceRequest
Consumes the builder and constructs a CancelledSpotInstanceRequest
.