Struct aws_sdk_appmesh::model::outlier_detection::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for OutlierDetection
.
Implementations§
source§impl Builder
impl Builder
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 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 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 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 build(self) -> OutlierDetection
pub fn build(self) -> OutlierDetection
Consumes the builder and constructs a OutlierDetection
.