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

com.pulumi.azurenative.signalrservice.inputs.ServerlessSettingsArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.signalrservice.inputs;

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


/**
 * Serverless settings.
 * 
 */
public final class ServerlessSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServerlessSettingsArgs Empty = new ServerlessSettingsArgs();

    /**
     * Gets or sets Client Connection Timeout. Optional to be set.
     * Value in seconds.
     * Default value is 30 seconds.
     * Customer should set the timeout to a shorter period if messages are expected to be sent in shorter intervals,
     * and want the client to disconnect more quickly after the last message is sent.
     * You can set the timeout to a longer period if messages are expected to be sent in longer intervals,
     * and they want to keep the same client connection alive during this session.
     * The service considers the client disconnected if it hasn't received a message (including keep-alive) in this interval.
     * 
     */
    @Import(name="connectionTimeoutInSeconds")
    private @Nullable Output connectionTimeoutInSeconds;

    /**
     * @return Gets or sets Client Connection Timeout. Optional to be set.
     * Value in seconds.
     * Default value is 30 seconds.
     * Customer should set the timeout to a shorter period if messages are expected to be sent in shorter intervals,
     * and want the client to disconnect more quickly after the last message is sent.
     * You can set the timeout to a longer period if messages are expected to be sent in longer intervals,
     * and they want to keep the same client connection alive during this session.
     * The service considers the client disconnected if it hasn't received a message (including keep-alive) in this interval.
     * 
     */
    public Optional> connectionTimeoutInSeconds() {
        return Optional.ofNullable(this.connectionTimeoutInSeconds);
    }

    private ServerlessSettingsArgs() {}

    private ServerlessSettingsArgs(ServerlessSettingsArgs $) {
        this.connectionTimeoutInSeconds = $.connectionTimeoutInSeconds;
    }

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

    public static final class Builder {
        private ServerlessSettingsArgs $;

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

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

        /**
         * @param connectionTimeoutInSeconds Gets or sets Client Connection Timeout. Optional to be set.
         * Value in seconds.
         * Default value is 30 seconds.
         * Customer should set the timeout to a shorter period if messages are expected to be sent in shorter intervals,
         * and want the client to disconnect more quickly after the last message is sent.
         * You can set the timeout to a longer period if messages are expected to be sent in longer intervals,
         * and they want to keep the same client connection alive during this session.
         * The service considers the client disconnected if it hasn't received a message (including keep-alive) in this interval.
         * 
         * @return builder
         * 
         */
        public Builder connectionTimeoutInSeconds(@Nullable Output connectionTimeoutInSeconds) {
            $.connectionTimeoutInSeconds = connectionTimeoutInSeconds;
            return this;
        }

        /**
         * @param connectionTimeoutInSeconds Gets or sets Client Connection Timeout. Optional to be set.
         * Value in seconds.
         * Default value is 30 seconds.
         * Customer should set the timeout to a shorter period if messages are expected to be sent in shorter intervals,
         * and want the client to disconnect more quickly after the last message is sent.
         * You can set the timeout to a longer period if messages are expected to be sent in longer intervals,
         * and they want to keep the same client connection alive during this session.
         * The service considers the client disconnected if it hasn't received a message (including keep-alive) in this interval.
         * 
         * @return builder
         * 
         */
        public Builder connectionTimeoutInSeconds(Integer connectionTimeoutInSeconds) {
            return connectionTimeoutInSeconds(Output.of(connectionTimeoutInSeconds));
        }

        public ServerlessSettingsArgs build() {
            $.connectionTimeoutInSeconds = Codegen.integerProp("connectionTimeoutInSeconds").output().arg($.connectionTimeoutInSeconds).def(30).getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy