com.pulumi.azurenative.signalrservice.outputs.ServerlessSettingsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
The 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.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ServerlessSettingsResponse {
/**
* @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.
*
*/
private @Nullable Integer connectionTimeoutInSeconds;
private ServerlessSettingsResponse() {}
/**
* @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);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ServerlessSettingsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer connectionTimeoutInSeconds;
public Builder() {}
public Builder(ServerlessSettingsResponse defaults) {
Objects.requireNonNull(defaults);
this.connectionTimeoutInSeconds = defaults.connectionTimeoutInSeconds;
}
@CustomType.Setter
public Builder connectionTimeoutInSeconds(@Nullable Integer connectionTimeoutInSeconds) {
this.connectionTimeoutInSeconds = connectionTimeoutInSeconds;
return this;
}
public ServerlessSettingsResponse build() {
final var _resultValue = new ServerlessSettingsResponse();
_resultValue.connectionTimeoutInSeconds = connectionTimeoutInSeconds;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy