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

com.pulumi.azure.storage.inputs.AccountSasPolicyArgs 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.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 AccountSasPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final AccountSasPolicyArgs Empty = new AccountSasPolicyArgs();

    /**
     * The SAS expiration action. The only possible value is `Log` at this moment. Defaults to `Log`.
     * 
     */
    @Import(name="expirationAction")
    private @Nullable Output expirationAction;

    /**
     * @return The SAS expiration action. The only possible value is `Log` at this moment. Defaults to `Log`.
     * 
     */
    public Optional> expirationAction() {
        return Optional.ofNullable(this.expirationAction);
    }

    /**
     * The SAS expiration period in format of `DD.HH:MM:SS`.
     * 
     */
    @Import(name="expirationPeriod", required=true)
    private Output expirationPeriod;

    /**
     * @return The SAS expiration period in format of `DD.HH:MM:SS`.
     * 
     */
    public Output expirationPeriod() {
        return this.expirationPeriod;
    }

    private AccountSasPolicyArgs() {}

    private AccountSasPolicyArgs(AccountSasPolicyArgs $) {
        this.expirationAction = $.expirationAction;
        this.expirationPeriod = $.expirationPeriod;
    }

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

    public static final class Builder {
        private AccountSasPolicyArgs $;

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

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

        /**
         * @param expirationAction The SAS expiration action. The only possible value is `Log` at this moment. Defaults to `Log`.
         * 
         * @return builder
         * 
         */
        public Builder expirationAction(@Nullable Output expirationAction) {
            $.expirationAction = expirationAction;
            return this;
        }

        /**
         * @param expirationAction The SAS expiration action. The only possible value is `Log` at this moment. Defaults to `Log`.
         * 
         * @return builder
         * 
         */
        public Builder expirationAction(String expirationAction) {
            return expirationAction(Output.of(expirationAction));
        }

        /**
         * @param expirationPeriod The SAS expiration period in format of `DD.HH:MM:SS`.
         * 
         * @return builder
         * 
         */
        public Builder expirationPeriod(Output expirationPeriod) {
            $.expirationPeriod = expirationPeriod;
            return this;
        }

        /**
         * @param expirationPeriod The SAS expiration period in format of `DD.HH:MM:SS`.
         * 
         * @return builder
         * 
         */
        public Builder expirationPeriod(String expirationPeriod) {
            return expirationPeriod(Output.of(expirationPeriod));
        }

        public AccountSasPolicyArgs build() {
            if ($.expirationPeriod == null) {
                throw new MissingRequiredPropertyException("AccountSasPolicyArgs", "expirationPeriod");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy