
com.pulumi.aws.elb.outputs.GetLoadBalancerHealthCheck Maven / Gradle / Ivy
// *** 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.aws.elb.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetLoadBalancerHealthCheck {
private Integer healthyThreshold;
private Integer interval;
private String target;
private Integer timeout;
private Integer unhealthyThreshold;
private GetLoadBalancerHealthCheck() {}
public Integer healthyThreshold() {
return this.healthyThreshold;
}
public Integer interval() {
return this.interval;
}
public String target() {
return this.target;
}
public Integer timeout() {
return this.timeout;
}
public Integer unhealthyThreshold() {
return this.unhealthyThreshold;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetLoadBalancerHealthCheck defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer healthyThreshold;
private Integer interval;
private String target;
private Integer timeout;
private Integer unhealthyThreshold;
public Builder() {}
public Builder(GetLoadBalancerHealthCheck defaults) {
Objects.requireNonNull(defaults);
this.healthyThreshold = defaults.healthyThreshold;
this.interval = defaults.interval;
this.target = defaults.target;
this.timeout = defaults.timeout;
this.unhealthyThreshold = defaults.unhealthyThreshold;
}
@CustomType.Setter
public Builder healthyThreshold(Integer healthyThreshold) {
if (healthyThreshold == null) {
throw new MissingRequiredPropertyException("GetLoadBalancerHealthCheck", "healthyThreshold");
}
this.healthyThreshold = healthyThreshold;
return this;
}
@CustomType.Setter
public Builder interval(Integer interval) {
if (interval == null) {
throw new MissingRequiredPropertyException("GetLoadBalancerHealthCheck", "interval");
}
this.interval = interval;
return this;
}
@CustomType.Setter
public Builder target(String target) {
if (target == null) {
throw new MissingRequiredPropertyException("GetLoadBalancerHealthCheck", "target");
}
this.target = target;
return this;
}
@CustomType.Setter
public Builder timeout(Integer timeout) {
if (timeout == null) {
throw new MissingRequiredPropertyException("GetLoadBalancerHealthCheck", "timeout");
}
this.timeout = timeout;
return this;
}
@CustomType.Setter
public Builder unhealthyThreshold(Integer unhealthyThreshold) {
if (unhealthyThreshold == null) {
throw new MissingRequiredPropertyException("GetLoadBalancerHealthCheck", "unhealthyThreshold");
}
this.unhealthyThreshold = unhealthyThreshold;
return this;
}
public GetLoadBalancerHealthCheck build() {
final var _resultValue = new GetLoadBalancerHealthCheck();
_resultValue.healthyThreshold = healthyThreshold;
_resultValue.interval = interval;
_resultValue.target = target;
_resultValue.timeout = timeout;
_resultValue.unhealthyThreshold = unhealthyThreshold;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy