com.pulumi.dockerbuild.outputs.CacheFromLocal 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 com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CacheFromLocal {
/**
* @return Digest of manifest to import.
*
*/
private @Nullable String digest;
/**
* @return Path of the local directory where cache gets imported from.
*
*/
private String src;
private CacheFromLocal() {}
/**
* @return Digest of manifest to import.
*
*/
public Optional digest() {
return Optional.ofNullable(this.digest);
}
/**
* @return Path of the local directory where cache gets imported from.
*
*/
public String src() {
return this.src;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CacheFromLocal defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String digest;
private String src;
public Builder() {}
public Builder(CacheFromLocal defaults) {
Objects.requireNonNull(defaults);
this.digest = defaults.digest;
this.src = defaults.src;
}
@CustomType.Setter
public Builder digest(@Nullable String digest) {
this.digest = digest;
return this;
}
@CustomType.Setter
public Builder src(String src) {
if (src == null) {
throw new MissingRequiredPropertyException("CacheFromLocal", "src");
}
this.src = src;
return this;
}
public CacheFromLocal build() {
final var _resultValue = new CacheFromLocal();
_resultValue.digest = digest;
_resultValue.src = src;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy