// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.managementgroups.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Management group patch parameters. */
@Fluent
public final class PatchManagementGroupRequest {
    /*
     * The friendly name of the management group.
     */
    @JsonProperty(value = "displayName")
    private String displayName;

    /*
     * (Optional) The fully qualified ID for the parent management group.  For example,
     * /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
     */
    @JsonProperty(value = "parentGroupId")
    private String parentGroupId;

    /** Creates an instance of PatchManagementGroupRequest class. */
    public PatchManagementGroupRequest() {
    }

    /**
     * Get the displayName property: The friendly name of the management group.
     *
     * @return the displayName value.
     */
    public String displayName() {
        return this.displayName;
    }

    /**
     * Set the displayName property: The friendly name of the management group.
     *
     * @param displayName the displayName value to set.
     * @return the PatchManagementGroupRequest object itself.
     */
    public PatchManagementGroupRequest withDisplayName(String displayName) {
        this.displayName = displayName;
        return this;
    }

    /**
     * Get the parentGroupId property: (Optional) The fully qualified ID for the parent management group. For example,
     * /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000.
     *
     * @return the parentGroupId value.
     */
    public String parentGroupId() {
        return this.parentGroupId;
    }

    /**
     * Set the parentGroupId property: (Optional) The fully qualified ID for the parent management group. For example,
     * /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000.
     *
     * @param parentGroupId the parentGroupId value to set.
     * @return the PatchManagementGroupRequest object itself.
     */
    public PatchManagementGroupRequest withParentGroupId(String parentGroupId) {
        this.parentGroupId = parentGroupId;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
