Struct aws_sdk_ec2::types::builders::ActiveInstanceBuilder
source · #[non_exhaustive]pub struct ActiveInstanceBuilder { /* private fields */ }
Expand description
A builder for ActiveInstance
.
Implementations§
source§impl ActiveInstanceBuilder
impl ActiveInstanceBuilder
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 get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
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 get_instance_type(&self) -> &Option<String>
pub fn get_instance_type(&self) -> &Option<String>
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 get_spot_instance_request_id(&self) -> &Option<String>
pub fn get_spot_instance_request_id(&self) -> &Option<String>
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 get_instance_health(&self) -> &Option<InstanceHealthStatus>
pub fn get_instance_health(&self) -> &Option<InstanceHealthStatus>
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
.
Trait Implementations§
source§impl Clone for ActiveInstanceBuilder
impl Clone for ActiveInstanceBuilder
source§fn clone(&self) -> ActiveInstanceBuilder
fn clone(&self) -> ActiveInstanceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ActiveInstanceBuilder
impl Debug for ActiveInstanceBuilder
source§impl Default for ActiveInstanceBuilder
impl Default for ActiveInstanceBuilder
source§fn default() -> ActiveInstanceBuilder
fn default() -> ActiveInstanceBuilder
source§impl PartialEq<ActiveInstanceBuilder> for ActiveInstanceBuilder
impl PartialEq<ActiveInstanceBuilder> for ActiveInstanceBuilder
source§fn eq(&self, other: &ActiveInstanceBuilder) -> bool
fn eq(&self, other: &ActiveInstanceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.