Class ServiceJobPreemptionConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.batch.model.ServiceJobPreemptionConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ServiceJobPreemptionConfiguration.Builder,ServiceJobPreemptionConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class ServiceJobPreemptionConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ServiceJobPreemptionConfiguration.Builder,ServiceJobPreemptionConfiguration>
Specifies the service job behavior when preempted.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceServiceJobPreemptionConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceJobPreemptionConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerpreemptionRetriesBeforeTermination()The number of times a service job can be retried after it is preempted.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ServiceJobPreemptionConfiguration.Builder>serializableBuilderClass()ServiceJobPreemptionConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
preemptionRetriesBeforeTermination
public final Integer preemptionRetriesBeforeTermination()
The number of times a service job can be retried after it is preempted. A job will be terminated when preemption retries have been exhausted. If this field is unset, preempted jobs will be requeued an unlimited number of times.
- Returns:
- The number of times a service job can be retried after it is preempted. A job will be terminated when preemption retries have been exhausted. If this field is unset, preempted jobs will be requeued an unlimited number of times.
-
toBuilder
public ServiceJobPreemptionConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ServiceJobPreemptionConfiguration.Builder,ServiceJobPreemptionConfiguration>
-
builder
public static ServiceJobPreemptionConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends ServiceJobPreemptionConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-