com.pulumi.azurenative.avs.outputs.ClusterZoneResponse 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.avs.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class ClusterZoneResponse {
/**
* @return List of hosts belonging to the availability zone in a cluster
*
*/
private List hosts;
/**
* @return Availability zone identifier
*
*/
private String zone;
private ClusterZoneResponse() {}
/**
* @return List of hosts belonging to the availability zone in a cluster
*
*/
public List hosts() {
return this.hosts;
}
/**
* @return Availability zone identifier
*
*/
public String zone() {
return this.zone;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ClusterZoneResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List hosts;
private String zone;
public Builder() {}
public Builder(ClusterZoneResponse defaults) {
Objects.requireNonNull(defaults);
this.hosts = defaults.hosts;
this.zone = defaults.zone;
}
@CustomType.Setter
public Builder hosts(List hosts) {
if (hosts == null) {
throw new MissingRequiredPropertyException("ClusterZoneResponse", "hosts");
}
this.hosts = hosts;
return this;
}
public Builder hosts(String... hosts) {
return hosts(List.of(hosts));
}
@CustomType.Setter
public Builder zone(String zone) {
if (zone == null) {
throw new MissingRequiredPropertyException("ClusterZoneResponse", "zone");
}
this.zone = zone;
return this;
}
public ClusterZoneResponse build() {
final var _resultValue = new ClusterZoneResponse();
_resultValue.hosts = hosts;
_resultValue.zone = zone;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy