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

com.pulumi.azurenative.authorization.inputs.GetPolicyDefinitionVersionArgs 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.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


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

    public static final GetPolicyDefinitionVersionArgs Empty = new GetPolicyDefinitionVersionArgs();

    /**
     * The name of the policy definition.
     * 
     */
    @Import(name="policyDefinitionName", required=true)
    private Output policyDefinitionName;

    /**
     * @return The name of the policy definition.
     * 
     */
    public Output policyDefinitionName() {
        return this.policyDefinitionName;
    }

    /**
     * The policy definition version.  The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number
     * 
     */
    @Import(name="policyDefinitionVersion", required=true)
    private Output policyDefinitionVersion;

    /**
     * @return The policy definition version.  The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number
     * 
     */
    public Output policyDefinitionVersion() {
        return this.policyDefinitionVersion;
    }

    private GetPolicyDefinitionVersionArgs() {}

    private GetPolicyDefinitionVersionArgs(GetPolicyDefinitionVersionArgs $) {
        this.policyDefinitionName = $.policyDefinitionName;
        this.policyDefinitionVersion = $.policyDefinitionVersion;
    }

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

    public static final class Builder {
        private GetPolicyDefinitionVersionArgs $;

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

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

        /**
         * @param policyDefinitionName The name of the policy definition.
         * 
         * @return builder
         * 
         */
        public Builder policyDefinitionName(Output policyDefinitionName) {
            $.policyDefinitionName = policyDefinitionName;
            return this;
        }

        /**
         * @param policyDefinitionName The name of the policy definition.
         * 
         * @return builder
         * 
         */
        public Builder policyDefinitionName(String policyDefinitionName) {
            return policyDefinitionName(Output.of(policyDefinitionName));
        }

        /**
         * @param policyDefinitionVersion The policy definition version.  The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number
         * 
         * @return builder
         * 
         */
        public Builder policyDefinitionVersion(Output policyDefinitionVersion) {
            $.policyDefinitionVersion = policyDefinitionVersion;
            return this;
        }

        /**
         * @param policyDefinitionVersion The policy definition version.  The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number
         * 
         * @return builder
         * 
         */
        public Builder policyDefinitionVersion(String policyDefinitionVersion) {
            return policyDefinitionVersion(Output.of(policyDefinitionVersion));
        }

        public GetPolicyDefinitionVersionArgs build() {
            if ($.policyDefinitionName == null) {
                throw new MissingRequiredPropertyException("GetPolicyDefinitionVersionArgs", "policyDefinitionName");
            }
            if ($.policyDefinitionVersion == null) {
                throw new MissingRequiredPropertyException("GetPolicyDefinitionVersionArgs", "policyDefinitionVersion");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy