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

com.pulumi.azurenative.databoxedge.StorageAccountArgs 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.DataPolicy;
import com.pulumi.azurenative.databoxedge.enums.StorageAccountStatus;
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 StorageAccountArgs extends com.pulumi.resources.ResourceArgs {

    public static final StorageAccountArgs Empty = new StorageAccountArgs();

    /**
     * Data policy of the storage Account.
     * 
     */
    @Import(name="dataPolicy", required=true)
    private Output> dataPolicy;

    /**
     * @return Data policy of the storage Account.
     * 
     */
    public Output> dataPolicy() {
        return this.dataPolicy;
    }

    /**
     * Description for the storage Account.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description for the storage Account.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * 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;
    }

    /**
     * Storage Account Credential Id
     * 
     */
    @Import(name="storageAccountCredentialId")
    private @Nullable Output storageAccountCredentialId;

    /**
     * @return Storage Account Credential Id
     * 
     */
    public Optional> storageAccountCredentialId() {
        return Optional.ofNullable(this.storageAccountCredentialId);
    }

    /**
     * The StorageAccount name.
     * 
     */
    @Import(name="storageAccountName")
    private @Nullable Output storageAccountName;

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

    /**
     * Current status of the storage account
     * 
     */
    @Import(name="storageAccountStatus")
    private @Nullable Output> storageAccountStatus;

    /**
     * @return Current status of the storage account
     * 
     */
    public Optional>> storageAccountStatus() {
        return Optional.ofNullable(this.storageAccountStatus);
    }

    private StorageAccountArgs() {}

    private StorageAccountArgs(StorageAccountArgs $) {
        this.dataPolicy = $.dataPolicy;
        this.description = $.description;
        this.deviceName = $.deviceName;
        this.resourceGroupName = $.resourceGroupName;
        this.storageAccountCredentialId = $.storageAccountCredentialId;
        this.storageAccountName = $.storageAccountName;
        this.storageAccountStatus = $.storageAccountStatus;
    }

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

    public static final class Builder {
        private StorageAccountArgs $;

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

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

        /**
         * @param dataPolicy Data policy of the storage Account.
         * 
         * @return builder
         * 
         */
        public Builder dataPolicy(Output> dataPolicy) {
            $.dataPolicy = dataPolicy;
            return this;
        }

        /**
         * @param dataPolicy Data policy of the storage Account.
         * 
         * @return builder
         * 
         */
        public Builder dataPolicy(Either dataPolicy) {
            return dataPolicy(Output.of(dataPolicy));
        }

        /**
         * @param dataPolicy Data policy of the storage Account.
         * 
         * @return builder
         * 
         */
        public Builder dataPolicy(String dataPolicy) {
            return dataPolicy(Either.ofLeft(dataPolicy));
        }

        /**
         * @param dataPolicy Data policy of the storage Account.
         * 
         * @return builder
         * 
         */
        public Builder dataPolicy(DataPolicy dataPolicy) {
            return dataPolicy(Either.ofRight(dataPolicy));
        }

        /**
         * @param description Description for the storage Account.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description for the storage Account.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @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 storageAccountCredentialId Storage Account Credential Id
         * 
         * @return builder
         * 
         */
        public Builder storageAccountCredentialId(@Nullable Output storageAccountCredentialId) {
            $.storageAccountCredentialId = storageAccountCredentialId;
            return this;
        }

        /**
         * @param storageAccountCredentialId Storage Account Credential Id
         * 
         * @return builder
         * 
         */
        public Builder storageAccountCredentialId(String storageAccountCredentialId) {
            return storageAccountCredentialId(Output.of(storageAccountCredentialId));
        }

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

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

        /**
         * @param storageAccountStatus Current status of the storage account
         * 
         * @return builder
         * 
         */
        public Builder storageAccountStatus(@Nullable Output> storageAccountStatus) {
            $.storageAccountStatus = storageAccountStatus;
            return this;
        }

        /**
         * @param storageAccountStatus Current status of the storage account
         * 
         * @return builder
         * 
         */
        public Builder storageAccountStatus(Either storageAccountStatus) {
            return storageAccountStatus(Output.of(storageAccountStatus));
        }

        /**
         * @param storageAccountStatus Current status of the storage account
         * 
         * @return builder
         * 
         */
        public Builder storageAccountStatus(String storageAccountStatus) {
            return storageAccountStatus(Either.ofLeft(storageAccountStatus));
        }

        /**
         * @param storageAccountStatus Current status of the storage account
         * 
         * @return builder
         * 
         */
        public Builder storageAccountStatus(StorageAccountStatus storageAccountStatus) {
            return storageAccountStatus(Either.ofRight(storageAccountStatus));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy