com.pulumi.googlenative.dns.v1.outputs.RRSetRoutingPolicyGeoPolicyResponse 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.googlenative.dns.v1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.googlenative.dns.v1.outputs.RRSetRoutingPolicyGeoPolicyGeoPolicyItemResponse;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class RRSetRoutingPolicyGeoPolicyResponse {
/**
* @return Without fencing, if health check fails for all configured items in the current geo bucket, we'll failover to the next nearest geo bucket. With fencing, if health check is enabled, as long as some targets in the current geo bucket are healthy, we'll return only the healthy targets. However, if they're all unhealthy, we won't failover to the next nearest bucket, we'll simply return all the items in the current bucket even though they're unhealthy.
*
*/
private Boolean enableFencing;
/**
* @return The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
*
*/
private List items;
private String kind;
private RRSetRoutingPolicyGeoPolicyResponse() {}
/**
* @return Without fencing, if health check fails for all configured items in the current geo bucket, we'll failover to the next nearest geo bucket. With fencing, if health check is enabled, as long as some targets in the current geo bucket are healthy, we'll return only the healthy targets. However, if they're all unhealthy, we won't failover to the next nearest bucket, we'll simply return all the items in the current bucket even though they're unhealthy.
*
*/
public Boolean enableFencing() {
return this.enableFencing;
}
/**
* @return The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
*
*/
public List items() {
return this.items;
}
public String kind() {
return this.kind;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RRSetRoutingPolicyGeoPolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Boolean enableFencing;
private List items;
private String kind;
public Builder() {}
public Builder(RRSetRoutingPolicyGeoPolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.enableFencing = defaults.enableFencing;
this.items = defaults.items;
this.kind = defaults.kind;
}
@CustomType.Setter
public Builder enableFencing(Boolean enableFencing) {
this.enableFencing = Objects.requireNonNull(enableFencing);
return this;
}
@CustomType.Setter
public Builder items(List items) {
this.items = Objects.requireNonNull(items);
return this;
}
public Builder items(RRSetRoutingPolicyGeoPolicyGeoPolicyItemResponse... items) {
return items(List.of(items));
}
@CustomType.Setter
public Builder kind(String kind) {
this.kind = Objects.requireNonNull(kind);
return this;
}
public RRSetRoutingPolicyGeoPolicyResponse build() {
final var o = new RRSetRoutingPolicyGeoPolicyResponse();
o.enableFencing = enableFencing;
o.items = items;
o.kind = kind;
return o;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy