pub struct ServiceRollbackConfigBuilder<___State = __ServiceRollbackConfigBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build_struct()
.
Implementations§
source§impl<__Delay, __FailureAction, __MaxFailureRatio, __Monitor, __Order, __Parallelism> ServiceRollbackConfigBuilder<(__Delay, __FailureAction, __MaxFailureRatio, __Monitor, __Order, __Parallelism)>
impl<__Delay, __FailureAction, __MaxFailureRatio, __Monitor, __Order, __Parallelism> ServiceRollbackConfigBuilder<(__Delay, __FailureAction, __MaxFailureRatio, __Monitor, __Order, __Parallelism)>
sourcepub fn build_struct(self) -> ServiceRollbackConfigwhere
__Delay: IntoSet<Option<Box<Option<String>>>, ServiceRollbackConfigBuilder__delay>,
__FailureAction: IntoSet<Option<Box<Option<String>>>, ServiceRollbackConfigBuilder__failure_action>,
__MaxFailureRatio: IntoSet<Option<Box<Option<String>>>, ServiceRollbackConfigBuilder__max_failure_ratio>,
__Monitor: IntoSet<Option<Box<Option<String>>>, ServiceRollbackConfigBuilder__monitor>,
__Order: IntoSet<Option<Box<Option<String>>>, ServiceRollbackConfigBuilder__order>,
__Parallelism: IntoSet<Option<Box<Option<i32>>>, ServiceRollbackConfigBuilder__parallelism>,
pub fn build_struct(self) -> ServiceRollbackConfigwhere
__Delay: IntoSet<Option<Box<Option<String>>>, ServiceRollbackConfigBuilder__delay>,
__FailureAction: IntoSet<Option<Box<Option<String>>>, ServiceRollbackConfigBuilder__failure_action>,
__MaxFailureRatio: IntoSet<Option<Box<Option<String>>>, ServiceRollbackConfigBuilder__max_failure_ratio>,
__Monitor: IntoSet<Option<Box<Option<String>>>, ServiceRollbackConfigBuilder__monitor>,
__Order: IntoSet<Option<Box<Option<String>>>, ServiceRollbackConfigBuilder__order>,
__Parallelism: IntoSet<Option<Box<Option<i32>>>, ServiceRollbackConfigBuilder__parallelism>,
Finishes building and returns the requested object.
sourcepub fn maybe_delay(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::Delaywhere
__Delay: IsUnset,
pub fn maybe_delay(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::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 __ServiceRollbackConfigBuilderSetMember>::Delaywhere
__Delay: IsUnset,
pub fn delay(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::Delaywhere
__Delay: IsUnset,
Delay between task rollbacks (ns|us|ms|s|m|h). Defaults to 0s
.
sourcepub fn maybe_failure_action(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::FailureActionwhere
__FailureAction: IsUnset,
pub fn maybe_failure_action(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::FailureActionwhere
__FailureAction: IsUnset,
Same as [Self::r#failure_action
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn failure_action(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::FailureActionwhere
__FailureAction: IsUnset,
pub fn failure_action(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::FailureActionwhere
__FailureAction: IsUnset,
Action on rollback failure: pause | continue. Defaults to pause
.
sourcepub fn maybe_max_failure_ratio(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::MaxFailureRatiowhere
__MaxFailureRatio: IsUnset,
pub fn maybe_max_failure_ratio(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::MaxFailureRatiowhere
__MaxFailureRatio: IsUnset,
Same as [Self::r#max_failure_ratio
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn max_failure_ratio(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::MaxFailureRatiowhere
__MaxFailureRatio: IsUnset,
pub fn max_failure_ratio(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::MaxFailureRatiowhere
__MaxFailureRatio: IsUnset,
Failure rate to tolerate during a rollback. Defaults to 0.0
.
sourcepub fn maybe_monitor(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::Monitorwhere
__Monitor: IsUnset,
pub fn maybe_monitor(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::Monitorwhere
__Monitor: IsUnset,
Same as [Self::r#monitor
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn monitor(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::Monitorwhere
__Monitor: IsUnset,
pub fn monitor(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::Monitorwhere
__Monitor: IsUnset,
Duration after each task rollback to monitor for failure (ns|us|ms|s|m|h). Defaults to 5s
.
sourcepub fn maybe_order(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::Orderwhere
__Order: IsUnset,
pub fn maybe_order(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::Orderwhere
__Order: IsUnset,
Same as [Self::r#order
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn order(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::Orderwhere
__Order: IsUnset,
pub fn order(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceRollbackConfigBuilderSetMember>::Orderwhere
__Order: IsUnset,
Rollback order: either ‘stop-first’ or ‘start-first’. Defaults to stop-first
.