pub struct ServiceTaskSpecContainerSpecHealthcheckBuilder<___State = __ServiceTaskSpecContainerSpecHealthcheckBuilderInitialState> { /* private fields */ }
Expand description

Use builder syntax to set the required parameters and finish by calling the method Self::build_struct().

Implementations§

source§

impl<__Interval, __Retries, __StartPeriod, __Tests, __Timeout> ServiceTaskSpecContainerSpecHealthcheckBuilder<(__Interval, __Retries, __StartPeriod, __Tests, __Timeout)>

source

pub fn build_struct(self) -> ServiceTaskSpecContainerSpecHealthcheck
where __Interval: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecHealthcheckBuilder__interval>, __Retries: IntoSet<Option<Box<Option<i32>>>, ServiceTaskSpecContainerSpecHealthcheckBuilder__retries>, __StartPeriod: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecHealthcheckBuilder__start_period>, __Tests: IntoSet<Box<Vec<String>>, ServiceTaskSpecContainerSpecHealthcheckBuilder__tests>, __Timeout: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecHealthcheckBuilder__timeout>,

Finishes building and returns the requested object.

source

pub fn maybe_interval( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::Interval
where __Interval: IsUnset,

Same as [Self::r#interval], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn interval( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::Interval
where __Interval: IsUnset,

Time between running the check (ms|s|m|h). Defaults to 0s.

source

pub fn maybe_retries( self, value: Option<impl Into<Box<Option<i32>>>>, ) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::Retries
where __Retries: IsUnset,

Same as [Self::r#retries], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn retries( self, value: impl Into<Box<Option<i32>>>, ) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::Retries
where __Retries: IsUnset,

Consecutive failures needed to report unhealthy. Defaults to 0

source

pub fn maybe_start_period( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::StartPeriod
where __StartPeriod: IsUnset,

Same as [Self::r#start_period], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn start_period( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::StartPeriod
where __StartPeriod: IsUnset,

Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to 0s.

source

pub fn tests( self, value: impl Into<Box<Vec<String>>>, ) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::Tests
where __Tests: IsUnset,

The test to perform as list

source

pub fn maybe_timeout( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::Timeout
where __Timeout: IsUnset,

Same as [Self::r#timeout], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn timeout( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::Timeout
where __Timeout: IsUnset,

Maximum time to allow one check to run (ms|s|m|h). Defaults to 0s.

Auto Trait Implementations§

§

impl<___State> Freeze for ServiceTaskSpecContainerSpecHealthcheckBuilder<___State>
where ___State: Freeze,

§

impl<___State> RefUnwindSafe for ServiceTaskSpecContainerSpecHealthcheckBuilder<___State>
where ___State: RefUnwindSafe,

§

impl<___State> Send for ServiceTaskSpecContainerSpecHealthcheckBuilder<___State>
where ___State: Send,

§

impl<___State> Sync for ServiceTaskSpecContainerSpecHealthcheckBuilder<___State>
where ___State: Sync,

§

impl<___State> Unpin for ServiceTaskSpecContainerSpecHealthcheckBuilder<___State>
where ___State: Unpin,

§

impl<___State> UnwindSafe for ServiceTaskSpecContainerSpecHealthcheckBuilder<___State>
where ___State: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.