com.pulumi.dockerbuild.outputs.BuilderConfig 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 BuilderConfig {
/**
* @return Name of an existing buildx builder to use.
*
* Only `docker-container`, `kubernetes`, or `remote` drivers are
* supported. The legacy `docker` driver is not supported.
*
* Equivalent to Docker's `--builder` flag.
*
*/
private @Nullable String name;
private BuilderConfig() {}
/**
* @return Name of an existing buildx builder to use.
*
* Only `docker-container`, `kubernetes`, or `remote` drivers are
* supported. The legacy `docker` driver is not supported.
*
* Equivalent to Docker's `--builder` flag.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BuilderConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String name;
public Builder() {}
public Builder(BuilderConfig defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
public BuilderConfig build() {
final var _resultValue = new BuilderConfig();
_resultValue.name = name;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy