Struct aws_sdk_robomaker::types::builders::BatchPolicyBuilder
source · #[non_exhaustive]pub struct BatchPolicyBuilder { /* private fields */ }Expand description
A builder for BatchPolicy.
Implementations§
source§impl BatchPolicyBuilder
impl BatchPolicyBuilder
sourcepub fn timeout_in_seconds(self, input: i64) -> Self
pub fn timeout_in_seconds(self, input: i64) -> Self
The amount of time, in seconds, to wait for the batch to complete.
If a batch times out, and there are pending requests that were failing due to an internal failure (like InternalServiceError), they will be moved to the failed list and the batch status will be Failed. If the pending requests were failing for any other reason, the failed pending requests will be moved to the failed list and the batch status will be TimedOut.
sourcepub fn set_timeout_in_seconds(self, input: Option<i64>) -> Self
pub fn set_timeout_in_seconds(self, input: Option<i64>) -> Self
The amount of time, in seconds, to wait for the batch to complete.
If a batch times out, and there are pending requests that were failing due to an internal failure (like InternalServiceError), they will be moved to the failed list and the batch status will be Failed. If the pending requests were failing for any other reason, the failed pending requests will be moved to the failed list and the batch status will be TimedOut.
sourcepub fn get_timeout_in_seconds(&self) -> &Option<i64>
pub fn get_timeout_in_seconds(&self) -> &Option<i64>
The amount of time, in seconds, to wait for the batch to complete.
If a batch times out, and there are pending requests that were failing due to an internal failure (like InternalServiceError), they will be moved to the failed list and the batch status will be Failed. If the pending requests were failing for any other reason, the failed pending requests will be moved to the failed list and the batch status will be TimedOut.
sourcepub fn max_concurrency(self, input: i32) -> Self
pub fn max_concurrency(self, input: i32) -> Self
The number of active simulation jobs create as part of the batch that can be in an active state at the same time.
Active states include: Pending,Preparing, Running, Restarting, RunningFailed and Terminating. All other states are terminal states.
sourcepub fn set_max_concurrency(self, input: Option<i32>) -> Self
pub fn set_max_concurrency(self, input: Option<i32>) -> Self
The number of active simulation jobs create as part of the batch that can be in an active state at the same time.
Active states include: Pending,Preparing, Running, Restarting, RunningFailed and Terminating. All other states are terminal states.
sourcepub fn get_max_concurrency(&self) -> &Option<i32>
pub fn get_max_concurrency(&self) -> &Option<i32>
The number of active simulation jobs create as part of the batch that can be in an active state at the same time.
Active states include: Pending,Preparing, Running, Restarting, RunningFailed and Terminating. All other states are terminal states.
sourcepub fn build(self) -> BatchPolicy
pub fn build(self) -> BatchPolicy
Consumes the builder and constructs a BatchPolicy.
Trait Implementations§
source§impl Clone for BatchPolicyBuilder
impl Clone for BatchPolicyBuilder
source§fn clone(&self) -> BatchPolicyBuilder
fn clone(&self) -> BatchPolicyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for BatchPolicyBuilder
impl Debug for BatchPolicyBuilder
source§impl Default for BatchPolicyBuilder
impl Default for BatchPolicyBuilder
source§fn default() -> BatchPolicyBuilder
fn default() -> BatchPolicyBuilder
source§impl PartialEq for BatchPolicyBuilder
impl PartialEq for BatchPolicyBuilder
source§fn eq(&self, other: &BatchPolicyBuilder) -> bool
fn eq(&self, other: &BatchPolicyBuilder) -> bool
self and other values to be equal, and is used
by ==.