com.pulumi.azurenative.eventhub.outputs.GetEventHubResult 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.CaptureDescriptionResponse;
import com.pulumi.azurenative.eventhub.outputs.RetentionDescriptionResponse;
import com.pulumi.azurenative.eventhub.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetEventHubResult {
/**
* @return Properties of capture description
*
*/
private @Nullable CaptureDescriptionResponse captureDescription;
/**
* @return Exact time the Event Hub 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 The geo-location where the resource lives
*
*/
private String location;
/**
* @return Number of days to retain the events for this Event Hub, value should be 1 to 7 days
*
*/
private @Nullable Double messageRetentionInDays;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.
*
*/
private @Nullable Double partitionCount;
/**
* @return Current number of shards on the Event Hub.
*
*/
private List partitionIds;
/**
* @return Event Hub retention settings
*
*/
private @Nullable RetentionDescriptionResponse retentionDescription;
/**
* @return Enumerates the possible values for the status of the Event Hub.
*
*/
private @Nullable String status;
/**
* @return The system meta data relating to this resource.
*
*/
private SystemDataResponse systemData;
/**
* @return The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
*
*/
private String type;
/**
* @return The exact time the message was updated.
*
*/
private String updatedAt;
private GetEventHubResult() {}
/**
* @return Properties of capture description
*
*/
public Optional captureDescription() {
return Optional.ofNullable(this.captureDescription);
}
/**
* @return Exact time the Event Hub 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 The geo-location where the resource lives
*
*/
public String location() {
return this.location;
}
/**
* @return Number of days to retain the events for this Event Hub, value should be 1 to 7 days
*
*/
public Optional messageRetentionInDays() {
return Optional.ofNullable(this.messageRetentionInDays);
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.
*
*/
public Optional partitionCount() {
return Optional.ofNullable(this.partitionCount);
}
/**
* @return Current number of shards on the Event Hub.
*
*/
public List partitionIds() {
return this.partitionIds;
}
/**
* @return Event Hub retention settings
*
*/
public Optional retentionDescription() {
return Optional.ofNullable(this.retentionDescription);
}
/**
* @return Enumerates the possible values for the status of the Event Hub.
*
*/
public Optional status() {
return Optional.ofNullable(this.status);
}
/**
* @return The system meta data relating to this resource.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
*
*/
public String type() {
return this.type;
}
/**
* @return The exact time the message was updated.
*
*/
public String updatedAt() {
return this.updatedAt;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetEventHubResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable CaptureDescriptionResponse captureDescription;
private String createdAt;
private String id;
private String location;
private @Nullable Double messageRetentionInDays;
private String name;
private @Nullable Double partitionCount;
private List partitionIds;
private @Nullable RetentionDescriptionResponse retentionDescription;
private @Nullable String status;
private SystemDataResponse systemData;
private String type;
private String updatedAt;
public Builder() {}
public Builder(GetEventHubResult defaults) {
Objects.requireNonNull(defaults);
this.captureDescription = defaults.captureDescription;
this.createdAt = defaults.createdAt;
this.id = defaults.id;
this.location = defaults.location;
this.messageRetentionInDays = defaults.messageRetentionInDays;
this.name = defaults.name;
this.partitionCount = defaults.partitionCount;
this.partitionIds = defaults.partitionIds;
this.retentionDescription = defaults.retentionDescription;
this.status = defaults.status;
this.systemData = defaults.systemData;
this.type = defaults.type;
this.updatedAt = defaults.updatedAt;
}
@CustomType.Setter
public Builder captureDescription(@Nullable CaptureDescriptionResponse captureDescription) {
this.captureDescription = captureDescription;
return this;
}
@CustomType.Setter
public Builder createdAt(String createdAt) {
if (createdAt == null) {
throw new MissingRequiredPropertyException("GetEventHubResult", "createdAt");
}
this.createdAt = createdAt;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetEventHubResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetEventHubResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder messageRetentionInDays(@Nullable Double messageRetentionInDays) {
this.messageRetentionInDays = messageRetentionInDays;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetEventHubResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder partitionCount(@Nullable Double partitionCount) {
this.partitionCount = partitionCount;
return this;
}
@CustomType.Setter
public Builder partitionIds(List partitionIds) {
if (partitionIds == null) {
throw new MissingRequiredPropertyException("GetEventHubResult", "partitionIds");
}
this.partitionIds = partitionIds;
return this;
}
public Builder partitionIds(String... partitionIds) {
return partitionIds(List.of(partitionIds));
}
@CustomType.Setter
public Builder retentionDescription(@Nullable RetentionDescriptionResponse retentionDescription) {
this.retentionDescription = retentionDescription;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetEventHubResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetEventHubResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder updatedAt(String updatedAt) {
if (updatedAt == null) {
throw new MissingRequiredPropertyException("GetEventHubResult", "updatedAt");
}
this.updatedAt = updatedAt;
return this;
}
public GetEventHubResult build() {
final var _resultValue = new GetEventHubResult();
_resultValue.captureDescription = captureDescription;
_resultValue.createdAt = createdAt;
_resultValue.id = id;
_resultValue.location = location;
_resultValue.messageRetentionInDays = messageRetentionInDays;
_resultValue.name = name;
_resultValue.partitionCount = partitionCount;
_resultValue.partitionIds = partitionIds;
_resultValue.retentionDescription = retentionDescription;
_resultValue.status = status;
_resultValue.systemData = systemData;
_resultValue.type = type;
_resultValue.updatedAt = updatedAt;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy