com.pulumi.azurenative.avs.outputs.GetClusterResult 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.azurenative.avs.outputs.SkuResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetClusterResult {
/**
* @return The identity
*
*/
private Integer clusterId;
/**
* @return The cluster size
*
*/
private @Nullable Integer clusterSize;
/**
* @return The hosts
*
*/
private @Nullable List hosts;
/**
* @return Resource ID.
*
*/
private String id;
/**
* @return Resource name.
*
*/
private String name;
/**
* @return The state of the cluster provisioning
*
*/
private String provisioningState;
/**
* @return The cluster SKU
*
*/
private SkuResponse sku;
/**
* @return Resource type.
*
*/
private String type;
private GetClusterResult() {}
/**
* @return The identity
*
*/
public Integer clusterId() {
return this.clusterId;
}
/**
* @return The cluster size
*
*/
public Optional clusterSize() {
return Optional.ofNullable(this.clusterSize);
}
/**
* @return The hosts
*
*/
public List hosts() {
return this.hosts == null ? List.of() : this.hosts;
}
/**
* @return Resource ID.
*
*/
public String id() {
return this.id;
}
/**
* @return Resource name.
*
*/
public String name() {
return this.name;
}
/**
* @return The state of the cluster provisioning
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return The cluster SKU
*
*/
public SkuResponse sku() {
return this.sku;
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetClusterResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer clusterId;
private @Nullable Integer clusterSize;
private @Nullable List hosts;
private String id;
private String name;
private String provisioningState;
private SkuResponse sku;
private String type;
public Builder() {}
public Builder(GetClusterResult defaults) {
Objects.requireNonNull(defaults);
this.clusterId = defaults.clusterId;
this.clusterSize = defaults.clusterSize;
this.hosts = defaults.hosts;
this.id = defaults.id;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.sku = defaults.sku;
this.type = defaults.type;
}
@CustomType.Setter
public Builder clusterId(Integer clusterId) {
if (clusterId == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "clusterId");
}
this.clusterId = clusterId;
return this;
}
@CustomType.Setter
public Builder clusterSize(@Nullable Integer clusterSize) {
this.clusterSize = clusterSize;
return this;
}
@CustomType.Setter
public Builder hosts(@Nullable List hosts) {
this.hosts = hosts;
return this;
}
public Builder hosts(String... hosts) {
return hosts(List.of(hosts));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder sku(SkuResponse sku) {
if (sku == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "sku");
}
this.sku = sku;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "type");
}
this.type = type;
return this;
}
public GetClusterResult build() {
final var _resultValue = new GetClusterResult();
_resultValue.clusterId = clusterId;
_resultValue.clusterSize = clusterSize;
_resultValue.hosts = hosts;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.sku = sku;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy