com.pulumi.azurenative.web.outputs.ContainerResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.azurenative.web.outputs;
import com.pulumi.azurenative.web.outputs.ContainerResourcesResponse;
import com.pulumi.azurenative.web.outputs.EnvironmentVarResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ContainerResponse {
/**
* @return Container start command arguments.
*
*/
private @Nullable List args;
/**
* @return Container start command.
*
*/
private @Nullable List command;
/**
* @return Container environment variables.
*
*/
private @Nullable List env;
/**
* @return Container image tag.
*
*/
private @Nullable String image;
/**
* @return Custom container name.
*
*/
private @Nullable String name;
/**
* @return Container resource requirements.
*
*/
private @Nullable ContainerResourcesResponse resources;
private ContainerResponse() {}
/**
* @return Container start command arguments.
*
*/
public List args() {
return this.args == null ? List.of() : this.args;
}
/**
* @return Container start command.
*
*/
public List command() {
return this.command == null ? List.of() : this.command;
}
/**
* @return Container environment variables.
*
*/
public List env() {
return this.env == null ? List.of() : this.env;
}
/**
* @return Container image tag.
*
*/
public Optional image() {
return Optional.ofNullable(this.image);
}
/**
* @return Custom container name.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return Container resource requirements.
*
*/
public Optional resources() {
return Optional.ofNullable(this.resources);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ContainerResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List args;
private @Nullable List command;
private @Nullable List env;
private @Nullable String image;
private @Nullable String name;
private @Nullable ContainerResourcesResponse resources;
public Builder() {}
public Builder(ContainerResponse defaults) {
Objects.requireNonNull(defaults);
this.args = defaults.args;
this.command = defaults.command;
this.env = defaults.env;
this.image = defaults.image;
this.name = defaults.name;
this.resources = defaults.resources;
}
@CustomType.Setter
public Builder args(@Nullable List args) {
this.args = args;
return this;
}
public Builder args(String... args) {
return args(List.of(args));
}
@CustomType.Setter
public Builder command(@Nullable List command) {
this.command = command;
return this;
}
public Builder command(String... command) {
return command(List.of(command));
}
@CustomType.Setter
public Builder env(@Nullable List env) {
this.env = env;
return this;
}
public Builder env(EnvironmentVarResponse... env) {
return env(List.of(env));
}
@CustomType.Setter
public Builder image(@Nullable String image) {
this.image = image;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder resources(@Nullable ContainerResourcesResponse resources) {
this.resources = resources;
return this;
}
public ContainerResponse build() {
final var _resultValue = new ContainerResponse();
_resultValue.args = args;
_resultValue.command = command;
_resultValue.env = env;
_resultValue.image = image;
_resultValue.name = name;
_resultValue.resources = resources;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy