Class RuntimePlatform
- java.lang.Object
-
- software.amazon.awssdk.services.batch.model.RuntimePlatform
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RuntimePlatform.Builder,RuntimePlatform>
@Generated("software.amazon.awssdk:codegen") public final class RuntimePlatform extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RuntimePlatform.Builder,RuntimePlatform>
An object that represents the compute environment architecture for Batch jobs on Fargate.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRuntimePlatform.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RuntimePlatform.Builderbuilder()StringcpuArchitecture()The vCPU architecture.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringoperatingSystemFamily()The operating system for the compute environment.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends RuntimePlatform.Builder>serializableBuilderClass()RuntimePlatform.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
-
operatingSystemFamily
public final String operatingSystemFamily()
The operating system for the compute environment. Valid values are:
LINUX(default),WINDOWS_SERVER_2019_CORE,WINDOWS_SERVER_2019_FULL,WINDOWS_SERVER_2022_CORE, andWINDOWS_SERVER_2022_FULL.The following parameters can’t be set for Windows containers:
linuxParameters,privileged,user,ulimits,readonlyRootFilesystem, andefsVolumeConfiguration.The Batch Scheduler checks the compute environments that are attached to the job queue before registering a task definition with Fargate. In this scenario, the job queue is where the job is submitted. If the job requires a Windows container and the first compute environment is
LINUX, the compute environment is skipped and the next compute environment is checked until a Windows-based compute environment is found.Fargate Spot is not supported for
ARM64and Windows-based containers on Fargate. A job queue will be blocked if a FargateARM64or Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach bothFARGATEandFARGATE_SPOTcompute environments to the same job queue.- Returns:
- The operating system for the compute environment. Valid values are:
LINUX(default),WINDOWS_SERVER_2019_CORE,WINDOWS_SERVER_2019_FULL,WINDOWS_SERVER_2022_CORE, andWINDOWS_SERVER_2022_FULL.The following parameters can’t be set for Windows containers:
linuxParameters,privileged,user,ulimits,readonlyRootFilesystem, andefsVolumeConfiguration.The Batch Scheduler checks the compute environments that are attached to the job queue before registering a task definition with Fargate. In this scenario, the job queue is where the job is submitted. If the job requires a Windows container and the first compute environment is
LINUX, the compute environment is skipped and the next compute environment is checked until a Windows-based compute environment is found.Fargate Spot is not supported for
ARM64and Windows-based containers on Fargate. A job queue will be blocked if a FargateARM64or Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach bothFARGATEandFARGATE_SPOTcompute environments to the same job queue.
-
cpuArchitecture
public final String cpuArchitecture()
The vCPU architecture. The default value is
X86_64. Valid values areX86_64andARM64.This parameter must be set to
X86_64for Windows containers.Fargate Spot is not supported for
ARM64and Windows-based containers on Fargate. A job queue will be blocked if a FargateARM64or Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach bothFARGATEandFARGATE_SPOTcompute environments to the same job queue.- Returns:
- The vCPU architecture. The default value is
X86_64. Valid values areX86_64andARM64.This parameter must be set to
X86_64for Windows containers.Fargate Spot is not supported for
ARM64and Windows-based containers on Fargate. A job queue will be blocked if a FargateARM64or Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach bothFARGATEandFARGATE_SPOTcompute environments to the same job queue.
-
toBuilder
public RuntimePlatform.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RuntimePlatform.Builder,RuntimePlatform>
-
builder
public static RuntimePlatform.Builder builder()
-
serializableBuilderClass
public static Class<? extends RuntimePlatform.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
-
-