com.pulumi.consul.outputs.ConfigEntryServiceDefaultsUpstreamConfigDefaultLimit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of consul Show documentation
Show all versions of consul Show documentation
A Pulumi package for creating and managing consul resources.
// *** 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.consul.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 ConfigEntryServiceDefaultsUpstreamConfigDefaultLimit {
/**
* @return Specifies the maximum number of concurrent requests.
*
*/
private @Nullable Integer maxConcurrentRequests;
/**
* @return Specifies the maximum number of connections a service instance can establish against the upstream.
*
*/
private @Nullable Integer maxConnections;
/**
* @return Specifies the maximum number of requests that are queued while waiting for a connection to establish.
*
*/
private @Nullable Integer maxPendingRequests;
private ConfigEntryServiceDefaultsUpstreamConfigDefaultLimit() {}
/**
* @return Specifies the maximum number of concurrent requests.
*
*/
public Optional maxConcurrentRequests() {
return Optional.ofNullable(this.maxConcurrentRequests);
}
/**
* @return Specifies the maximum number of connections a service instance can establish against the upstream.
*
*/
public Optional maxConnections() {
return Optional.ofNullable(this.maxConnections);
}
/**
* @return Specifies the maximum number of requests that are queued while waiting for a connection to establish.
*
*/
public Optional maxPendingRequests() {
return Optional.ofNullable(this.maxPendingRequests);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ConfigEntryServiceDefaultsUpstreamConfigDefaultLimit defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer maxConcurrentRequests;
private @Nullable Integer maxConnections;
private @Nullable Integer maxPendingRequests;
public Builder() {}
public Builder(ConfigEntryServiceDefaultsUpstreamConfigDefaultLimit defaults) {
Objects.requireNonNull(defaults);
this.maxConcurrentRequests = defaults.maxConcurrentRequests;
this.maxConnections = defaults.maxConnections;
this.maxPendingRequests = defaults.maxPendingRequests;
}
@CustomType.Setter
public Builder maxConcurrentRequests(@Nullable Integer maxConcurrentRequests) {
this.maxConcurrentRequests = maxConcurrentRequests;
return this;
}
@CustomType.Setter
public Builder maxConnections(@Nullable Integer maxConnections) {
this.maxConnections = maxConnections;
return this;
}
@CustomType.Setter
public Builder maxPendingRequests(@Nullable Integer maxPendingRequests) {
this.maxPendingRequests = maxPendingRequests;
return this;
}
public ConfigEntryServiceDefaultsUpstreamConfigDefaultLimit build() {
final var _resultValue = new ConfigEntryServiceDefaultsUpstreamConfigDefaultLimit();
_resultValue.maxConcurrentRequests = maxConcurrentRequests;
_resultValue.maxConnections = maxConnections;
_resultValue.maxPendingRequests = maxPendingRequests;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy