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.
This field is required.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.
This field is required.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.
This field is required.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) -> Result<OutlierDetection, BuildError>
pub fn build(self) -> Result<OutlierDetection, BuildError>
Consumes the builder and constructs a OutlierDetection
.
This method will fail if any of the following fields are not set:
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 for OutlierDetectionBuilder
impl PartialEq 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 ==
.impl StructuralPartialEq for OutlierDetectionBuilder
Auto Trait Implementations§
impl Freeze for OutlierDetectionBuilder
impl RefUnwindSafe for OutlierDetectionBuilder
impl Send for OutlierDetectionBuilder
impl Sync for OutlierDetectionBuilder
impl Unpin for OutlierDetectionBuilder
impl UnwindSafe for OutlierDetectionBuilder
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