com.pulumi.dockerbuild.outputs.Dockerfile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-build Show documentation
Show all versions of docker-build Show documentation
A Pulumi provider for building modern Docker images with buildx and BuildKit.
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.dockerbuild.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 Dockerfile {
/**
* @return Raw Dockerfile contents.
*
* Conflicts with `location`.
*
* Equivalent to invoking Docker with `-f -`.
*
*/
private @Nullable String inline;
/**
* @return Location of the Dockerfile to use.
*
* Can be a relative or absolute path to a local file, or a remote URL.
*
* Defaults to `${context.location}/Dockerfile` if context is on-disk.
*
* Conflicts with `inline`.
*
*/
private @Nullable String location;
private Dockerfile() {}
/**
* @return Raw Dockerfile contents.
*
* Conflicts with `location`.
*
* Equivalent to invoking Docker with `-f -`.
*
*/
public Optional inline() {
return Optional.ofNullable(this.inline);
}
/**
* @return Location of the Dockerfile to use.
*
* Can be a relative or absolute path to a local file, or a remote URL.
*
* Defaults to `${context.location}/Dockerfile` if context is on-disk.
*
* Conflicts with `inline`.
*
*/
public Optional location() {
return Optional.ofNullable(this.location);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(Dockerfile defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String inline;
private @Nullable String location;
public Builder() {}
public Builder(Dockerfile defaults) {
Objects.requireNonNull(defaults);
this.inline = defaults.inline;
this.location = defaults.location;
}
@CustomType.Setter
public Builder inline(@Nullable String inline) {
this.inline = inline;
return this;
}
@CustomType.Setter
public Builder location(@Nullable String location) {
this.location = location;
return this;
}
public Dockerfile build() {
final var _resultValue = new Dockerfile();
_resultValue.inline = inline;
_resultValue.location = location;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy