Struct aws_sdk_appmesh::types::builders::OutlierDetectionBuilder
source · #[non_exhaustive]pub struct OutlierDetectionBuilder { /* private fields */ }
Expand description
A builder for OutlierDetection
.
Implementations§
source§impl OutlierDetectionBuilder
impl OutlierDetectionBuilder
sourcepub fn max_server_errors(self, input: i64) -> Self
pub fn max_server_errors(self, input: i64) -> Self
Number of consecutive 5xx
errors required for ejection.
sourcepub fn set_max_server_errors(self, input: Option<i64>) -> Self
pub fn set_max_server_errors(self, input: Option<i64>) -> Self
Number of consecutive 5xx
errors required for ejection.
sourcepub fn get_max_server_errors(&self) -> &Option<i64>
pub fn get_max_server_errors(&self) -> &Option<i64>
Number of consecutive 5xx
errors required for ejection.
sourcepub fn interval(self, input: Duration) -> Self
pub fn interval(self, input: Duration) -> Self
The time interval between ejection sweep analysis.
sourcepub fn set_interval(self, input: Option<Duration>) -> Self
pub fn set_interval(self, input: Option<Duration>) -> Self
The time interval between ejection sweep analysis.
sourcepub fn get_interval(&self) -> &Option<Duration>
pub fn get_interval(&self) -> &Option<Duration>
The time interval between ejection sweep analysis.
sourcepub fn base_ejection_duration(self, input: Duration) -> Self
pub fn base_ejection_duration(self, input: Duration) -> Self
The base amount of time for which a host is ejected.
sourcepub fn set_base_ejection_duration(self, input: Option<Duration>) -> Self
pub fn set_base_ejection_duration(self, input: Option<Duration>) -> Self
The base amount of time for which a host is ejected.
sourcepub fn get_base_ejection_duration(&self) -> &Option<Duration>
pub fn get_base_ejection_duration(&self) -> &Option<Duration>
The base amount of time for which a host is ejected.
sourcepub fn max_ejection_percent(self, input: i32) -> Self
pub fn max_ejection_percent(self, input: i32) -> Self
Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value.
sourcepub fn set_max_ejection_percent(self, input: Option<i32>) -> Self
pub fn set_max_ejection_percent(self, input: Option<i32>) -> Self
Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value.
sourcepub fn get_max_ejection_percent(&self) -> &Option<i32>
pub fn get_max_ejection_percent(&self) -> &Option<i32>
Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value.
sourcepub fn build(self) -> OutlierDetection
pub fn build(self) -> OutlierDetection
Consumes the builder and constructs a OutlierDetection
.
Trait Implementations§
source§impl Clone for OutlierDetectionBuilder
impl Clone for OutlierDetectionBuilder
source§fn clone(&self) -> OutlierDetectionBuilder
fn clone(&self) -> OutlierDetectionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OutlierDetectionBuilder
impl Debug for OutlierDetectionBuilder
source§impl Default for OutlierDetectionBuilder
impl Default for OutlierDetectionBuilder
source§fn default() -> OutlierDetectionBuilder
fn default() -> OutlierDetectionBuilder
source§impl PartialEq<OutlierDetectionBuilder> for OutlierDetectionBuilder
impl PartialEq<OutlierDetectionBuilder> for OutlierDetectionBuilder
source§fn eq(&self, other: &OutlierDetectionBuilder) -> bool
fn eq(&self, other: &OutlierDetectionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.