com.pulumi.aws.ecs.outputs.TaskDefinitionRuntimePlatform Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.ecs.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TaskDefinitionRuntimePlatform {
/**
* @return Must be set to either `X86_64` or `ARM64`; see [cpu architecture](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#runtime-platform)
*
*/
private @Nullable String cpuArchitecture;
/**
* @return If the `requires_compatibilities` is `FARGATE` this field is required; must be set to a valid option from the [operating system family in the runtime platform](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#runtime-platform) setting
*
*/
private @Nullable String operatingSystemFamily;
private TaskDefinitionRuntimePlatform() {}
/**
* @return Must be set to either `X86_64` or `ARM64`; see [cpu architecture](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#runtime-platform)
*
*/
public Optional cpuArchitecture() {
return Optional.ofNullable(this.cpuArchitecture);
}
/**
* @return If the `requires_compatibilities` is `FARGATE` this field is required; must be set to a valid option from the [operating system family in the runtime platform](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#runtime-platform) setting
*
*/
public Optional operatingSystemFamily() {
return Optional.ofNullable(this.operatingSystemFamily);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TaskDefinitionRuntimePlatform defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String cpuArchitecture;
private @Nullable String operatingSystemFamily;
public Builder() {}
public Builder(TaskDefinitionRuntimePlatform defaults) {
Objects.requireNonNull(defaults);
this.cpuArchitecture = defaults.cpuArchitecture;
this.operatingSystemFamily = defaults.operatingSystemFamily;
}
@CustomType.Setter
public Builder cpuArchitecture(@Nullable String cpuArchitecture) {
this.cpuArchitecture = cpuArchitecture;
return this;
}
@CustomType.Setter
public Builder operatingSystemFamily(@Nullable String operatingSystemFamily) {
this.operatingSystemFamily = operatingSystemFamily;
return this;
}
public TaskDefinitionRuntimePlatform build() {
final var _resultValue = new TaskDefinitionRuntimePlatform();
_resultValue.cpuArchitecture = cpuArchitecture;
_resultValue.operatingSystemFamily = operatingSystemFamily;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy