// 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;

/** (Optional) The ID of the parent management group. */
@Fluent
public final class ParentGroupInfo {
    /*
     * The fully qualified ID for the parent management group.  For example,
     * /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
     */
    @JsonProperty(value = "id")
    private String id;

    /*
     * The name of the parent management group
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * The friendly name of the parent management group.
     */
    @JsonProperty(value = "displayName")
    private String displayName;

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

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

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

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

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

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

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

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