com.pulumi.azure.eventhub.outputs.GetNamespaceAuthorizationRuleResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.Boolean;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetNamespaceAuthorizationRuleResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return Does this Authorization Rule have permissions to Listen to the Event Hub?
*
*/
private Boolean listen;
/**
* @return Does this Authorization Rule have permissions to Manage to the Event Hub?
*
*/
private Boolean manage;
private String name;
private String namespaceName;
/**
* @return The Primary Connection String for the Event Hubs authorization Rule.
*
*/
private String primaryConnectionString;
/**
* @return The alias of the Primary Connection String for the Event Hubs authorization Rule.
*
*/
private String primaryConnectionStringAlias;
/**
* @return The Primary Key for the Event Hubs authorization Rule.
*
*/
private String primaryKey;
private String resourceGroupName;
/**
* @return The Secondary Connection String for the Event Hubs authorization Rule.
*
*/
private String secondaryConnectionString;
/**
* @return The alias of the Secondary Connection String for the Event Hubs authorization Rule.
*
*/
private String secondaryConnectionStringAlias;
/**
* @return The Secondary Key for the Event Hubs authorization Rule.
*
*/
private String secondaryKey;
/**
* @return Does this Authorization Rule have permissions to Send to the Event Hub?
*
*/
private Boolean send;
private GetNamespaceAuthorizationRuleResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return Does this Authorization Rule have permissions to Listen to the Event Hub?
*
*/
public Boolean listen() {
return this.listen;
}
/**
* @return Does this Authorization Rule have permissions to Manage to the Event Hub?
*
*/
public Boolean manage() {
return this.manage;
}
public String name() {
return this.name;
}
public String namespaceName() {
return this.namespaceName;
}
/**
* @return The Primary Connection String for the Event Hubs authorization Rule.
*
*/
public String primaryConnectionString() {
return this.primaryConnectionString;
}
/**
* @return The alias of the Primary Connection String for the Event Hubs authorization Rule.
*
*/
public String primaryConnectionStringAlias() {
return this.primaryConnectionStringAlias;
}
/**
* @return The Primary Key for the Event Hubs authorization Rule.
*
*/
public String primaryKey() {
return this.primaryKey;
}
public String resourceGroupName() {
return this.resourceGroupName;
}
/**
* @return The Secondary Connection String for the Event Hubs authorization Rule.
*
*/
public String secondaryConnectionString() {
return this.secondaryConnectionString;
}
/**
* @return The alias of the Secondary Connection String for the Event Hubs authorization Rule.
*
*/
public String secondaryConnectionStringAlias() {
return this.secondaryConnectionStringAlias;
}
/**
* @return The Secondary Key for the Event Hubs authorization Rule.
*
*/
public String secondaryKey() {
return this.secondaryKey;
}
/**
* @return Does this Authorization Rule have permissions to Send to the Event Hub?
*
*/
public Boolean send() {
return this.send;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetNamespaceAuthorizationRuleResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private Boolean listen;
private Boolean manage;
private String name;
private String namespaceName;
private String primaryConnectionString;
private String primaryConnectionStringAlias;
private String primaryKey;
private String resourceGroupName;
private String secondaryConnectionString;
private String secondaryConnectionStringAlias;
private String secondaryKey;
private Boolean send;
public Builder() {}
public Builder(GetNamespaceAuthorizationRuleResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.listen = defaults.listen;
this.manage = defaults.manage;
this.name = defaults.name;
this.namespaceName = defaults.namespaceName;
this.primaryConnectionString = defaults.primaryConnectionString;
this.primaryConnectionStringAlias = defaults.primaryConnectionStringAlias;
this.primaryKey = defaults.primaryKey;
this.resourceGroupName = defaults.resourceGroupName;
this.secondaryConnectionString = defaults.secondaryConnectionString;
this.secondaryConnectionStringAlias = defaults.secondaryConnectionStringAlias;
this.secondaryKey = defaults.secondaryKey;
this.send = defaults.send;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetNamespaceAuthorizationRuleResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder listen(Boolean listen) {
if (listen == null) {
throw new MissingRequiredPropertyException("GetNamespaceAuthorizationRuleResult", "listen");
}
this.listen = listen;
return this;
}
@CustomType.Setter
public Builder manage(Boolean manage) {
if (manage == null) {
throw new MissingRequiredPropertyException("GetNamespaceAuthorizationRuleResult", "manage");
}
this.manage = manage;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetNamespaceAuthorizationRuleResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder namespaceName(String namespaceName) {
if (namespaceName == null) {
throw new MissingRequiredPropertyException("GetNamespaceAuthorizationRuleResult", "namespaceName");
}
this.namespaceName = namespaceName;
return this;
}
@CustomType.Setter
public Builder primaryConnectionString(String primaryConnectionString) {
if (primaryConnectionString == null) {
throw new MissingRequiredPropertyException("GetNamespaceAuthorizationRuleResult", "primaryConnectionString");
}
this.primaryConnectionString = primaryConnectionString;
return this;
}
@CustomType.Setter
public Builder primaryConnectionStringAlias(String primaryConnectionStringAlias) {
if (primaryConnectionStringAlias == null) {
throw new MissingRequiredPropertyException("GetNamespaceAuthorizationRuleResult", "primaryConnectionStringAlias");
}
this.primaryConnectionStringAlias = primaryConnectionStringAlias;
return this;
}
@CustomType.Setter
public Builder primaryKey(String primaryKey) {
if (primaryKey == null) {
throw new MissingRequiredPropertyException("GetNamespaceAuthorizationRuleResult", "primaryKey");
}
this.primaryKey = primaryKey;
return this;
}
@CustomType.Setter
public Builder resourceGroupName(String resourceGroupName) {
if (resourceGroupName == null) {
throw new MissingRequiredPropertyException("GetNamespaceAuthorizationRuleResult", "resourceGroupName");
}
this.resourceGroupName = resourceGroupName;
return this;
}
@CustomType.Setter
public Builder secondaryConnectionString(String secondaryConnectionString) {
if (secondaryConnectionString == null) {
throw new MissingRequiredPropertyException("GetNamespaceAuthorizationRuleResult", "secondaryConnectionString");
}
this.secondaryConnectionString = secondaryConnectionString;
return this;
}
@CustomType.Setter
public Builder secondaryConnectionStringAlias(String secondaryConnectionStringAlias) {
if (secondaryConnectionStringAlias == null) {
throw new MissingRequiredPropertyException("GetNamespaceAuthorizationRuleResult", "secondaryConnectionStringAlias");
}
this.secondaryConnectionStringAlias = secondaryConnectionStringAlias;
return this;
}
@CustomType.Setter
public Builder secondaryKey(String secondaryKey) {
if (secondaryKey == null) {
throw new MissingRequiredPropertyException("GetNamespaceAuthorizationRuleResult", "secondaryKey");
}
this.secondaryKey = secondaryKey;
return this;
}
@CustomType.Setter
public Builder send(Boolean send) {
if (send == null) {
throw new MissingRequiredPropertyException("GetNamespaceAuthorizationRuleResult", "send");
}
this.send = send;
return this;
}
public GetNamespaceAuthorizationRuleResult build() {
final var _resultValue = new GetNamespaceAuthorizationRuleResult();
_resultValue.id = id;
_resultValue.listen = listen;
_resultValue.manage = manage;
_resultValue.name = name;
_resultValue.namespaceName = namespaceName;
_resultValue.primaryConnectionString = primaryConnectionString;
_resultValue.primaryConnectionStringAlias = primaryConnectionStringAlias;
_resultValue.primaryKey = primaryKey;
_resultValue.resourceGroupName = resourceGroupName;
_resultValue.secondaryConnectionString = secondaryConnectionString;
_resultValue.secondaryConnectionStringAlias = secondaryConnectionStringAlias;
_resultValue.secondaryKey = secondaryKey;
_resultValue.send = send;
return _resultValue;
}
}
}