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

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

There is a newer version: 2.82.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.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 TriggerArgs extends com.pulumi.resources.ResourceArgs {

    public static final TriggerArgs Empty = new TriggerArgs();

    /**
     * The time duration after key creation to rotate the key. It only applies to rotate. It will be in ISO 8601 duration format. Eg: 'P90D', 'P1Y'.
     * 
     */
    @Import(name="timeAfterCreate")
    private @Nullable Output timeAfterCreate;

    /**
     * @return The time duration after key creation to rotate the key. It only applies to rotate. It will be in ISO 8601 duration format. Eg: 'P90D', 'P1Y'.
     * 
     */
    public Optional> timeAfterCreate() {
        return Optional.ofNullable(this.timeAfterCreate);
    }

    /**
     * The time duration before key expiring to rotate or notify. It will be in ISO 8601 duration format. Eg: 'P90D', 'P1Y'.
     * 
     */
    @Import(name="timeBeforeExpiry")
    private @Nullable Output timeBeforeExpiry;

    /**
     * @return The time duration before key expiring to rotate or notify. It will be in ISO 8601 duration format. Eg: 'P90D', 'P1Y'.
     * 
     */
    public Optional> timeBeforeExpiry() {
        return Optional.ofNullable(this.timeBeforeExpiry);
    }

    private TriggerArgs() {}

    private TriggerArgs(TriggerArgs $) {
        this.timeAfterCreate = $.timeAfterCreate;
        this.timeBeforeExpiry = $.timeBeforeExpiry;
    }

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

    public static final class Builder {
        private TriggerArgs $;

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

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

        /**
         * @param timeAfterCreate The time duration after key creation to rotate the key. It only applies to rotate. It will be in ISO 8601 duration format. Eg: 'P90D', 'P1Y'.
         * 
         * @return builder
         * 
         */
        public Builder timeAfterCreate(@Nullable Output timeAfterCreate) {
            $.timeAfterCreate = timeAfterCreate;
            return this;
        }

        /**
         * @param timeAfterCreate The time duration after key creation to rotate the key. It only applies to rotate. It will be in ISO 8601 duration format. Eg: 'P90D', 'P1Y'.
         * 
         * @return builder
         * 
         */
        public Builder timeAfterCreate(String timeAfterCreate) {
            return timeAfterCreate(Output.of(timeAfterCreate));
        }

        /**
         * @param timeBeforeExpiry The time duration before key expiring to rotate or notify. It will be in ISO 8601 duration format. Eg: 'P90D', 'P1Y'.
         * 
         * @return builder
         * 
         */
        public Builder timeBeforeExpiry(@Nullable Output timeBeforeExpiry) {
            $.timeBeforeExpiry = timeBeforeExpiry;
            return this;
        }

        /**
         * @param timeBeforeExpiry The time duration before key expiring to rotate or notify. It will be in ISO 8601 duration format. Eg: 'P90D', 'P1Y'.
         * 
         * @return builder
         * 
         */
        public Builder timeBeforeExpiry(String timeBeforeExpiry) {
            return timeBeforeExpiry(Output.of(timeBeforeExpiry));
        }

        public TriggerArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy