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)>
impl<__Interval, __Retries, __StartPeriod, __Tests, __Timeout> ServiceTaskSpecContainerSpecHealthcheckBuilder<(__Interval, __Retries, __StartPeriod, __Tests, __Timeout)>
sourcepub fn build_struct(self) -> ServiceTaskSpecContainerSpecHealthcheckwhere
__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>,
pub fn build_struct(self) -> ServiceTaskSpecContainerSpecHealthcheckwhere
__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.
sourcepub fn maybe_interval(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::Intervalwhere
__Interval: IsUnset,
pub fn maybe_interval(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::Intervalwhere
__Interval: IsUnset,
Same as [Self::r#interval
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn interval(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::Intervalwhere
__Interval: IsUnset,
pub fn interval(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::Intervalwhere
__Interval: IsUnset,
Time between running the check (ms|s|m|h). Defaults to 0s
.
sourcepub fn maybe_retries(
self,
value: Option<impl Into<Box<Option<i32>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::Retrieswhere
__Retries: IsUnset,
pub fn maybe_retries(
self,
value: Option<impl Into<Box<Option<i32>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::Retrieswhere
__Retries: IsUnset,
Same as [Self::r#retries
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn retries(
self,
value: impl Into<Box<Option<i32>>>,
) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::Retrieswhere
__Retries: IsUnset,
pub fn retries(
self,
value: impl Into<Box<Option<i32>>>,
) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::Retrieswhere
__Retries: IsUnset,
Consecutive failures needed to report unhealthy. Defaults to 0
sourcepub fn maybe_start_period(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::StartPeriodwhere
__StartPeriod: IsUnset,
pub fn maybe_start_period(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::StartPeriodwhere
__StartPeriod: IsUnset,
Same as [Self::r#start_period
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn start_period(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::StartPeriodwhere
__StartPeriod: IsUnset,
pub fn start_period(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::StartPeriodwhere
__StartPeriod: IsUnset,
Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to 0s
.
sourcepub fn tests(
self,
value: impl Into<Box<Vec<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::Testswhere
__Tests: IsUnset,
pub fn tests(
self,
value: impl Into<Box<Vec<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecHealthcheckBuilderSetMember>::Testswhere
__Tests: IsUnset,
The test to perform as list
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> 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
Mutably borrows from an owned value. Read more