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

com.pulumi.azurenative.storage.BlobInventoryPolicyArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.storage;

import com.pulumi.azurenative.storage.inputs.BlobInventoryPolicySchemaArgs;
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 BlobInventoryPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final BlobInventoryPolicyArgs Empty = new BlobInventoryPolicyArgs();

    /**
     * The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * The name of the storage account blob inventory policy. It should always be 'default'
     * 
     */
    @Import(name="blobInventoryPolicyName")
    private @Nullable Output blobInventoryPolicyName;

    /**
     * @return The name of the storage account blob inventory policy. It should always be 'default'
     * 
     */
    public Optional> blobInventoryPolicyName() {
        return Optional.ofNullable(this.blobInventoryPolicyName);
    }

    /**
     * The storage account blob inventory policy object. It is composed of policy rules.
     * 
     */
    @Import(name="policy", required=true)
    private Output policy;

    /**
     * @return The storage account blob inventory policy object. It is composed of policy rules.
     * 
     */
    public Output policy() {
        return this.policy;
    }

    /**
     * The name of the resource group within the user's subscription. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group within the user's subscription. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private BlobInventoryPolicyArgs() {}

    private BlobInventoryPolicyArgs(BlobInventoryPolicyArgs $) {
        this.accountName = $.accountName;
        this.blobInventoryPolicyName = $.blobInventoryPolicyName;
        this.policy = $.policy;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private BlobInventoryPolicyArgs $;

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

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

        /**
         * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

        /**
         * @param blobInventoryPolicyName The name of the storage account blob inventory policy. It should always be 'default'
         * 
         * @return builder
         * 
         */
        public Builder blobInventoryPolicyName(@Nullable Output blobInventoryPolicyName) {
            $.blobInventoryPolicyName = blobInventoryPolicyName;
            return this;
        }

        /**
         * @param blobInventoryPolicyName The name of the storage account blob inventory policy. It should always be 'default'
         * 
         * @return builder
         * 
         */
        public Builder blobInventoryPolicyName(String blobInventoryPolicyName) {
            return blobInventoryPolicyName(Output.of(blobInventoryPolicyName));
        }

        /**
         * @param policy The storage account blob inventory policy object. It is composed of policy rules.
         * 
         * @return builder
         * 
         */
        public Builder policy(Output policy) {
            $.policy = policy;
            return this;
        }

        /**
         * @param policy The storage account blob inventory policy object. It is composed of policy rules.
         * 
         * @return builder
         * 
         */
        public Builder policy(BlobInventoryPolicySchemaArgs policy) {
            return policy(Output.of(policy));
        }

        /**
         * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public BlobInventoryPolicyArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("BlobInventoryPolicyArgs", "accountName");
            }
            if ($.policy == null) {
                throw new MissingRequiredPropertyException("BlobInventoryPolicyArgs", "policy");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("BlobInventoryPolicyArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy