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

com.pulumi.azurenative.databoxedge.ContainerArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** 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.azurenative.databoxedge;

import com.pulumi.azurenative.databoxedge.enums.AzureContainerDataFormat;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ContainerArgs extends com.pulumi.resources.ResourceArgs {

    public static final ContainerArgs Empty = new ContainerArgs();

    /**
     * The container name.
     * 
     */
    @Import(name="containerName")
    private @Nullable Output containerName;

    /**
     * @return The container name.
     * 
     */
    public Optional> containerName() {
        return Optional.ofNullable(this.containerName);
    }

    /**
     * DataFormat for Container
     * 
     */
    @Import(name="dataFormat", required=true)
    private Output> dataFormat;

    /**
     * @return DataFormat for Container
     * 
     */
    public Output> dataFormat() {
        return this.dataFormat;
    }

    /**
     * The device name.
     * 
     */
    @Import(name="deviceName", required=true)
    private Output deviceName;

    /**
     * @return The device name.
     * 
     */
    public Output deviceName() {
        return this.deviceName;
    }

    /**
     * The resource group name.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The resource group name.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The Storage Account Name
     * 
     */
    @Import(name="storageAccountName", required=true)
    private Output storageAccountName;

    /**
     * @return The Storage Account Name
     * 
     */
    public Output storageAccountName() {
        return this.storageAccountName;
    }

    private ContainerArgs() {}

    private ContainerArgs(ContainerArgs $) {
        this.containerName = $.containerName;
        this.dataFormat = $.dataFormat;
        this.deviceName = $.deviceName;
        this.resourceGroupName = $.resourceGroupName;
        this.storageAccountName = $.storageAccountName;
    }

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

    public static final class Builder {
        private ContainerArgs $;

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

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

        /**
         * @param containerName The container name.
         * 
         * @return builder
         * 
         */
        public Builder containerName(@Nullable Output containerName) {
            $.containerName = containerName;
            return this;
        }

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

        /**
         * @param dataFormat DataFormat for Container
         * 
         * @return builder
         * 
         */
        public Builder dataFormat(Output> dataFormat) {
            $.dataFormat = dataFormat;
            return this;
        }

        /**
         * @param dataFormat DataFormat for Container
         * 
         * @return builder
         * 
         */
        public Builder dataFormat(Either dataFormat) {
            return dataFormat(Output.of(dataFormat));
        }

        /**
         * @param dataFormat DataFormat for Container
         * 
         * @return builder
         * 
         */
        public Builder dataFormat(String dataFormat) {
            return dataFormat(Either.ofLeft(dataFormat));
        }

        /**
         * @param dataFormat DataFormat for Container
         * 
         * @return builder
         * 
         */
        public Builder dataFormat(AzureContainerDataFormat dataFormat) {
            return dataFormat(Either.ofRight(dataFormat));
        }

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

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

        /**
         * @param resourceGroupName The resource group name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The resource group name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param storageAccountName The Storage Account Name
         * 
         * @return builder
         * 
         */
        public Builder storageAccountName(Output storageAccountName) {
            $.storageAccountName = storageAccountName;
            return this;
        }

        /**
         * @param storageAccountName The Storage Account Name
         * 
         * @return builder
         * 
         */
        public Builder storageAccountName(String storageAccountName) {
            return storageAccountName(Output.of(storageAccountName));
        }

        public ContainerArgs build() {
            if ($.dataFormat == null) {
                throw new MissingRequiredPropertyException("ContainerArgs", "dataFormat");
            }
            if ($.deviceName == null) {
                throw new MissingRequiredPropertyException("ContainerArgs", "deviceName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ContainerArgs", "resourceGroupName");
            }
            if ($.storageAccountName == null) {
                throw new MissingRequiredPropertyException("ContainerArgs", "storageAccountName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy