com.pulumi.azure.containerservice.outputs.GroupContainer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.containerservice.outputs;
import com.pulumi.azure.containerservice.outputs.GroupContainerLivenessProbe;
import com.pulumi.azure.containerservice.outputs.GroupContainerPort;
import com.pulumi.azure.containerservice.outputs.GroupContainerReadinessProbe;
import com.pulumi.azure.containerservice.outputs.GroupContainerSecurity;
import com.pulumi.azure.containerservice.outputs.GroupContainerVolume;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GroupContainer {
/**
* @return A list of commands which should be run on the container. Changing this forces a new resource to be created.
*
*/
private @Nullable List commands;
/**
* @return The required number of CPU cores of the containers. Changing this forces a new resource to be created.
*
*/
private Double cpu;
/**
* @return The upper limit of the number of CPU cores of the containers.
*
*/
private @Nullable Double cpuLimit;
/**
* @return A list of environment variables to be set on the container. Specified as a map of name/value pairs. Changing this forces a new resource to be created.
*
*/
private @Nullable Map environmentVariables;
/**
* @return The container image name. Changing this forces a new resource to be created.
*
*/
private String image;
/**
* @return The definition of a readiness probe for this container as documented in the `liveness_probe` block below. Changing this forces a new resource to be created.
*
*/
private @Nullable GroupContainerLivenessProbe livenessProbe;
/**
* @return The required memory of the containers in GB. Changing this forces a new resource to be created.
*
*/
private Double memory;
/**
* @return The upper limit of the memory of the containers in GB.
*
*/
private @Nullable Double memoryLimit;
/**
* @return Specifies the name of the Container. Changing this forces a new resource to be created.
*
*/
private String name;
/**
* @return A set of public ports for the container. Changing this forces a new resource to be created. Set as documented in the `ports` block below.
*
*/
private @Nullable List ports;
/**
* @return The definition of a readiness probe for this container as documented in the `readiness_probe` block below. Changing this forces a new resource to be created.
*
*/
private @Nullable GroupContainerReadinessProbe readinessProbe;
/**
* @return A list of sensitive environment variables to be set on the container. Specified as a map of name/value pairs. Changing this forces a new resource to be created.
*
*/
private @Nullable Map secureEnvironmentVariables;
/**
* @return The definition of the security context for this container as documented in the `security` block below. Changing this forces a new resource to be created.
*
*/
private @Nullable List securities;
/**
* @return The definition of a volume mount for this container as documented in the `volume` block below. Changing this forces a new resource to be created.
*
*/
private @Nullable List volumes;
private GroupContainer() {}
/**
* @return A list of commands which should be run on the container. Changing this forces a new resource to be created.
*
*/
public List commands() {
return this.commands == null ? List.of() : this.commands;
}
/**
* @return The required number of CPU cores of the containers. Changing this forces a new resource to be created.
*
*/
public Double cpu() {
return this.cpu;
}
/**
* @return The upper limit of the number of CPU cores of the containers.
*
*/
public Optional cpuLimit() {
return Optional.ofNullable(this.cpuLimit);
}
/**
* @return A list of environment variables to be set on the container. Specified as a map of name/value pairs. Changing this forces a new resource to be created.
*
*/
public Map environmentVariables() {
return this.environmentVariables == null ? Map.of() : this.environmentVariables;
}
/**
* @return The container image name. Changing this forces a new resource to be created.
*
*/
public String image() {
return this.image;
}
/**
* @return The definition of a readiness probe for this container as documented in the `liveness_probe` block below. Changing this forces a new resource to be created.
*
*/
public Optional livenessProbe() {
return Optional.ofNullable(this.livenessProbe);
}
/**
* @return The required memory of the containers in GB. Changing this forces a new resource to be created.
*
*/
public Double memory() {
return this.memory;
}
/**
* @return The upper limit of the memory of the containers in GB.
*
*/
public Optional memoryLimit() {
return Optional.ofNullable(this.memoryLimit);
}
/**
* @return Specifies the name of the Container. Changing this forces a new resource to be created.
*
*/
public String name() {
return this.name;
}
/**
* @return A set of public ports for the container. Changing this forces a new resource to be created. Set as documented in the `ports` block below.
*
*/
public List ports() {
return this.ports == null ? List.of() : this.ports;
}
/**
* @return The definition of a readiness probe for this container as documented in the `readiness_probe` block below. Changing this forces a new resource to be created.
*
*/
public Optional readinessProbe() {
return Optional.ofNullable(this.readinessProbe);
}
/**
* @return A list of sensitive environment variables to be set on the container. Specified as a map of name/value pairs. Changing this forces a new resource to be created.
*
*/
public Map secureEnvironmentVariables() {
return this.secureEnvironmentVariables == null ? Map.of() : this.secureEnvironmentVariables;
}
/**
* @return The definition of the security context for this container as documented in the `security` block below. Changing this forces a new resource to be created.
*
*/
public List securities() {
return this.securities == null ? List.of() : this.securities;
}
/**
* @return The definition of a volume mount for this container as documented in the `volume` block below. Changing this forces a new resource to be created.
*
*/
public List volumes() {
return this.volumes == null ? List.of() : this.volumes;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GroupContainer defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List commands;
private Double cpu;
private @Nullable Double cpuLimit;
private @Nullable Map environmentVariables;
private String image;
private @Nullable GroupContainerLivenessProbe livenessProbe;
private Double memory;
private @Nullable Double memoryLimit;
private String name;
private @Nullable List ports;
private @Nullable GroupContainerReadinessProbe readinessProbe;
private @Nullable Map secureEnvironmentVariables;
private @Nullable List securities;
private @Nullable List volumes;
public Builder() {}
public Builder(GroupContainer defaults) {
Objects.requireNonNull(defaults);
this.commands = defaults.commands;
this.cpu = defaults.cpu;
this.cpuLimit = defaults.cpuLimit;
this.environmentVariables = defaults.environmentVariables;
this.image = defaults.image;
this.livenessProbe = defaults.livenessProbe;
this.memory = defaults.memory;
this.memoryLimit = defaults.memoryLimit;
this.name = defaults.name;
this.ports = defaults.ports;
this.readinessProbe = defaults.readinessProbe;
this.secureEnvironmentVariables = defaults.secureEnvironmentVariables;
this.securities = defaults.securities;
this.volumes = defaults.volumes;
}
@CustomType.Setter
public Builder commands(@Nullable List commands) {
this.commands = commands;
return this;
}
public Builder commands(String... commands) {
return commands(List.of(commands));
}
@CustomType.Setter
public Builder cpu(Double cpu) {
if (cpu == null) {
throw new MissingRequiredPropertyException("GroupContainer", "cpu");
}
this.cpu = cpu;
return this;
}
@CustomType.Setter
public Builder cpuLimit(@Nullable Double cpuLimit) {
this.cpuLimit = cpuLimit;
return this;
}
@CustomType.Setter
public Builder environmentVariables(@Nullable Map environmentVariables) {
this.environmentVariables = environmentVariables;
return this;
}
@CustomType.Setter
public Builder image(String image) {
if (image == null) {
throw new MissingRequiredPropertyException("GroupContainer", "image");
}
this.image = image;
return this;
}
@CustomType.Setter
public Builder livenessProbe(@Nullable GroupContainerLivenessProbe livenessProbe) {
this.livenessProbe = livenessProbe;
return this;
}
@CustomType.Setter
public Builder memory(Double memory) {
if (memory == null) {
throw new MissingRequiredPropertyException("GroupContainer", "memory");
}
this.memory = memory;
return this;
}
@CustomType.Setter
public Builder memoryLimit(@Nullable Double memoryLimit) {
this.memoryLimit = memoryLimit;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GroupContainer", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder ports(@Nullable List ports) {
this.ports = ports;
return this;
}
public Builder ports(GroupContainerPort... ports) {
return ports(List.of(ports));
}
@CustomType.Setter
public Builder readinessProbe(@Nullable GroupContainerReadinessProbe readinessProbe) {
this.readinessProbe = readinessProbe;
return this;
}
@CustomType.Setter
public Builder secureEnvironmentVariables(@Nullable Map secureEnvironmentVariables) {
this.secureEnvironmentVariables = secureEnvironmentVariables;
return this;
}
@CustomType.Setter
public Builder securities(@Nullable List securities) {
this.securities = securities;
return this;
}
public Builder securities(GroupContainerSecurity... securities) {
return securities(List.of(securities));
}
@CustomType.Setter
public Builder volumes(@Nullable List volumes) {
this.volumes = volumes;
return this;
}
public Builder volumes(GroupContainerVolume... volumes) {
return volumes(List.of(volumes));
}
public GroupContainer build() {
final var _resultValue = new GroupContainer();
_resultValue.commands = commands;
_resultValue.cpu = cpu;
_resultValue.cpuLimit = cpuLimit;
_resultValue.environmentVariables = environmentVariables;
_resultValue.image = image;
_resultValue.livenessProbe = livenessProbe;
_resultValue.memory = memory;
_resultValue.memoryLimit = memoryLimit;
_resultValue.name = name;
_resultValue.ports = ports;
_resultValue.readinessProbe = readinessProbe;
_resultValue.secureEnvironmentVariables = secureEnvironmentVariables;
_resultValue.securities = securities;
_resultValue.volumes = volumes;
return _resultValue;
}
}
}