com.pulumi.azurenative.eventhub.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.eventhub.outputs;
import com.pulumi.azurenative.eventhub.outputs.ClusterSkuResponse;
import com.pulumi.azurenative.eventhub.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetClusterResult {
/**
* @return The UTC time when the Event Hubs Cluster was created.
*
*/
private String createdAt;
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
private String id;
/**
* @return Resource location.
*
*/
private @Nullable String location;
/**
* @return The metric ID of the cluster resource. Provided by the service and not modifiable by the user.
*
*/
private String metricId;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return Properties of the cluster SKU.
*
*/
private @Nullable ClusterSkuResponse sku;
/**
* @return Status of the Cluster resource
*
*/
private String status;
/**
* @return A value that indicates whether Scaling is Supported.
*
*/
private @Nullable Boolean supportsScaling;
/**
* @return The system meta data relating to this resource.
*
*/
private SystemDataResponse systemData;
/**
* @return Resource tags.
*
*/
private @Nullable Map tags;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
private String type;
/**
* @return The UTC time when the Event Hubs Cluster was last updated.
*
*/
private String updatedAt;
private GetClusterResult() {}
/**
* @return The UTC time when the Event Hubs Cluster was created.
*
*/
public String createdAt() {
return this.createdAt;
}
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
public String id() {
return this.id;
}
/**
* @return Resource location.
*
*/
public Optional location() {
return Optional.ofNullable(this.location);
}
/**
* @return The metric ID of the cluster resource. Provided by the service and not modifiable by the user.
*
*/
public String metricId() {
return this.metricId;
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return Properties of the cluster SKU.
*
*/
public Optional sku() {
return Optional.ofNullable(this.sku);
}
/**
* @return Status of the Cluster resource
*
*/
public String status() {
return this.status;
}
/**
* @return A value that indicates whether Scaling is Supported.
*
*/
public Optional supportsScaling() {
return Optional.ofNullable(this.supportsScaling);
}
/**
* @return The system meta data relating to this resource.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return Resource tags.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public String type() {
return this.type;
}
/**
* @return The UTC time when the Event Hubs Cluster was last updated.
*
*/
public String updatedAt() {
return this.updatedAt;
}
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 createdAt;
private String id;
private @Nullable String location;
private String metricId;
private String name;
private @Nullable ClusterSkuResponse sku;
private String status;
private @Nullable Boolean supportsScaling;
private SystemDataResponse systemData;
private @Nullable Map tags;
private String type;
private String updatedAt;
public Builder() {}
public Builder(GetClusterResult defaults) {
Objects.requireNonNull(defaults);
this.createdAt = defaults.createdAt;
this.id = defaults.id;
this.location = defaults.location;
this.metricId = defaults.metricId;
this.name = defaults.name;
this.sku = defaults.sku;
this.status = defaults.status;
this.supportsScaling = defaults.supportsScaling;
this.systemData = defaults.systemData;
this.tags = defaults.tags;
this.type = defaults.type;
this.updatedAt = defaults.updatedAt;
}
@CustomType.Setter
public Builder createdAt(String createdAt) {
if (createdAt == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "createdAt");
}
this.createdAt = createdAt;
return this;
}
@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(@Nullable String location) {
this.location = location;
return this;
}
@CustomType.Setter
public Builder metricId(String metricId) {
if (metricId == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "metricId");
}
this.metricId = metricId;
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 sku(@Nullable ClusterSkuResponse sku) {
this.sku = sku;
return this;
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "status");
}
this.status = status;
return this;
}
@CustomType.Setter
public Builder supportsScaling(@Nullable Boolean supportsScaling) {
this.supportsScaling = supportsScaling;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder updatedAt(String updatedAt) {
if (updatedAt == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "updatedAt");
}
this.updatedAt = updatedAt;
return this;
}
public GetClusterResult build() {
final var _resultValue = new GetClusterResult();
_resultValue.createdAt = createdAt;
_resultValue.id = id;
_resultValue.location = location;
_resultValue.metricId = metricId;
_resultValue.name = name;
_resultValue.sku = sku;
_resultValue.status = status;
_resultValue.supportsScaling = supportsScaling;
_resultValue.systemData = systemData;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.updatedAt = updatedAt;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy