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

com.pulumi.azurenative.storage.inputs.KeyPolicyArgs 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.storage.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.util.Objects;


/**
 * KeyPolicy assigned to the storage account.
 * 
 */
public final class KeyPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final KeyPolicyArgs Empty = new KeyPolicyArgs();

    /**
     * The key expiration period in days.
     * 
     */
    @Import(name="keyExpirationPeriodInDays", required=true)
    private Output keyExpirationPeriodInDays;

    /**
     * @return The key expiration period in days.
     * 
     */
    public Output keyExpirationPeriodInDays() {
        return this.keyExpirationPeriodInDays;
    }

    private KeyPolicyArgs() {}

    private KeyPolicyArgs(KeyPolicyArgs $) {
        this.keyExpirationPeriodInDays = $.keyExpirationPeriodInDays;
    }

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

    public static final class Builder {
        private KeyPolicyArgs $;

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

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

        /**
         * @param keyExpirationPeriodInDays The key expiration period in days.
         * 
         * @return builder
         * 
         */
        public Builder keyExpirationPeriodInDays(Output keyExpirationPeriodInDays) {
            $.keyExpirationPeriodInDays = keyExpirationPeriodInDays;
            return this;
        }

        /**
         * @param keyExpirationPeriodInDays The key expiration period in days.
         * 
         * @return builder
         * 
         */
        public Builder keyExpirationPeriodInDays(Integer keyExpirationPeriodInDays) {
            return keyExpirationPeriodInDays(Output.of(keyExpirationPeriodInDays));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy