Class CfnTaskDefinition.RuntimePlatformProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskDefinition.RuntimePlatformProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinition.RuntimePlatformProperty>
- Enclosing interface:
CfnTaskDefinition.RuntimePlatformProperty
@Stability(Stable)
public static final class CfnTaskDefinition.RuntimePlatformProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinition.RuntimePlatformProperty>
A builder for
CfnTaskDefinition.RuntimePlatformProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cpuArchitecture
(String cpuArchitecture) Sets the value ofCfnTaskDefinition.RuntimePlatformProperty.getCpuArchitecture()
operatingSystemFamily
(String operatingSystemFamily) Sets the value ofCfnTaskDefinition.RuntimePlatformProperty.getOperatingSystemFamily()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cpuArchitecture
@Stability(Stable) public CfnTaskDefinition.RuntimePlatformProperty.Builder cpuArchitecture(String cpuArchitecture) Sets the value ofCfnTaskDefinition.RuntimePlatformProperty.getCpuArchitecture()
- Parameters:
cpuArchitecture
- The CPU architecture. You can run your Linux tasks on an ARM-based platform by setting the value toARM64
. This option is available for tasks that run on Linux Amazon EC2 instance or Linux containers on Fargate.- Returns:
this
-
operatingSystemFamily
@Stability(Stable) public CfnTaskDefinition.RuntimePlatformProperty.Builder operatingSystemFamily(String operatingSystemFamily) Sets the value ofCfnTaskDefinition.RuntimePlatformProperty.getOperatingSystemFamily()
- Parameters:
operatingSystemFamily
- The operating system.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTaskDefinition.RuntimePlatformProperty>
- Returns:
- a new instance of
CfnTaskDefinition.RuntimePlatformProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-