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

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

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.storage.inputs;

import com.pulumi.azure.storage.inputs.AccountSharePropertiesCorsRuleArgs;
import com.pulumi.azure.storage.inputs.AccountSharePropertiesRetentionPolicyArgs;
import com.pulumi.azure.storage.inputs.AccountSharePropertiesSmbArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AccountSharePropertiesArgs Empty = new AccountSharePropertiesArgs();

    /**
     * A `cors_rule` block as defined below.
     * 
     */
    @Import(name="corsRules")
    private @Nullable Output> corsRules;

    /**
     * @return A `cors_rule` block as defined below.
     * 
     */
    public Optional>> corsRules() {
        return Optional.ofNullable(this.corsRules);
    }

    /**
     * A `retention_policy` block as defined below.
     * 
     */
    @Import(name="retentionPolicy")
    private @Nullable Output retentionPolicy;

    /**
     * @return A `retention_policy` block as defined below.
     * 
     */
    public Optional> retentionPolicy() {
        return Optional.ofNullable(this.retentionPolicy);
    }

    /**
     * A `smb` block as defined below.
     * 
     */
    @Import(name="smb")
    private @Nullable Output smb;

    /**
     * @return A `smb` block as defined below.
     * 
     */
    public Optional> smb() {
        return Optional.ofNullable(this.smb);
    }

    private AccountSharePropertiesArgs() {}

    private AccountSharePropertiesArgs(AccountSharePropertiesArgs $) {
        this.corsRules = $.corsRules;
        this.retentionPolicy = $.retentionPolicy;
        this.smb = $.smb;
    }

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

    public static final class Builder {
        private AccountSharePropertiesArgs $;

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

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

        /**
         * @param corsRules A `cors_rule` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder corsRules(@Nullable Output> corsRules) {
            $.corsRules = corsRules;
            return this;
        }

        /**
         * @param corsRules A `cors_rule` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder corsRules(List corsRules) {
            return corsRules(Output.of(corsRules));
        }

        /**
         * @param corsRules A `cors_rule` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder corsRules(AccountSharePropertiesCorsRuleArgs... corsRules) {
            return corsRules(List.of(corsRules));
        }

        /**
         * @param retentionPolicy A `retention_policy` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder retentionPolicy(@Nullable Output retentionPolicy) {
            $.retentionPolicy = retentionPolicy;
            return this;
        }

        /**
         * @param retentionPolicy A `retention_policy` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder retentionPolicy(AccountSharePropertiesRetentionPolicyArgs retentionPolicy) {
            return retentionPolicy(Output.of(retentionPolicy));
        }

        /**
         * @param smb A `smb` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder smb(@Nullable Output smb) {
            $.smb = smb;
            return this;
        }

        /**
         * @param smb A `smb` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder smb(AccountSharePropertiesSmbArgs smb) {
            return smb(Output.of(smb));
        }

        public AccountSharePropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy