All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.storage.inputs.GetBlobArgs Maven / Gradle / Ivy

// *** 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.azure.storage.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetBlobArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetBlobArgs Empty = new GetBlobArgs();

    /**
     * A map of custom blob metadata.
     * 
     */
    @Import(name="metadata")
    private @Nullable Output> metadata;

    /**
     * @return A map of custom blob metadata.
     * 
     */
    public Optional>> metadata() {
        return Optional.ofNullable(this.metadata);
    }

    /**
     * The name of the Blob.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the Blob.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The name of the Storage Account where the Container exists.
     * 
     */
    @Import(name="storageAccountName", required=true)
    private Output storageAccountName;

    /**
     * @return The name of the Storage Account where the Container exists.
     * 
     */
    public Output storageAccountName() {
        return this.storageAccountName;
    }

    /**
     * The name of the Storage Container where the Blob exists.
     * 
     */
    @Import(name="storageContainerName", required=true)
    private Output storageContainerName;

    /**
     * @return The name of the Storage Container where the Blob exists.
     * 
     */
    public Output storageContainerName() {
        return this.storageContainerName;
    }

    private GetBlobArgs() {}

    private GetBlobArgs(GetBlobArgs $) {
        this.metadata = $.metadata;
        this.name = $.name;
        this.storageAccountName = $.storageAccountName;
        this.storageContainerName = $.storageContainerName;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(GetBlobArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private GetBlobArgs $;

        public Builder() {
            $ = new GetBlobArgs();
        }

        public Builder(GetBlobArgs defaults) {
            $ = new GetBlobArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param metadata A map of custom blob metadata.
         * 
         * @return builder
         * 
         */
        public Builder metadata(@Nullable Output> metadata) {
            $.metadata = metadata;
            return this;
        }

        /**
         * @param metadata A map of custom blob metadata.
         * 
         * @return builder
         * 
         */
        public Builder metadata(Map metadata) {
            return metadata(Output.of(metadata));
        }

        /**
         * @param name The name of the Blob.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the Blob.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param storageAccountName The name of the Storage Account where the Container exists.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountName(Output storageAccountName) {
            $.storageAccountName = storageAccountName;
            return this;
        }

        /**
         * @param storageAccountName The name of the Storage Account where the Container exists.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountName(String storageAccountName) {
            return storageAccountName(Output.of(storageAccountName));
        }

        /**
         * @param storageContainerName The name of the Storage Container where the Blob exists.
         * 
         * @return builder
         * 
         */
        public Builder storageContainerName(Output storageContainerName) {
            $.storageContainerName = storageContainerName;
            return this;
        }

        /**
         * @param storageContainerName The name of the Storage Container where the Blob exists.
         * 
         * @return builder
         * 
         */
        public Builder storageContainerName(String storageContainerName) {
            return storageContainerName(Output.of(storageContainerName));
        }

        public GetBlobArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("GetBlobArgs", "name");
            }
            if ($.storageAccountName == null) {
                throw new MissingRequiredPropertyException("GetBlobArgs", "storageAccountName");
            }
            if ($.storageContainerName == null) {
                throw new MissingRequiredPropertyException("GetBlobArgs", "storageContainerName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy