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

com.pulumi.azurenative.keyvault.outputs.TriggerResponse 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.keyvault.outputs;

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

@CustomType
public final class TriggerResponse {
    /**
     * @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'.
     * 
     */
    private @Nullable String timeAfterCreate;
    /**
     * @return The time duration before key expiring to rotate or notify. It will be in ISO 8601 duration format. Eg: 'P90D', 'P1Y'.
     * 
     */
    private @Nullable String timeBeforeExpiry;

    private TriggerResponse() {}
    /**
     * @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);
    }
    /**
     * @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);
    }

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

    public static Builder builder(TriggerResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String timeAfterCreate;
        private @Nullable String timeBeforeExpiry;
        public Builder() {}
        public Builder(TriggerResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.timeAfterCreate = defaults.timeAfterCreate;
    	      this.timeBeforeExpiry = defaults.timeBeforeExpiry;
        }

        @CustomType.Setter
        public Builder timeAfterCreate(@Nullable String timeAfterCreate) {

            this.timeAfterCreate = timeAfterCreate;
            return this;
        }
        @CustomType.Setter
        public Builder timeBeforeExpiry(@Nullable String timeBeforeExpiry) {

            this.timeBeforeExpiry = timeBeforeExpiry;
            return this;
        }
        public TriggerResponse build() {
            final var _resultValue = new TriggerResponse();
            _resultValue.timeAfterCreate = timeAfterCreate;
            _resultValue.timeBeforeExpiry = timeBeforeExpiry;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy