com.pulumi.dockerbuild.outputs.CacheFromAzureBlob 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 CacheFromAzureBlob {
/**
* @return Base URL of the storage account.
*
*/
private @Nullable String accountUrl;
/**
* @return The name of the cache image.
*
*/
private String name;
/**
* @return Blob storage account key.
*
*/
private @Nullable String secretAccessKey;
private CacheFromAzureBlob() {}
/**
* @return Base URL of the storage account.
*
*/
public Optional accountUrl() {
return Optional.ofNullable(this.accountUrl);
}
/**
* @return The name of the cache image.
*
*/
public String name() {
return this.name;
}
/**
* @return Blob storage account key.
*
*/
public Optional secretAccessKey() {
return Optional.ofNullable(this.secretAccessKey);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CacheFromAzureBlob defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String accountUrl;
private String name;
private @Nullable String secretAccessKey;
public Builder() {}
public Builder(CacheFromAzureBlob defaults) {
Objects.requireNonNull(defaults);
this.accountUrl = defaults.accountUrl;
this.name = defaults.name;
this.secretAccessKey = defaults.secretAccessKey;
}
@CustomType.Setter
public Builder accountUrl(@Nullable String accountUrl) {
this.accountUrl = accountUrl;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("CacheFromAzureBlob", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder secretAccessKey(@Nullable String secretAccessKey) {
this.secretAccessKey = secretAccessKey;
return this;
}
public CacheFromAzureBlob build() {
final var _resultValue = new CacheFromAzureBlob();
_resultValue.accountUrl = accountUrl;
_resultValue.name = name;
_resultValue.secretAccessKey = secretAccessKey;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy