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 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
.
Trait Implementations§
source§impl Clone for ActiveInstanceBuilder
impl Clone for ActiveInstanceBuilder
source§fn clone(&self) -> ActiveInstanceBuilder
fn clone(&self) -> ActiveInstanceBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
source§impl PartialEq<ActiveInstanceBuilder> for ActiveInstanceBuilder
impl PartialEq<ActiveInstanceBuilder> for ActiveInstanceBuilder
source§fn eq(&self, other: &ActiveInstanceBuilder) -> bool
fn eq(&self, other: &ActiveInstanceBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ActiveInstanceBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ActiveInstanceBuilder
impl Send for ActiveInstanceBuilder
impl Sync for ActiveInstanceBuilder
impl Unpin for ActiveInstanceBuilder
impl UnwindSafe for ActiveInstanceBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more