#[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 ==
.impl StructuralPartialEq for TargetHealthDescriptionBuilder
Auto Trait Implementations§
impl Freeze for TargetHealthDescriptionBuilder
impl RefUnwindSafe for TargetHealthDescriptionBuilder
impl Send for TargetHealthDescriptionBuilder
impl Sync for TargetHealthDescriptionBuilder
impl Unpin for TargetHealthDescriptionBuilder
impl UnwindSafe for TargetHealthDescriptionBuilder
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