pub struct ServiceTaskSpecRestartPolicyBuilder<___State = __ServiceTaskSpecRestartPolicyBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build_struct()
.
Implementations§
source§impl<__Condition, __Delay, __MaxAttempts, __Window> ServiceTaskSpecRestartPolicyBuilder<(__Condition, __Delay, __MaxAttempts, __Window)>
impl<__Condition, __Delay, __MaxAttempts, __Window> ServiceTaskSpecRestartPolicyBuilder<(__Condition, __Delay, __MaxAttempts, __Window)>
sourcepub fn build_struct(self) -> ServiceTaskSpecRestartPolicywhere
__Condition: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecRestartPolicyBuilder__condition>,
__Delay: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecRestartPolicyBuilder__delay>,
__MaxAttempts: IntoSet<Option<Box<Option<i32>>>, ServiceTaskSpecRestartPolicyBuilder__max_attempts>,
__Window: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecRestartPolicyBuilder__window>,
pub fn build_struct(self) -> ServiceTaskSpecRestartPolicywhere
__Condition: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecRestartPolicyBuilder__condition>,
__Delay: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecRestartPolicyBuilder__delay>,
__MaxAttempts: IntoSet<Option<Box<Option<i32>>>, ServiceTaskSpecRestartPolicyBuilder__max_attempts>,
__Window: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecRestartPolicyBuilder__window>,
Finishes building and returns the requested object.
sourcepub fn maybe_condition(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecRestartPolicyBuilderSetMember>::Conditionwhere
__Condition: IsUnset,
pub fn maybe_condition(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecRestartPolicyBuilderSetMember>::Conditionwhere
__Condition: IsUnset,
Same as [Self::r#condition
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn condition(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecRestartPolicyBuilderSetMember>::Conditionwhere
__Condition: IsUnset,
pub fn condition(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecRestartPolicyBuilderSetMember>::Conditionwhere
__Condition: IsUnset,
Condition for restart
sourcepub fn maybe_delay(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecRestartPolicyBuilderSetMember>::Delaywhere
__Delay: IsUnset,
pub fn maybe_delay(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecRestartPolicyBuilderSetMember>::Delaywhere
__Delay: IsUnset,
Same as [Self::r#delay
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn delay(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecRestartPolicyBuilderSetMember>::Delaywhere
__Delay: IsUnset,
pub fn delay(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecRestartPolicyBuilderSetMember>::Delaywhere
__Delay: IsUnset,
Delay between restart attempts (ms|s|m|h)
sourcepub fn maybe_max_attempts(
self,
value: Option<impl Into<Box<Option<i32>>>>,
) -> <Self as __ServiceTaskSpecRestartPolicyBuilderSetMember>::MaxAttemptswhere
__MaxAttempts: IsUnset,
pub fn maybe_max_attempts(
self,
value: Option<impl Into<Box<Option<i32>>>>,
) -> <Self as __ServiceTaskSpecRestartPolicyBuilderSetMember>::MaxAttemptswhere
__MaxAttempts: IsUnset,
Same as [Self::r#max_attempts
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn max_attempts(
self,
value: impl Into<Box<Option<i32>>>,
) -> <Self as __ServiceTaskSpecRestartPolicyBuilderSetMember>::MaxAttemptswhere
__MaxAttempts: IsUnset,
pub fn max_attempts(
self,
value: impl Into<Box<Option<i32>>>,
) -> <Self as __ServiceTaskSpecRestartPolicyBuilderSetMember>::MaxAttemptswhere
__MaxAttempts: IsUnset,
Maximum attempts to restart a given container before giving up (default value is 0
, which is ignored)
Auto Trait Implementations§
impl<___State> Freeze for ServiceTaskSpecRestartPolicyBuilder<___State>where
___State: Freeze,
impl<___State> RefUnwindSafe for ServiceTaskSpecRestartPolicyBuilder<___State>where
___State: RefUnwindSafe,
impl<___State> Send for ServiceTaskSpecRestartPolicyBuilder<___State>where
___State: Send,
impl<___State> Sync for ServiceTaskSpecRestartPolicyBuilder<___State>where
___State: Sync,
impl<___State> Unpin for ServiceTaskSpecRestartPolicyBuilder<___State>where
___State: Unpin,
impl<___State> UnwindSafe for ServiceTaskSpecRestartPolicyBuilder<___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