com.pulumi.azurenative.app.outputs.GetAppResiliencyResult 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.
// *** 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.outputs;
import com.pulumi.azurenative.app.outputs.CircuitBreakerPolicyResponse;
import com.pulumi.azurenative.app.outputs.HttpConnectionPoolResponse;
import com.pulumi.azurenative.app.outputs.HttpRetryPolicyResponse;
import com.pulumi.azurenative.app.outputs.SystemDataResponse;
import com.pulumi.azurenative.app.outputs.TcpConnectionPoolResponse;
import com.pulumi.azurenative.app.outputs.TcpRetryPolicyResponse;
import com.pulumi.azurenative.app.outputs.TimeoutPolicyResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetAppResiliencyResult {
/**
* @return Policy that defines circuit breaker conditions
*
*/
private @Nullable CircuitBreakerPolicyResponse circuitBreakerPolicy;
/**
* @return Defines parameters for http connection pooling
*
*/
private @Nullable HttpConnectionPoolResponse httpConnectionPool;
/**
* @return Policy that defines http request retry conditions
*
*/
private @Nullable HttpRetryPolicyResponse httpRetryPolicy;
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
private String id;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
private SystemDataResponse systemData;
/**
* @return Defines parameters for tcp connection pooling
*
*/
private @Nullable TcpConnectionPoolResponse tcpConnectionPool;
/**
* @return Policy that defines tcp request retry conditions
*
*/
private @Nullable TcpRetryPolicyResponse tcpRetryPolicy;
/**
* @return Policy to set request timeouts
*
*/
private @Nullable TimeoutPolicyResponse timeoutPolicy;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
private String type;
private GetAppResiliencyResult() {}
/**
* @return Policy that defines circuit breaker conditions
*
*/
public Optional circuitBreakerPolicy() {
return Optional.ofNullable(this.circuitBreakerPolicy);
}
/**
* @return Defines parameters for http connection pooling
*
*/
public Optional httpConnectionPool() {
return Optional.ofNullable(this.httpConnectionPool);
}
/**
* @return Policy that defines http request retry conditions
*
*/
public Optional httpRetryPolicy() {
return Optional.ofNullable(this.httpRetryPolicy);
}
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
public String id() {
return this.id;
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return Defines parameters for tcp connection pooling
*
*/
public Optional tcpConnectionPool() {
return Optional.ofNullable(this.tcpConnectionPool);
}
/**
* @return Policy that defines tcp request retry conditions
*
*/
public Optional tcpRetryPolicy() {
return Optional.ofNullable(this.tcpRetryPolicy);
}
/**
* @return Policy to set request timeouts
*
*/
public Optional timeoutPolicy() {
return Optional.ofNullable(this.timeoutPolicy);
}
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAppResiliencyResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable CircuitBreakerPolicyResponse circuitBreakerPolicy;
private @Nullable HttpConnectionPoolResponse httpConnectionPool;
private @Nullable HttpRetryPolicyResponse httpRetryPolicy;
private String id;
private String name;
private SystemDataResponse systemData;
private @Nullable TcpConnectionPoolResponse tcpConnectionPool;
private @Nullable TcpRetryPolicyResponse tcpRetryPolicy;
private @Nullable TimeoutPolicyResponse timeoutPolicy;
private String type;
public Builder() {}
public Builder(GetAppResiliencyResult defaults) {
Objects.requireNonNull(defaults);
this.circuitBreakerPolicy = defaults.circuitBreakerPolicy;
this.httpConnectionPool = defaults.httpConnectionPool;
this.httpRetryPolicy = defaults.httpRetryPolicy;
this.id = defaults.id;
this.name = defaults.name;
this.systemData = defaults.systemData;
this.tcpConnectionPool = defaults.tcpConnectionPool;
this.tcpRetryPolicy = defaults.tcpRetryPolicy;
this.timeoutPolicy = defaults.timeoutPolicy;
this.type = defaults.type;
}
@CustomType.Setter
public Builder circuitBreakerPolicy(@Nullable CircuitBreakerPolicyResponse circuitBreakerPolicy) {
this.circuitBreakerPolicy = circuitBreakerPolicy;
return this;
}
@CustomType.Setter
public Builder httpConnectionPool(@Nullable HttpConnectionPoolResponse httpConnectionPool) {
this.httpConnectionPool = httpConnectionPool;
return this;
}
@CustomType.Setter
public Builder httpRetryPolicy(@Nullable HttpRetryPolicyResponse httpRetryPolicy) {
this.httpRetryPolicy = httpRetryPolicy;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetAppResiliencyResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetAppResiliencyResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetAppResiliencyResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder tcpConnectionPool(@Nullable TcpConnectionPoolResponse tcpConnectionPool) {
this.tcpConnectionPool = tcpConnectionPool;
return this;
}
@CustomType.Setter
public Builder tcpRetryPolicy(@Nullable TcpRetryPolicyResponse tcpRetryPolicy) {
this.tcpRetryPolicy = tcpRetryPolicy;
return this;
}
@CustomType.Setter
public Builder timeoutPolicy(@Nullable TimeoutPolicyResponse timeoutPolicy) {
this.timeoutPolicy = timeoutPolicy;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetAppResiliencyResult", "type");
}
this.type = type;
return this;
}
public GetAppResiliencyResult build() {
final var _resultValue = new GetAppResiliencyResult();
_resultValue.circuitBreakerPolicy = circuitBreakerPolicy;
_resultValue.httpConnectionPool = httpConnectionPool;
_resultValue.httpRetryPolicy = httpRetryPolicy;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.systemData = systemData;
_resultValue.tcpConnectionPool = tcpConnectionPool;
_resultValue.tcpRetryPolicy = tcpRetryPolicy;
_resultValue.timeoutPolicy = timeoutPolicy;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy