@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdatePolicy extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the infrastructure update policy for the compute environment. For more information about infrastructure updates, see Updating compute environments in the Batch User Guide.
Constructor and Description |
---|
UpdatePolicy() |
Modifier and Type | Method and Description |
---|---|
UpdatePolicy |
clone() |
boolean |
equals(Object obj) |
Long |
getJobExecutionTimeoutMinutes()
Specifies the job timeout (in minutes) when the compute environment infrastructure is updated.
|
Boolean |
getTerminateJobsOnUpdate()
Specifies whether jobs are automatically terminated when the computer environment infrastructure is updated.
|
int |
hashCode() |
Boolean |
isTerminateJobsOnUpdate()
Specifies whether jobs are automatically terminated when the computer environment infrastructure is updated.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setJobExecutionTimeoutMinutes(Long jobExecutionTimeoutMinutes)
Specifies the job timeout (in minutes) when the compute environment infrastructure is updated.
|
void |
setTerminateJobsOnUpdate(Boolean terminateJobsOnUpdate)
Specifies whether jobs are automatically terminated when the computer environment infrastructure is updated.
|
String |
toString()
Returns a string representation of this object.
|
UpdatePolicy |
withJobExecutionTimeoutMinutes(Long jobExecutionTimeoutMinutes)
Specifies the job timeout (in minutes) when the compute environment infrastructure is updated.
|
UpdatePolicy |
withTerminateJobsOnUpdate(Boolean terminateJobsOnUpdate)
Specifies whether jobs are automatically terminated when the computer environment infrastructure is updated.
|
public void setTerminateJobsOnUpdate(Boolean terminateJobsOnUpdate)
Specifies whether jobs are automatically terminated when the computer environment infrastructure is updated. The
default value is false
.
terminateJobsOnUpdate
- Specifies whether jobs are automatically terminated when the computer environment infrastructure is
updated. The default value is false
.public Boolean getTerminateJobsOnUpdate()
Specifies whether jobs are automatically terminated when the computer environment infrastructure is updated. The
default value is false
.
false
.public UpdatePolicy withTerminateJobsOnUpdate(Boolean terminateJobsOnUpdate)
Specifies whether jobs are automatically terminated when the computer environment infrastructure is updated. The
default value is false
.
terminateJobsOnUpdate
- Specifies whether jobs are automatically terminated when the computer environment infrastructure is
updated. The default value is false
.public Boolean isTerminateJobsOnUpdate()
Specifies whether jobs are automatically terminated when the computer environment infrastructure is updated. The
default value is false
.
false
.public void setJobExecutionTimeoutMinutes(Long jobExecutionTimeoutMinutes)
Specifies the job timeout (in minutes) when the compute environment infrastructure is updated. The default value is 30.
jobExecutionTimeoutMinutes
- Specifies the job timeout (in minutes) when the compute environment infrastructure is updated. The default
value is 30.public Long getJobExecutionTimeoutMinutes()
Specifies the job timeout (in minutes) when the compute environment infrastructure is updated. The default value is 30.
public UpdatePolicy withJobExecutionTimeoutMinutes(Long jobExecutionTimeoutMinutes)
Specifies the job timeout (in minutes) when the compute environment infrastructure is updated. The default value is 30.
jobExecutionTimeoutMinutes
- Specifies the job timeout (in minutes) when the compute environment infrastructure is updated. The default
value is 30.public String toString()
toString
in class Object
Object.toString()
public UpdatePolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.