Struct aws_sdk_securityhub::types::builders::AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
source · #[non_exhaustive]pub struct AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder { /* private fields */ }Expand description
A builder for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.
Implementations§
source§impl AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
impl AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
sourcepub fn command(self, input: impl Into<String>) -> Self
pub fn command(self, input: impl Into<String>) -> Self
Appends an item to command.
To override the contents of this collection use set_command.
The command that the container runs to determine whether it is healthy.
sourcepub fn set_command(self, input: Option<Vec<String>>) -> Self
pub fn set_command(self, input: Option<Vec<String>>) -> Self
The command that the container runs to determine whether it is healthy.
sourcepub fn get_command(&self) -> &Option<Vec<String>>
pub fn get_command(&self) -> &Option<Vec<String>>
The command that the container runs to determine whether it is healthy.
sourcepub fn interval(self, input: i32) -> Self
pub fn interval(self, input: i32) -> Self
The time period in seconds between each health check execution. The default value is 30 seconds.
sourcepub fn set_interval(self, input: Option<i32>) -> Self
pub fn set_interval(self, input: Option<i32>) -> Self
The time period in seconds between each health check execution. The default value is 30 seconds.
sourcepub fn get_interval(&self) -> &Option<i32>
pub fn get_interval(&self) -> &Option<i32>
The time period in seconds between each health check execution. The default value is 30 seconds.
sourcepub fn retries(self, input: i32) -> Self
pub fn retries(self, input: i32) -> Self
The number of times to retry a failed health check before the container is considered unhealthy. The default value is 3.
sourcepub fn set_retries(self, input: Option<i32>) -> Self
pub fn set_retries(self, input: Option<i32>) -> Self
The number of times to retry a failed health check before the container is considered unhealthy. The default value is 3.
sourcepub fn get_retries(&self) -> &Option<i32>
pub fn get_retries(&self) -> &Option<i32>
The number of times to retry a failed health check before the container is considered unhealthy. The default value is 3.
sourcepub fn start_period(self, input: i32) -> Self
pub fn start_period(self, input: i32) -> Self
The optional grace period in seconds that allows containers time to bootstrap before failed health checks count towards the maximum number of retries.
sourcepub fn set_start_period(self, input: Option<i32>) -> Self
pub fn set_start_period(self, input: Option<i32>) -> Self
The optional grace period in seconds that allows containers time to bootstrap before failed health checks count towards the maximum number of retries.
sourcepub fn get_start_period(&self) -> &Option<i32>
pub fn get_start_period(&self) -> &Option<i32>
The optional grace period in seconds that allows containers time to bootstrap before failed health checks count towards the maximum number of retries.
sourcepub fn timeout(self, input: i32) -> Self
pub fn timeout(self, input: i32) -> Self
The time period in seconds to wait for a health check to succeed before it is considered a failure. The default value is 5.
sourcepub fn set_timeout(self, input: Option<i32>) -> Self
pub fn set_timeout(self, input: Option<i32>) -> Self
The time period in seconds to wait for a health check to succeed before it is considered a failure. The default value is 5.
sourcepub fn get_timeout(&self) -> &Option<i32>
pub fn get_timeout(&self) -> &Option<i32>
The time period in seconds to wait for a health check to succeed before it is considered a failure. The default value is 5.
sourcepub fn build(self) -> AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
pub fn build(self) -> AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails
Consumes the builder and constructs a AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.
Trait Implementations§
source§impl Clone for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
impl Clone for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
source§fn clone(
&self
) -> AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
fn clone( &self ) -> AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
impl Default for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
source§fn default(
) -> AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
fn default( ) -> AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
source§impl PartialEq for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
impl PartialEq for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
source§fn eq(
&self,
other: &AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
) -> bool
fn eq( &self, other: &AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder ) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
Auto Trait Implementations§
impl Freeze for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
impl RefUnwindSafe for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
impl Send for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
impl Sync for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
impl Unpin for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
impl UnwindSafe for AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetailsBuilder
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