#[non_exhaustive]pub struct SingleInstanceHealthBuilder { /* private fields */ }
Expand description
A builder for SingleInstanceHealth
.
Implementations§
source§impl SingleInstanceHealthBuilder
impl SingleInstanceHealthBuilder
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The ID of the Amazon EC2 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 Amazon EC2 instance.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The ID of the Amazon EC2 instance.
sourcepub fn health_status(self, input: impl Into<String>) -> Self
pub fn health_status(self, input: impl Into<String>) -> Self
Returns the health status of the specified instance. For more information, see Health Colors and Statuses.
sourcepub fn set_health_status(self, input: Option<String>) -> Self
pub fn set_health_status(self, input: Option<String>) -> Self
Returns the health status of the specified instance. For more information, see Health Colors and Statuses.
sourcepub fn get_health_status(&self) -> &Option<String>
pub fn get_health_status(&self) -> &Option<String>
Returns the health status of the specified instance. For more information, see Health Colors and Statuses.
sourcepub fn color(self, input: impl Into<String>) -> Self
pub fn color(self, input: impl Into<String>) -> Self
Represents the color indicator that gives you information about the health of the EC2 instance. For more information, see Health Colors and Statuses.
sourcepub fn set_color(self, input: Option<String>) -> Self
pub fn set_color(self, input: Option<String>) -> Self
Represents the color indicator that gives you information about the health of the EC2 instance. For more information, see Health Colors and Statuses.
sourcepub fn get_color(&self) -> &Option<String>
pub fn get_color(&self) -> &Option<String>
Represents the color indicator that gives you information about the health of the EC2 instance. For more information, see Health Colors and Statuses.
sourcepub fn causes(self, input: impl Into<String>) -> Self
pub fn causes(self, input: impl Into<String>) -> Self
Appends an item to causes
.
To override the contents of this collection use set_causes
.
Represents the causes, which provide more information about the current health status.
sourcepub fn set_causes(self, input: Option<Vec<String>>) -> Self
pub fn set_causes(self, input: Option<Vec<String>>) -> Self
Represents the causes, which provide more information about the current health status.
sourcepub fn get_causes(&self) -> &Option<Vec<String>>
pub fn get_causes(&self) -> &Option<Vec<String>>
Represents the causes, which provide more information about the current health status.
sourcepub fn launched_at(self, input: DateTime) -> Self
pub fn launched_at(self, input: DateTime) -> Self
The time at which the EC2 instance was launched.
sourcepub fn set_launched_at(self, input: Option<DateTime>) -> Self
pub fn set_launched_at(self, input: Option<DateTime>) -> Self
The time at which the EC2 instance was launched.
sourcepub fn get_launched_at(&self) -> &Option<DateTime>
pub fn get_launched_at(&self) -> &Option<DateTime>
The time at which the EC2 instance was launched.
sourcepub fn application_metrics(self, input: ApplicationMetrics) -> Self
pub fn application_metrics(self, input: ApplicationMetrics) -> Self
Request metrics from your application.
sourcepub fn set_application_metrics(self, input: Option<ApplicationMetrics>) -> Self
pub fn set_application_metrics(self, input: Option<ApplicationMetrics>) -> Self
Request metrics from your application.
sourcepub fn get_application_metrics(&self) -> &Option<ApplicationMetrics>
pub fn get_application_metrics(&self) -> &Option<ApplicationMetrics>
Request metrics from your application.
sourcepub fn system(self, input: SystemStatus) -> Self
pub fn system(self, input: SystemStatus) -> Self
Operating system metrics from the instance.
sourcepub fn set_system(self, input: Option<SystemStatus>) -> Self
pub fn set_system(self, input: Option<SystemStatus>) -> Self
Operating system metrics from the instance.
sourcepub fn get_system(&self) -> &Option<SystemStatus>
pub fn get_system(&self) -> &Option<SystemStatus>
Operating system metrics from the instance.
sourcepub fn deployment(self, input: Deployment) -> Self
pub fn deployment(self, input: Deployment) -> Self
Information about the most recent deployment to an instance.
sourcepub fn set_deployment(self, input: Option<Deployment>) -> Self
pub fn set_deployment(self, input: Option<Deployment>) -> Self
Information about the most recent deployment to an instance.
sourcepub fn get_deployment(&self) -> &Option<Deployment>
pub fn get_deployment(&self) -> &Option<Deployment>
Information about the most recent deployment to an instance.
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The availability zone in which the instance runs.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The availability zone in which the instance runs.
sourcepub fn get_availability_zone(&self) -> &Option<String>
pub fn get_availability_zone(&self) -> &Option<String>
The availability zone in which the instance runs.
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
The instance's type.
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
The instance's type.
sourcepub fn get_instance_type(&self) -> &Option<String>
pub fn get_instance_type(&self) -> &Option<String>
The instance's type.
sourcepub fn build(self) -> SingleInstanceHealth
pub fn build(self) -> SingleInstanceHealth
Consumes the builder and constructs a SingleInstanceHealth
.
Trait Implementations§
source§impl Clone for SingleInstanceHealthBuilder
impl Clone for SingleInstanceHealthBuilder
source§fn clone(&self) -> SingleInstanceHealthBuilder
fn clone(&self) -> SingleInstanceHealthBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SingleInstanceHealthBuilder
impl Debug for SingleInstanceHealthBuilder
source§impl Default for SingleInstanceHealthBuilder
impl Default for SingleInstanceHealthBuilder
source§fn default() -> SingleInstanceHealthBuilder
fn default() -> SingleInstanceHealthBuilder
source§impl PartialEq<SingleInstanceHealthBuilder> for SingleInstanceHealthBuilder
impl PartialEq<SingleInstanceHealthBuilder> for SingleInstanceHealthBuilder
source§fn eq(&self, other: &SingleInstanceHealthBuilder) -> bool
fn eq(&self, other: &SingleInstanceHealthBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.