#[non_exhaustive]pub struct TargetHealthDescriptionBuilder { /* private fields */ }
Expand description
A builder for TargetHealthDescription
.
Implementations§
source§impl TargetHealthDescriptionBuilder
impl TargetHealthDescriptionBuilder
sourcepub fn target(self, input: TargetDescription) -> Self
pub fn target(self, input: TargetDescription) -> Self
The description of the target.
sourcepub fn set_target(self, input: Option<TargetDescription>) -> Self
pub fn set_target(self, input: Option<TargetDescription>) -> Self
The description of the target.
sourcepub fn get_target(&self) -> &Option<TargetDescription>
pub fn get_target(&self) -> &Option<TargetDescription>
The description of the target.
sourcepub fn health_check_port(self, input: impl Into<String>) -> Self
pub fn health_check_port(self, input: impl Into<String>) -> Self
The port to use to connect with the target.
sourcepub fn set_health_check_port(self, input: Option<String>) -> Self
pub fn set_health_check_port(self, input: Option<String>) -> Self
The port to use to connect with the target.
sourcepub fn get_health_check_port(&self) -> &Option<String>
pub fn get_health_check_port(&self) -> &Option<String>
The port to use to connect with the target.
sourcepub fn target_health(self, input: TargetHealth) -> Self
pub fn target_health(self, input: TargetHealth) -> Self
The health information for the target.
sourcepub fn set_target_health(self, input: Option<TargetHealth>) -> Self
pub fn set_target_health(self, input: Option<TargetHealth>) -> Self
The health information for the target.
sourcepub fn get_target_health(&self) -> &Option<TargetHealth>
pub fn get_target_health(&self) -> &Option<TargetHealth>
The health information for the target.
sourcepub fn anomaly_detection(self, input: AnomalyDetection) -> Self
pub fn anomaly_detection(self, input: AnomalyDetection) -> Self
The anomaly detection result for the target.
If no anomalies were detected, the result is normal
.
If anomalies were detected, the result is anomalous
.
sourcepub fn set_anomaly_detection(self, input: Option<AnomalyDetection>) -> Self
pub fn set_anomaly_detection(self, input: Option<AnomalyDetection>) -> Self
The anomaly detection result for the target.
If no anomalies were detected, the result is normal
.
If anomalies were detected, the result is anomalous
.
sourcepub fn get_anomaly_detection(&self) -> &Option<AnomalyDetection>
pub fn get_anomaly_detection(&self) -> &Option<AnomalyDetection>
The anomaly detection result for the target.
If no anomalies were detected, the result is normal
.
If anomalies were detected, the result is anomalous
.
sourcepub fn build(self) -> TargetHealthDescription
pub fn build(self) -> TargetHealthDescription
Consumes the builder and constructs a TargetHealthDescription
.
Trait Implementations§
source§impl Clone for TargetHealthDescriptionBuilder
impl Clone for TargetHealthDescriptionBuilder
source§fn clone(&self) -> TargetHealthDescriptionBuilder
fn clone(&self) -> TargetHealthDescriptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TargetHealthDescriptionBuilder
impl Default for TargetHealthDescriptionBuilder
source§fn default() -> TargetHealthDescriptionBuilder
fn default() -> TargetHealthDescriptionBuilder
source§impl PartialEq for TargetHealthDescriptionBuilder
impl PartialEq for TargetHealthDescriptionBuilder
source§fn eq(&self, other: &TargetHealthDescriptionBuilder) -> bool
fn eq(&self, other: &TargetHealthDescriptionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.