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 for ActiveInstanceBuilder
impl PartialEq 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 ==
.impl StructuralPartialEq for ActiveInstanceBuilder
Auto Trait Implementations§
impl Freeze for ActiveInstanceBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more