com.pulumi.azurenative.app.outputs.JobTemplateResponse 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.app.outputs;
import com.pulumi.azurenative.app.outputs.ContainerResponse;
import com.pulumi.azurenative.app.outputs.InitContainerResponse;
import com.pulumi.azurenative.app.outputs.VolumeResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class JobTemplateResponse {
/**
* @return List of container definitions for the Container App.
*
*/
private @Nullable List containers;
/**
* @return List of specialized containers that run before app containers.
*
*/
private @Nullable List initContainers;
/**
* @return List of volume definitions for the Container App.
*
*/
private @Nullable List volumes;
private JobTemplateResponse() {}
/**
* @return List of container definitions for the Container App.
*
*/
public List containers() {
return this.containers == null ? List.of() : this.containers;
}
/**
* @return List of specialized containers that run before app containers.
*
*/
public List initContainers() {
return this.initContainers == null ? List.of() : this.initContainers;
}
/**
* @return List of volume definitions for the Container App.
*
*/
public List volumes() {
return this.volumes == null ? List.of() : this.volumes;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(JobTemplateResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List containers;
private @Nullable List initContainers;
private @Nullable List volumes;
public Builder() {}
public Builder(JobTemplateResponse defaults) {
Objects.requireNonNull(defaults);
this.containers = defaults.containers;
this.initContainers = defaults.initContainers;
this.volumes = defaults.volumes;
}
@CustomType.Setter
public Builder containers(@Nullable List containers) {
this.containers = containers;
return this;
}
public Builder containers(ContainerResponse... containers) {
return containers(List.of(containers));
}
@CustomType.Setter
public Builder initContainers(@Nullable List initContainers) {
this.initContainers = initContainers;
return this;
}
public Builder initContainers(InitContainerResponse... initContainers) {
return initContainers(List.of(initContainers));
}
@CustomType.Setter
public Builder volumes(@Nullable List volumes) {
this.volumes = volumes;
return this;
}
public Builder volumes(VolumeResponse... volumes) {
return volumes(List.of(volumes));
}
public JobTemplateResponse build() {
final var _resultValue = new JobTemplateResponse();
_resultValue.containers = containers;
_resultValue.initContainers = initContainers;
_resultValue.volumes = volumes;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy