
com.pulumi.azurenative.kusto.outputs.GetDatabasePrincipalAssignmentResult 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.kusto.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetDatabasePrincipalAssignmentResult {
/**
* @return The service principal object id in AAD (Azure active directory)
*
*/
private String aadObjectId;
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
private String id;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.
*
*/
private String principalId;
/**
* @return The principal name
*
*/
private String principalName;
/**
* @return Principal type.
*
*/
private String principalType;
/**
* @return The provisioned state of the resource.
*
*/
private String provisioningState;
/**
* @return Database principal role.
*
*/
private String role;
/**
* @return The tenant id of the principal
*
*/
private @Nullable String tenantId;
/**
* @return The tenant name of the principal
*
*/
private String tenantName;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
private String type;
private GetDatabasePrincipalAssignmentResult() {}
/**
* @return The service principal object id in AAD (Azure active directory)
*
*/
public String aadObjectId() {
return this.aadObjectId;
}
/**
* @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 name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.
*
*/
public String principalId() {
return this.principalId;
}
/**
* @return The principal name
*
*/
public String principalName() {
return this.principalName;
}
/**
* @return Principal type.
*
*/
public String principalType() {
return this.principalType;
}
/**
* @return The provisioned state of the resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Database principal role.
*
*/
public String role() {
return this.role;
}
/**
* @return The tenant id of the principal
*
*/
public Optional tenantId() {
return Optional.ofNullable(this.tenantId);
}
/**
* @return The tenant name of the principal
*
*/
public String tenantName() {
return this.tenantName;
}
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDatabasePrincipalAssignmentResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String aadObjectId;
private String id;
private String name;
private String principalId;
private String principalName;
private String principalType;
private String provisioningState;
private String role;
private @Nullable String tenantId;
private String tenantName;
private String type;
public Builder() {}
public Builder(GetDatabasePrincipalAssignmentResult defaults) {
Objects.requireNonNull(defaults);
this.aadObjectId = defaults.aadObjectId;
this.id = defaults.id;
this.name = defaults.name;
this.principalId = defaults.principalId;
this.principalName = defaults.principalName;
this.principalType = defaults.principalType;
this.provisioningState = defaults.provisioningState;
this.role = defaults.role;
this.tenantId = defaults.tenantId;
this.tenantName = defaults.tenantName;
this.type = defaults.type;
}
@CustomType.Setter
public Builder aadObjectId(String aadObjectId) {
if (aadObjectId == null) {
throw new MissingRequiredPropertyException("GetDatabasePrincipalAssignmentResult", "aadObjectId");
}
this.aadObjectId = aadObjectId;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetDatabasePrincipalAssignmentResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetDatabasePrincipalAssignmentResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder principalId(String principalId) {
if (principalId == null) {
throw new MissingRequiredPropertyException("GetDatabasePrincipalAssignmentResult", "principalId");
}
this.principalId = principalId;
return this;
}
@CustomType.Setter
public Builder principalName(String principalName) {
if (principalName == null) {
throw new MissingRequiredPropertyException("GetDatabasePrincipalAssignmentResult", "principalName");
}
this.principalName = principalName;
return this;
}
@CustomType.Setter
public Builder principalType(String principalType) {
if (principalType == null) {
throw new MissingRequiredPropertyException("GetDatabasePrincipalAssignmentResult", "principalType");
}
this.principalType = principalType;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetDatabasePrincipalAssignmentResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder role(String role) {
if (role == null) {
throw new MissingRequiredPropertyException("GetDatabasePrincipalAssignmentResult", "role");
}
this.role = role;
return this;
}
@CustomType.Setter
public Builder tenantId(@Nullable String tenantId) {
this.tenantId = tenantId;
return this;
}
@CustomType.Setter
public Builder tenantName(String tenantName) {
if (tenantName == null) {
throw new MissingRequiredPropertyException("GetDatabasePrincipalAssignmentResult", "tenantName");
}
this.tenantName = tenantName;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetDatabasePrincipalAssignmentResult", "type");
}
this.type = type;
return this;
}
public GetDatabasePrincipalAssignmentResult build() {
final var _resultValue = new GetDatabasePrincipalAssignmentResult();
_resultValue.aadObjectId = aadObjectId;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.principalId = principalId;
_resultValue.principalName = principalName;
_resultValue.principalType = principalType;
_resultValue.provisioningState = provisioningState;
_resultValue.role = role;
_resultValue.tenantId = tenantId;
_resultValue.tenantName = tenantName;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy