
com.pulumi.azurenative.cache.outputs.GetAccessPolicyAssignmentResult Maven / Gradle / Ivy
// *** 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.cache.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetAccessPolicyAssignmentResult {
/**
* @return The name of the access policy that is being assigned
*
*/
private String accessPolicyName;
/**
* @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 Object Id to assign access policy to
*
*/
private String objectId;
/**
* @return User friendly name for object id. Also represents username for token based authentication
*
*/
private String objectIdAlias;
/**
* @return Provisioning state of an access policy assignment set
*
*/
private String provisioningState;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
private String type;
private GetAccessPolicyAssignmentResult() {}
/**
* @return The name of the access policy that is being assigned
*
*/
public String accessPolicyName() {
return this.accessPolicyName;
}
/**
* @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 Object Id to assign access policy to
*
*/
public String objectId() {
return this.objectId;
}
/**
* @return User friendly name for object id. Also represents username for token based authentication
*
*/
public String objectIdAlias() {
return this.objectIdAlias;
}
/**
* @return Provisioning state of an access policy assignment set
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @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(GetAccessPolicyAssignmentResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String accessPolicyName;
private String id;
private String name;
private String objectId;
private String objectIdAlias;
private String provisioningState;
private String type;
public Builder() {}
public Builder(GetAccessPolicyAssignmentResult defaults) {
Objects.requireNonNull(defaults);
this.accessPolicyName = defaults.accessPolicyName;
this.id = defaults.id;
this.name = defaults.name;
this.objectId = defaults.objectId;
this.objectIdAlias = defaults.objectIdAlias;
this.provisioningState = defaults.provisioningState;
this.type = defaults.type;
}
@CustomType.Setter
public Builder accessPolicyName(String accessPolicyName) {
if (accessPolicyName == null) {
throw new MissingRequiredPropertyException("GetAccessPolicyAssignmentResult", "accessPolicyName");
}
this.accessPolicyName = accessPolicyName;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetAccessPolicyAssignmentResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetAccessPolicyAssignmentResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder objectId(String objectId) {
if (objectId == null) {
throw new MissingRequiredPropertyException("GetAccessPolicyAssignmentResult", "objectId");
}
this.objectId = objectId;
return this;
}
@CustomType.Setter
public Builder objectIdAlias(String objectIdAlias) {
if (objectIdAlias == null) {
throw new MissingRequiredPropertyException("GetAccessPolicyAssignmentResult", "objectIdAlias");
}
this.objectIdAlias = objectIdAlias;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetAccessPolicyAssignmentResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetAccessPolicyAssignmentResult", "type");
}
this.type = type;
return this;
}
public GetAccessPolicyAssignmentResult build() {
final var _resultValue = new GetAccessPolicyAssignmentResult();
_resultValue.accessPolicyName = accessPolicyName;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.objectId = objectId;
_resultValue.objectIdAlias = objectIdAlias;
_resultValue.provisioningState = provisioningState;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy