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

com.pulumi.azurenative.web.inputs.NonceArgs 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.web.inputs;

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


/**
 * The configuration settings of the nonce used in the login flow.
 * 
 */
public final class NonceArgs extends com.pulumi.resources.ResourceArgs {

    public static final NonceArgs Empty = new NonceArgs();

    /**
     * The time after the request is made when the nonce should expire.
     * 
     */
    @Import(name="nonceExpirationInterval")
    private @Nullable Output nonceExpirationInterval;

    /**
     * @return The time after the request is made when the nonce should expire.
     * 
     */
    public Optional> nonceExpirationInterval() {
        return Optional.ofNullable(this.nonceExpirationInterval);
    }

    /**
     * <code>false</code> if the nonce should not be validated while completing the login flow; otherwise, <code>true</code>.
     * 
     */
    @Import(name="validateNonce")
    private @Nullable Output validateNonce;

    /**
     * @return <code>false</code> if the nonce should not be validated while completing the login flow; otherwise, <code>true</code>.
     * 
     */
    public Optional> validateNonce() {
        return Optional.ofNullable(this.validateNonce);
    }

    private NonceArgs() {}

    private NonceArgs(NonceArgs $) {
        this.nonceExpirationInterval = $.nonceExpirationInterval;
        this.validateNonce = $.validateNonce;
    }

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

    public static final class Builder {
        private NonceArgs $;

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

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

        /**
         * @param nonceExpirationInterval The time after the request is made when the nonce should expire.
         * 
         * @return builder
         * 
         */
        public Builder nonceExpirationInterval(@Nullable Output nonceExpirationInterval) {
            $.nonceExpirationInterval = nonceExpirationInterval;
            return this;
        }

        /**
         * @param nonceExpirationInterval The time after the request is made when the nonce should expire.
         * 
         * @return builder
         * 
         */
        public Builder nonceExpirationInterval(String nonceExpirationInterval) {
            return nonceExpirationInterval(Output.of(nonceExpirationInterval));
        }

        /**
         * @param validateNonce <code>false</code> if the nonce should not be validated while completing the login flow; otherwise, <code>true</code>.
         * 
         * @return builder
         * 
         */
        public Builder validateNonce(@Nullable Output validateNonce) {
            $.validateNonce = validateNonce;
            return this;
        }

        /**
         * @param validateNonce <code>false</code> if the nonce should not be validated while completing the login flow; otherwise, <code>true</code>.
         * 
         * @return builder
         * 
         */
        public Builder validateNonce(Boolean validateNonce) {
            return validateNonce(Output.of(validateNonce));
        }

        public NonceArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy