com.pulumi.azure.eventhub.outputs.GetAuthorizationRuleResult 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;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetAuthorizationRuleResult {
private String eventhubName;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private @Nullable Boolean listen;
private @Nullable 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;
private @Nullable Boolean send;
private GetAuthorizationRuleResult() {}
public String eventhubName() {
return this.eventhubName;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public Optional listen() {
return Optional.ofNullable(this.listen);
}
public Optional manage() {
return Optional.ofNullable(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;
}
public Optional send() {
return Optional.ofNullable(this.send);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAuthorizationRuleResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String eventhubName;
private String id;
private @Nullable Boolean listen;
private @Nullable 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 @Nullable Boolean send;
public Builder() {}
public Builder(GetAuthorizationRuleResult defaults) {
Objects.requireNonNull(defaults);
this.eventhubName = defaults.eventhubName;
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 eventhubName(String eventhubName) {
if (eventhubName == null) {
throw new MissingRequiredPropertyException("GetAuthorizationRuleResult", "eventhubName");
}
this.eventhubName = eventhubName;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetAuthorizationRuleResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder listen(@Nullable Boolean listen) {
this.listen = listen;
return this;
}
@CustomType.Setter
public Builder manage(@Nullable Boolean manage) {
this.manage = manage;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetAuthorizationRuleResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder namespaceName(String namespaceName) {
if (namespaceName == null) {
throw new MissingRequiredPropertyException("GetAuthorizationRuleResult", "namespaceName");
}
this.namespaceName = namespaceName;
return this;
}
@CustomType.Setter
public Builder primaryConnectionString(String primaryConnectionString) {
if (primaryConnectionString == null) {
throw new MissingRequiredPropertyException("GetAuthorizationRuleResult", "primaryConnectionString");
}
this.primaryConnectionString = primaryConnectionString;
return this;
}
@CustomType.Setter
public Builder primaryConnectionStringAlias(String primaryConnectionStringAlias) {
if (primaryConnectionStringAlias == null) {
throw new MissingRequiredPropertyException("GetAuthorizationRuleResult", "primaryConnectionStringAlias");
}
this.primaryConnectionStringAlias = primaryConnectionStringAlias;
return this;
}
@CustomType.Setter
public Builder primaryKey(String primaryKey) {
if (primaryKey == null) {
throw new MissingRequiredPropertyException("GetAuthorizationRuleResult", "primaryKey");
}
this.primaryKey = primaryKey;
return this;
}
@CustomType.Setter
public Builder resourceGroupName(String resourceGroupName) {
if (resourceGroupName == null) {
throw new MissingRequiredPropertyException("GetAuthorizationRuleResult", "resourceGroupName");
}
this.resourceGroupName = resourceGroupName;
return this;
}
@CustomType.Setter
public Builder secondaryConnectionString(String secondaryConnectionString) {
if (secondaryConnectionString == null) {
throw new MissingRequiredPropertyException("GetAuthorizationRuleResult", "secondaryConnectionString");
}
this.secondaryConnectionString = secondaryConnectionString;
return this;
}
@CustomType.Setter
public Builder secondaryConnectionStringAlias(String secondaryConnectionStringAlias) {
if (secondaryConnectionStringAlias == null) {
throw new MissingRequiredPropertyException("GetAuthorizationRuleResult", "secondaryConnectionStringAlias");
}
this.secondaryConnectionStringAlias = secondaryConnectionStringAlias;
return this;
}
@CustomType.Setter
public Builder secondaryKey(String secondaryKey) {
if (secondaryKey == null) {
throw new MissingRequiredPropertyException("GetAuthorizationRuleResult", "secondaryKey");
}
this.secondaryKey = secondaryKey;
return this;
}
@CustomType.Setter
public Builder send(@Nullable Boolean send) {
this.send = send;
return this;
}
public GetAuthorizationRuleResult build() {
final var _resultValue = new GetAuthorizationRuleResult();
_resultValue.eventhubName = eventhubName;
_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;
}
}
}