
com.pulumi.azurenative.insights.outputs.EventHubReceiverResponse 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.insights.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class EventHubReceiverResponse {
/**
* @return The name of the specific Event Hub queue
*
*/
private String eventHubName;
/**
* @return The Event Hub namespace
*
*/
private String eventHubNameSpace;
/**
* @return The name of the Event hub receiver. Names must be unique across all receivers within an action group.
*
*/
private String name;
/**
* @return The Id for the subscription containing this event hub
*
*/
private String subscriptionId;
/**
* @return The tenant Id for the subscription containing this event hub
*
*/
private @Nullable String tenantId;
/**
* @return Indicates whether to use common alert schema.
*
*/
private @Nullable Boolean useCommonAlertSchema;
private EventHubReceiverResponse() {}
/**
* @return The name of the specific Event Hub queue
*
*/
public String eventHubName() {
return this.eventHubName;
}
/**
* @return The Event Hub namespace
*
*/
public String eventHubNameSpace() {
return this.eventHubNameSpace;
}
/**
* @return The name of the Event hub receiver. Names must be unique across all receivers within an action group.
*
*/
public String name() {
return this.name;
}
/**
* @return The Id for the subscription containing this event hub
*
*/
public String subscriptionId() {
return this.subscriptionId;
}
/**
* @return The tenant Id for the subscription containing this event hub
*
*/
public Optional tenantId() {
return Optional.ofNullable(this.tenantId);
}
/**
* @return Indicates whether to use common alert schema.
*
*/
public Optional useCommonAlertSchema() {
return Optional.ofNullable(this.useCommonAlertSchema);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EventHubReceiverResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String eventHubName;
private String eventHubNameSpace;
private String name;
private String subscriptionId;
private @Nullable String tenantId;
private @Nullable Boolean useCommonAlertSchema;
public Builder() {}
public Builder(EventHubReceiverResponse defaults) {
Objects.requireNonNull(defaults);
this.eventHubName = defaults.eventHubName;
this.eventHubNameSpace = defaults.eventHubNameSpace;
this.name = defaults.name;
this.subscriptionId = defaults.subscriptionId;
this.tenantId = defaults.tenantId;
this.useCommonAlertSchema = defaults.useCommonAlertSchema;
}
@CustomType.Setter
public Builder eventHubName(String eventHubName) {
if (eventHubName == null) {
throw new MissingRequiredPropertyException("EventHubReceiverResponse", "eventHubName");
}
this.eventHubName = eventHubName;
return this;
}
@CustomType.Setter
public Builder eventHubNameSpace(String eventHubNameSpace) {
if (eventHubNameSpace == null) {
throw new MissingRequiredPropertyException("EventHubReceiverResponse", "eventHubNameSpace");
}
this.eventHubNameSpace = eventHubNameSpace;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("EventHubReceiverResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder subscriptionId(String subscriptionId) {
if (subscriptionId == null) {
throw new MissingRequiredPropertyException("EventHubReceiverResponse", "subscriptionId");
}
this.subscriptionId = subscriptionId;
return this;
}
@CustomType.Setter
public Builder tenantId(@Nullable String tenantId) {
this.tenantId = tenantId;
return this;
}
@CustomType.Setter
public Builder useCommonAlertSchema(@Nullable Boolean useCommonAlertSchema) {
this.useCommonAlertSchema = useCommonAlertSchema;
return this;
}
public EventHubReceiverResponse build() {
final var _resultValue = new EventHubReceiverResponse();
_resultValue.eventHubName = eventHubName;
_resultValue.eventHubNameSpace = eventHubNameSpace;
_resultValue.name = name;
_resultValue.subscriptionId = subscriptionId;
_resultValue.tenantId = tenantId;
_resultValue.useCommonAlertSchema = useCommonAlertSchema;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy