// *** 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.azure.policy.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class PolicySetDefinitionPolicyDefinitionGroup {
    /**
     * @return The ID of a resource that contains additional metadata about this policy definition group.
     * 
     */
    private @Nullable String additionalMetadataResourceId;
    /**
     * @return The category of this policy definition group.
     * 
     */
    private @Nullable String category;
    /**
     * @return The description of this policy definition group.
     * 
     */
    private @Nullable String description;
    /**
     * @return The display name of this policy definition group.
     * 
     */
    private @Nullable String displayName;
    /**
     * @return The name of this policy definition group.
     * 
     */
    private String name;

    private PolicySetDefinitionPolicyDefinitionGroup() {}
    /**
     * @return The ID of a resource that contains additional metadata about this policy definition group.
     * 
     */
    public Optional<String> additionalMetadataResourceId() {
        return Optional.ofNullable(this.additionalMetadataResourceId);
    }
    /**
     * @return The category of this policy definition group.
     * 
     */
    public Optional<String> category() {
        return Optional.ofNullable(this.category);
    }
    /**
     * @return The description of this policy definition group.
     * 
     */
    public Optional<String> description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return The display name of this policy definition group.
     * 
     */
    public Optional<String> displayName() {
        return Optional.ofNullable(this.displayName);
    }
    /**
     * @return The name of this policy definition group.
     * 
     */
    public String name() {
        return this.name;
    }

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

    public static Builder builder(PolicySetDefinitionPolicyDefinitionGroup defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String additionalMetadataResourceId;
        private @Nullable String category;
        private @Nullable String description;
        private @Nullable String displayName;
        private String name;
        public Builder() {}
        public Builder(PolicySetDefinitionPolicyDefinitionGroup defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.additionalMetadataResourceId = defaults.additionalMetadataResourceId;
    	      this.category = defaults.category;
    	      this.description = defaults.description;
    	      this.displayName = defaults.displayName;
    	      this.name = defaults.name;
        }

        @CustomType.Setter
        public Builder additionalMetadataResourceId(@Nullable String additionalMetadataResourceId) {
            this.additionalMetadataResourceId = additionalMetadataResourceId;
            return this;
        }
        @CustomType.Setter
        public Builder category(@Nullable String category) {
            this.category = category;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder displayName(@Nullable String displayName) {
            this.displayName = displayName;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        public PolicySetDefinitionPolicyDefinitionGroup build() {
            final var o = new PolicySetDefinitionPolicyDefinitionGroup();
            o.additionalMetadataResourceId = additionalMetadataResourceId;
            o.category = category;
            o.description = description;
            o.displayName = displayName;
            o.name = name;
            return o;
        }
    }
}
