com.pulumi.azure.eventhub.outputs.GetClusterResult 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.azure.eventhub.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetClusterResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return Location of the EventHub Cluster.
*
*/
private String location;
private String name;
private String resourceGroupName;
/**
* @return SKU name of the EventHub Cluster.
*
*/
private String skuName;
private GetClusterResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return Location of the EventHub Cluster.
*
*/
public String location() {
return this.location;
}
public String name() {
return this.name;
}
public String resourceGroupName() {
return this.resourceGroupName;
}
/**
* @return SKU name of the EventHub Cluster.
*
*/
public String skuName() {
return this.skuName;
}
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 String id;
private String location;
private String name;
private String resourceGroupName;
private String skuName;
public Builder() {}
public Builder(GetClusterResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.location = defaults.location;
this.name = defaults.name;
this.resourceGroupName = defaults.resourceGroupName;
this.skuName = defaults.skuName;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "location");
}
this.location = location;
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 resourceGroupName(String resourceGroupName) {
if (resourceGroupName == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "resourceGroupName");
}
this.resourceGroupName = resourceGroupName;
return this;
}
@CustomType.Setter
public Builder skuName(String skuName) {
if (skuName == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "skuName");
}
this.skuName = skuName;
return this;
}
public GetClusterResult build() {
final var _resultValue = new GetClusterResult();
_resultValue.id = id;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.resourceGroupName = resourceGroupName;
_resultValue.skuName = skuName;
return _resultValue;
}
}
}