
com.pulumi.azurenative.machinelearningservices.outputs.DockerBuildResponse 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.machinelearningservices.outputs;
import com.pulumi.azurenative.machinelearningservices.outputs.DockerImagePlatformResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DockerBuildResponse {
/**
* @return Path to a snapshot of the Docker Context. This property is only valid if Dockerfile is specified.
* The path is relative to the asset path which must contain a single Blob URI value.
* <seealso href="https://docs.docker.com/engine/context/working-with-contexts/" />
*
*/
private @Nullable String context;
/**
* @return Enum to determine docker specification type. Must be either Build or Image.
* Expected value is 'Build'.
*
*/
private String dockerSpecificationType;
/**
* @return [Required] Docker command line instructions to assemble an image.
* <seealso href="https://repo2docker.readthedocs.io/en/latest/config_files.html#dockerfile-advanced-environments" />
*
*/
private String dockerfile;
/**
* @return The platform information of the docker image.
*
*/
private @Nullable DockerImagePlatformResponse platform;
private DockerBuildResponse() {}
/**
* @return Path to a snapshot of the Docker Context. This property is only valid if Dockerfile is specified.
* The path is relative to the asset path which must contain a single Blob URI value.
* <seealso href="https://docs.docker.com/engine/context/working-with-contexts/" />
*
*/
public Optional context() {
return Optional.ofNullable(this.context);
}
/**
* @return Enum to determine docker specification type. Must be either Build or Image.
* Expected value is 'Build'.
*
*/
public String dockerSpecificationType() {
return this.dockerSpecificationType;
}
/**
* @return [Required] Docker command line instructions to assemble an image.
* <seealso href="https://repo2docker.readthedocs.io/en/latest/config_files.html#dockerfile-advanced-environments" />
*
*/
public String dockerfile() {
return this.dockerfile;
}
/**
* @return The platform information of the docker image.
*
*/
public Optional platform() {
return Optional.ofNullable(this.platform);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DockerBuildResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String context;
private String dockerSpecificationType;
private String dockerfile;
private @Nullable DockerImagePlatformResponse platform;
public Builder() {}
public Builder(DockerBuildResponse defaults) {
Objects.requireNonNull(defaults);
this.context = defaults.context;
this.dockerSpecificationType = defaults.dockerSpecificationType;
this.dockerfile = defaults.dockerfile;
this.platform = defaults.platform;
}
@CustomType.Setter
public Builder context(@Nullable String context) {
this.context = context;
return this;
}
@CustomType.Setter
public Builder dockerSpecificationType(String dockerSpecificationType) {
if (dockerSpecificationType == null) {
throw new MissingRequiredPropertyException("DockerBuildResponse", "dockerSpecificationType");
}
this.dockerSpecificationType = dockerSpecificationType;
return this;
}
@CustomType.Setter
public Builder dockerfile(String dockerfile) {
if (dockerfile == null) {
throw new MissingRequiredPropertyException("DockerBuildResponse", "dockerfile");
}
this.dockerfile = dockerfile;
return this;
}
@CustomType.Setter
public Builder platform(@Nullable DockerImagePlatformResponse platform) {
this.platform = platform;
return this;
}
public DockerBuildResponse build() {
final var _resultValue = new DockerBuildResponse();
_resultValue.context = context;
_resultValue.dockerSpecificationType = dockerSpecificationType;
_resultValue.dockerfile = dockerfile;
_resultValue.platform = platform;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy