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

com.pulumi.azurenative.app.inputs.TimeoutPolicyArgs 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.app.inputs;

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


/**
 * Policy to set request timeouts
 * 
 */
public final class TimeoutPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final TimeoutPolicyArgs Empty = new TimeoutPolicyArgs();

    /**
     * Timeout, in seconds, for a request to initiate a connection
     * 
     */
    @Import(name="connectionTimeoutInSeconds")
    private @Nullable Output connectionTimeoutInSeconds;

    /**
     * @return Timeout, in seconds, for a request to initiate a connection
     * 
     */
    public Optional> connectionTimeoutInSeconds() {
        return Optional.ofNullable(this.connectionTimeoutInSeconds);
    }

    /**
     * Timeout, in seconds, for a request to respond
     * 
     */
    @Import(name="responseTimeoutInSeconds")
    private @Nullable Output responseTimeoutInSeconds;

    /**
     * @return Timeout, in seconds, for a request to respond
     * 
     */
    public Optional> responseTimeoutInSeconds() {
        return Optional.ofNullable(this.responseTimeoutInSeconds);
    }

    private TimeoutPolicyArgs() {}

    private TimeoutPolicyArgs(TimeoutPolicyArgs $) {
        this.connectionTimeoutInSeconds = $.connectionTimeoutInSeconds;
        this.responseTimeoutInSeconds = $.responseTimeoutInSeconds;
    }

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

    public static final class Builder {
        private TimeoutPolicyArgs $;

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

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

        /**
         * @param connectionTimeoutInSeconds Timeout, in seconds, for a request to initiate a connection
         * 
         * @return builder
         * 
         */
        public Builder connectionTimeoutInSeconds(@Nullable Output connectionTimeoutInSeconds) {
            $.connectionTimeoutInSeconds = connectionTimeoutInSeconds;
            return this;
        }

        /**
         * @param connectionTimeoutInSeconds Timeout, in seconds, for a request to initiate a connection
         * 
         * @return builder
         * 
         */
        public Builder connectionTimeoutInSeconds(Integer connectionTimeoutInSeconds) {
            return connectionTimeoutInSeconds(Output.of(connectionTimeoutInSeconds));
        }

        /**
         * @param responseTimeoutInSeconds Timeout, in seconds, for a request to respond
         * 
         * @return builder
         * 
         */
        public Builder responseTimeoutInSeconds(@Nullable Output responseTimeoutInSeconds) {
            $.responseTimeoutInSeconds = responseTimeoutInSeconds;
            return this;
        }

        /**
         * @param responseTimeoutInSeconds Timeout, in seconds, for a request to respond
         * 
         * @return builder
         * 
         */
        public Builder responseTimeoutInSeconds(Integer responseTimeoutInSeconds) {
            return responseTimeoutInSeconds(Output.of(responseTimeoutInSeconds));
        }

        public TimeoutPolicyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy