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

com.pulumi.azurenative.keyvault.inputs.KeyRotationPolicyAttributesArgs Maven / Gradle / Ivy

// *** 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.keyvault.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final KeyRotationPolicyAttributesArgs Empty = new KeyRotationPolicyAttributesArgs();

    /**
     * The expiration time for the new key version. It should be in ISO8601 format. Eg: 'P90D', 'P1Y'.
     * 
     */
    @Import(name="expiryTime")
    private @Nullable Output expiryTime;

    /**
     * @return The expiration time for the new key version. It should be in ISO8601 format. Eg: 'P90D', 'P1Y'.
     * 
     */
    public Optional> expiryTime() {
        return Optional.ofNullable(this.expiryTime);
    }

    private KeyRotationPolicyAttributesArgs() {}

    private KeyRotationPolicyAttributesArgs(KeyRotationPolicyAttributesArgs $) {
        this.expiryTime = $.expiryTime;
    }

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

    public static final class Builder {
        private KeyRotationPolicyAttributesArgs $;

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

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

        /**
         * @param expiryTime The expiration time for the new key version. It should be in ISO8601 format. Eg: 'P90D', 'P1Y'.
         * 
         * @return builder
         * 
         */
        public Builder expiryTime(@Nullable Output expiryTime) {
            $.expiryTime = expiryTime;
            return this;
        }

        /**
         * @param expiryTime The expiration time for the new key version. It should be in ISO8601 format. Eg: 'P90D', 'P1Y'.
         * 
         * @return builder
         * 
         */
        public Builder expiryTime(String expiryTime) {
            return expiryTime(Output.of(expiryTime));
        }

        public KeyRotationPolicyAttributesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy