@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchPolicy extends Object implements Serializable, Cloneable, StructuredPojo
Information about the batch policy.
Constructor and Description |
---|
BatchPolicy() |
Modifier and Type | Method and Description |
---|---|
BatchPolicy |
clone() |
boolean |
equals(Object obj) |
Integer |
getMaxConcurrency()
The number of active simulation jobs create as part of the batch that can be in an active state at the same time.
|
Long |
getTimeoutInSeconds()
The amount of time, in seconds, to wait for the batch to complete.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMaxConcurrency(Integer maxConcurrency)
The number of active simulation jobs create as part of the batch that can be in an active state at the same time.
|
void |
setTimeoutInSeconds(Long timeoutInSeconds)
The amount of time, in seconds, to wait for the batch to complete.
|
String |
toString()
Returns a string representation of this object.
|
BatchPolicy |
withMaxConcurrency(Integer maxConcurrency)
The number of active simulation jobs create as part of the batch that can be in an active state at the same time.
|
BatchPolicy |
withTimeoutInSeconds(Long timeoutInSeconds)
The amount of time, in seconds, to wait for the batch to complete.
|
public void setTimeoutInSeconds(Long timeoutInSeconds)
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
.
timeoutInSeconds
- 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
.
public Long getTimeoutInSeconds()
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
.
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
.
public BatchPolicy withTimeoutInSeconds(Long timeoutInSeconds)
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
.
timeoutInSeconds
- 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
.
public void setMaxConcurrency(Integer maxConcurrency)
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.
maxConcurrency
- 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.
public Integer getMaxConcurrency()
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.
Active states include: Pending
,Preparing
, Running
,
Restarting
, RunningFailed
and Terminating
. All other states are
terminal states.
public BatchPolicy withMaxConcurrency(Integer maxConcurrency)
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.
maxConcurrency
- 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.
public String toString()
toString
in class Object
Object.toString()
public BatchPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.