Struct aws_sdk_ec2::model::active_instance::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ActiveInstance
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The ID of the instance.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The ID of the instance.
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
The instance type.
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
The instance type.
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 instance_health(self, input: InstanceHealthStatus) -> Self
pub fn instance_health(self, input: InstanceHealthStatus) -> Self
The health status of the instance. If the status of either the instance status check or the system status check is impaired
, the health status of the instance is unhealthy
. Otherwise, the health status is healthy
.
sourcepub fn set_instance_health(self, input: Option<InstanceHealthStatus>) -> Self
pub fn set_instance_health(self, input: Option<InstanceHealthStatus>) -> Self
The health status of the instance. If the status of either the instance status check or the system status check is impaired
, the health status of the instance is unhealthy
. Otherwise, the health status is healthy
.
sourcepub fn build(self) -> ActiveInstance
pub fn build(self) -> ActiveInstance
Consumes the builder and constructs a ActiveInstance
.