All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.authorization.inputs.GetPolicyAssignmentPlainArgs 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.authorization.inputs;

import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


public final class GetPolicyAssignmentPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetPolicyAssignmentPlainArgs Empty = new GetPolicyAssignmentPlainArgs();

    /**
     * The name of the policy assignment to get.
     * 
     */
    @Import(name="policyAssignmentName", required=true)
    private String policyAssignmentName;

    /**
     * @return The name of the policy assignment to get.
     * 
     */
    public String policyAssignmentName() {
        return this.policyAssignmentName;
    }

    /**
     * The scope of the policy assignment. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'
     * 
     */
    @Import(name="scope", required=true)
    private String scope;

    /**
     * @return The scope of the policy assignment. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'
     * 
     */
    public String scope() {
        return this.scope;
    }

    private GetPolicyAssignmentPlainArgs() {}

    private GetPolicyAssignmentPlainArgs(GetPolicyAssignmentPlainArgs $) {
        this.policyAssignmentName = $.policyAssignmentName;
        this.scope = $.scope;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(GetPolicyAssignmentPlainArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private GetPolicyAssignmentPlainArgs $;

        public Builder() {
            $ = new GetPolicyAssignmentPlainArgs();
        }

        public Builder(GetPolicyAssignmentPlainArgs defaults) {
            $ = new GetPolicyAssignmentPlainArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param policyAssignmentName The name of the policy assignment to get.
         * 
         * @return builder
         * 
         */
        public Builder policyAssignmentName(String policyAssignmentName) {
            $.policyAssignmentName = policyAssignmentName;
            return this;
        }

        /**
         * @param scope The scope of the policy assignment. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            $.scope = scope;
            return this;
        }

        public GetPolicyAssignmentPlainArgs build() {
            if ($.policyAssignmentName == null) {
                throw new MissingRequiredPropertyException("GetPolicyAssignmentPlainArgs", "policyAssignmentName");
            }
            if ($.scope == null) {
                throw new MissingRequiredPropertyException("GetPolicyAssignmentPlainArgs", "scope");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy