com.pulumi.azurenative.eventgrid.outputs.GetNamespaceTopicResult 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.eventgrid.outputs;
import com.pulumi.azurenative.eventgrid.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetNamespaceTopicResult {
/**
* @return Event retention for the namespace topic expressed in days. The property default value is 1 day.
* Min event retention duration value is 1 day and max event retention duration value is 1 day.
*
*/
private @Nullable Integer eventRetentionInDays;
/**
* @return Fully qualified identifier of the resource.
*
*/
private String id;
/**
* @return This determines the format that is expected for incoming events published to the topic.
*
*/
private @Nullable String inputSchema;
/**
* @return Name of the resource.
*
*/
private String name;
/**
* @return Provisioning state of the namespace topic.
*
*/
private String provisioningState;
/**
* @return Publisher type of the namespace topic.
*
*/
private @Nullable String publisherType;
/**
* @return The system metadata relating to namespace topic resource.
*
*/
private SystemDataResponse systemData;
/**
* @return Type of the resource.
*
*/
private String type;
private GetNamespaceTopicResult() {}
/**
* @return Event retention for the namespace topic expressed in days. The property default value is 1 day.
* Min event retention duration value is 1 day and max event retention duration value is 1 day.
*
*/
public Optional eventRetentionInDays() {
return Optional.ofNullable(this.eventRetentionInDays);
}
/**
* @return Fully qualified identifier of the resource.
*
*/
public String id() {
return this.id;
}
/**
* @return This determines the format that is expected for incoming events published to the topic.
*
*/
public Optional inputSchema() {
return Optional.ofNullable(this.inputSchema);
}
/**
* @return Name of the resource.
*
*/
public String name() {
return this.name;
}
/**
* @return Provisioning state of the namespace topic.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Publisher type of the namespace topic.
*
*/
public Optional publisherType() {
return Optional.ofNullable(this.publisherType);
}
/**
* @return The system metadata relating to namespace topic resource.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return Type of the resource.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetNamespaceTopicResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer eventRetentionInDays;
private String id;
private @Nullable String inputSchema;
private String name;
private String provisioningState;
private @Nullable String publisherType;
private SystemDataResponse systemData;
private String type;
public Builder() {}
public Builder(GetNamespaceTopicResult defaults) {
Objects.requireNonNull(defaults);
this.eventRetentionInDays = defaults.eventRetentionInDays;
this.id = defaults.id;
this.inputSchema = defaults.inputSchema;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.publisherType = defaults.publisherType;
this.systemData = defaults.systemData;
this.type = defaults.type;
}
@CustomType.Setter
public Builder eventRetentionInDays(@Nullable Integer eventRetentionInDays) {
this.eventRetentionInDays = eventRetentionInDays;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetNamespaceTopicResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder inputSchema(@Nullable String inputSchema) {
this.inputSchema = inputSchema;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetNamespaceTopicResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetNamespaceTopicResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder publisherType(@Nullable String publisherType) {
this.publisherType = publisherType;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetNamespaceTopicResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetNamespaceTopicResult", "type");
}
this.type = type;
return this;
}
public GetNamespaceTopicResult build() {
final var _resultValue = new GetNamespaceTopicResult();
_resultValue.eventRetentionInDays = eventRetentionInDays;
_resultValue.id = id;
_resultValue.inputSchema = inputSchema;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.publisherType = publisherType;
_resultValue.systemData = systemData;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy