All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.avs.outputs.ManagementClusterResponse Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** 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.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class ManagementClusterResponse {
    /**
     * @return The identity
     * 
     */
    private Integer clusterId;
    /**
     * @return The cluster size
     * 
     */
    private Integer clusterSize;
    /**
     * @return The hosts
     * 
     */
    private @Nullable List hosts;
    /**
     * @return The state of the cluster provisioning
     * 
     */
    private String provisioningState;

    private ManagementClusterResponse() {}
    /**
     * @return The identity
     * 
     */
    public Integer clusterId() {
        return this.clusterId;
    }
    /**
     * @return The cluster size
     * 
     */
    public Integer clusterSize() {
        return this.clusterSize;
    }
    /**
     * @return The hosts
     * 
     */
    public List hosts() {
        return this.hosts == null ? List.of() : this.hosts;
    }
    /**
     * @return The state of the cluster provisioning
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(ManagementClusterResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer clusterId;
        private Integer clusterSize;
        private @Nullable List hosts;
        private String provisioningState;
        public Builder() {}
        public Builder(ManagementClusterResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.clusterId = defaults.clusterId;
    	      this.clusterSize = defaults.clusterSize;
    	      this.hosts = defaults.hosts;
    	      this.provisioningState = defaults.provisioningState;
        }

        @CustomType.Setter
        public Builder clusterId(Integer clusterId) {
            if (clusterId == null) {
              throw new MissingRequiredPropertyException("ManagementClusterResponse", "clusterId");
            }
            this.clusterId = clusterId;
            return this;
        }
        @CustomType.Setter
        public Builder clusterSize(Integer clusterSize) {
            if (clusterSize == null) {
              throw new MissingRequiredPropertyException("ManagementClusterResponse", "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 provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("ManagementClusterResponse", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        public ManagementClusterResponse build() {
            final var _resultValue = new ManagementClusterResponse();
            _resultValue.clusterId = clusterId;
            _resultValue.clusterSize = clusterSize;
            _resultValue.hosts = hosts;
            _resultValue.provisioningState = provisioningState;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy