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

com.pulumi.azurenative.authorization.PolicySetDefinitionVersionAtManagementGroupArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** 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;

import com.pulumi.azurenative.authorization.enums.PolicyType;
import com.pulumi.azurenative.authorization.inputs.ParameterDefinitionsValueArgs;
import com.pulumi.azurenative.authorization.inputs.PolicyDefinitionGroupArgs;
import com.pulumi.azurenative.authorization.inputs.PolicyDefinitionReferenceArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class PolicySetDefinitionVersionAtManagementGroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final PolicySetDefinitionVersionAtManagementGroupArgs Empty = new PolicySetDefinitionVersionAtManagementGroupArgs();

    /**
     * The policy set definition description.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The policy set definition description.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The display name of the policy set definition.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return The display name of the policy set definition.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * The name of the management group. The name is case insensitive.
     * 
     */
    @Import(name="managementGroupName", required=true)
    private Output managementGroupName;

    /**
     * @return The name of the management group. The name is case insensitive.
     * 
     */
    public Output managementGroupName() {
        return this.managementGroupName;
    }

    /**
     * The policy set definition metadata.  Metadata is an open ended object and is typically a collection of key value pairs.
     * 
     */
    @Import(name="metadata")
    private @Nullable Output metadata;

    /**
     * @return The policy set definition metadata.  Metadata is an open ended object and is typically a collection of key value pairs.
     * 
     */
    public Optional> metadata() {
        return Optional.ofNullable(this.metadata);
    }

    /**
     * The policy set definition parameters that can be used in policy definition references.
     * 
     */
    @Import(name="parameters")
    private @Nullable Output> parameters;

    /**
     * @return The policy set definition parameters that can be used in policy definition references.
     * 
     */
    public Optional>> parameters() {
        return Optional.ofNullable(this.parameters);
    }

    /**
     * The metadata describing groups of policy definition references within the policy set definition.
     * 
     */
    @Import(name="policyDefinitionGroups")
    private @Nullable Output> policyDefinitionGroups;

    /**
     * @return The metadata describing groups of policy definition references within the policy set definition.
     * 
     */
    public Optional>> policyDefinitionGroups() {
        return Optional.ofNullable(this.policyDefinitionGroups);
    }

    /**
     * The policy set 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")
    private @Nullable Output policyDefinitionVersion;

    /**
     * @return The policy set 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 Optional> policyDefinitionVersion() {
        return Optional.ofNullable(this.policyDefinitionVersion);
    }

    /**
     * An array of policy definition references.
     * 
     */
    @Import(name="policyDefinitions", required=true)
    private Output> policyDefinitions;

    /**
     * @return An array of policy definition references.
     * 
     */
    public Output> policyDefinitions() {
        return this.policyDefinitions;
    }

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

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

    /**
     * The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
     * 
     */
    @Import(name="policyType")
    private @Nullable Output> policyType;

    /**
     * @return The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
     * 
     */
    public Optional>> policyType() {
        return Optional.ofNullable(this.policyType);
    }

    /**
     * The policy set definition version in #.#.# format.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return The policy set definition version in #.#.# format.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private PolicySetDefinitionVersionAtManagementGroupArgs() {}

    private PolicySetDefinitionVersionAtManagementGroupArgs(PolicySetDefinitionVersionAtManagementGroupArgs $) {
        this.description = $.description;
        this.displayName = $.displayName;
        this.managementGroupName = $.managementGroupName;
        this.metadata = $.metadata;
        this.parameters = $.parameters;
        this.policyDefinitionGroups = $.policyDefinitionGroups;
        this.policyDefinitionVersion = $.policyDefinitionVersion;
        this.policyDefinitions = $.policyDefinitions;
        this.policySetDefinitionName = $.policySetDefinitionName;
        this.policyType = $.policyType;
        this.version = $.version;
    }

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

    public static final class Builder {
        private PolicySetDefinitionVersionAtManagementGroupArgs $;

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

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

        /**
         * @param description The policy set definition description.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

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

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

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

        /**
         * @param managementGroupName The name of the management group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder managementGroupName(Output managementGroupName) {
            $.managementGroupName = managementGroupName;
            return this;
        }

        /**
         * @param managementGroupName The name of the management group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder managementGroupName(String managementGroupName) {
            return managementGroupName(Output.of(managementGroupName));
        }

        /**
         * @param metadata The policy set definition metadata.  Metadata is an open ended object and is typically a collection of key value pairs.
         * 
         * @return builder
         * 
         */
        public Builder metadata(@Nullable Output metadata) {
            $.metadata = metadata;
            return this;
        }

        /**
         * @param metadata The policy set definition metadata.  Metadata is an open ended object and is typically a collection of key value pairs.
         * 
         * @return builder
         * 
         */
        public Builder metadata(Object metadata) {
            return metadata(Output.of(metadata));
        }

        /**
         * @param parameters The policy set definition parameters that can be used in policy definition references.
         * 
         * @return builder
         * 
         */
        public Builder parameters(@Nullable Output> parameters) {
            $.parameters = parameters;
            return this;
        }

        /**
         * @param parameters The policy set definition parameters that can be used in policy definition references.
         * 
         * @return builder
         * 
         */
        public Builder parameters(Map parameters) {
            return parameters(Output.of(parameters));
        }

        /**
         * @param policyDefinitionGroups The metadata describing groups of policy definition references within the policy set definition.
         * 
         * @return builder
         * 
         */
        public Builder policyDefinitionGroups(@Nullable Output> policyDefinitionGroups) {
            $.policyDefinitionGroups = policyDefinitionGroups;
            return this;
        }

        /**
         * @param policyDefinitionGroups The metadata describing groups of policy definition references within the policy set definition.
         * 
         * @return builder
         * 
         */
        public Builder policyDefinitionGroups(List policyDefinitionGroups) {
            return policyDefinitionGroups(Output.of(policyDefinitionGroups));
        }

        /**
         * @param policyDefinitionGroups The metadata describing groups of policy definition references within the policy set definition.
         * 
         * @return builder
         * 
         */
        public Builder policyDefinitionGroups(PolicyDefinitionGroupArgs... policyDefinitionGroups) {
            return policyDefinitionGroups(List.of(policyDefinitionGroups));
        }

        /**
         * @param policyDefinitionVersion The policy set 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(@Nullable Output policyDefinitionVersion) {
            $.policyDefinitionVersion = policyDefinitionVersion;
            return this;
        }

        /**
         * @param policyDefinitionVersion The policy set 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));
        }

        /**
         * @param policyDefinitions An array of policy definition references.
         * 
         * @return builder
         * 
         */
        public Builder policyDefinitions(Output> policyDefinitions) {
            $.policyDefinitions = policyDefinitions;
            return this;
        }

        /**
         * @param policyDefinitions An array of policy definition references.
         * 
         * @return builder
         * 
         */
        public Builder policyDefinitions(List policyDefinitions) {
            return policyDefinitions(Output.of(policyDefinitions));
        }

        /**
         * @param policyDefinitions An array of policy definition references.
         * 
         * @return builder
         * 
         */
        public Builder policyDefinitions(PolicyDefinitionReferenceArgs... policyDefinitions) {
            return policyDefinitions(List.of(policyDefinitions));
        }

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

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

        /**
         * @param policyType The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
         * 
         * @return builder
         * 
         */
        public Builder policyType(@Nullable Output> policyType) {
            $.policyType = policyType;
            return this;
        }

        /**
         * @param policyType The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
         * 
         * @return builder
         * 
         */
        public Builder policyType(Either policyType) {
            return policyType(Output.of(policyType));
        }

        /**
         * @param policyType The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
         * 
         * @return builder
         * 
         */
        public Builder policyType(String policyType) {
            return policyType(Either.ofLeft(policyType));
        }

        /**
         * @param policyType The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
         * 
         * @return builder
         * 
         */
        public Builder policyType(PolicyType policyType) {
            return policyType(Either.ofRight(policyType));
        }

        /**
         * @param version The policy set definition version in #.#.# format.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version The policy set definition version in #.#.# format.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public PolicySetDefinitionVersionAtManagementGroupArgs build() {
            if ($.managementGroupName == null) {
                throw new MissingRequiredPropertyException("PolicySetDefinitionVersionAtManagementGroupArgs", "managementGroupName");
            }
            if ($.policyDefinitions == null) {
                throw new MissingRequiredPropertyException("PolicySetDefinitionVersionAtManagementGroupArgs", "policyDefinitions");
            }
            if ($.policySetDefinitionName == null) {
                throw new MissingRequiredPropertyException("PolicySetDefinitionVersionAtManagementGroupArgs", "policySetDefinitionName");
            }
            return $;
        }
    }

}