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

package com.azure.resourcemanager.networkcloud.models;

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

/** ManagedResourceGroupConfiguration represents the configuration of the resource group managed by Azure. */
@Fluent
public final class ManagedResourceGroupConfiguration {
    /*
     * The location of the managed resource group. If not specified, the location of the parent resource is chosen.
     */
    @JsonProperty(value = "location")
    private String location;

    /*
     * The name for the managed resource group. If not specified, the unique name is automatically generated.
     */
    @JsonProperty(value = "name")
    private String name;

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

    /**
     * Get the location property: The location of the managed resource group. If not specified, the location of the
     * parent resource is chosen.
     *
     * @return the location value.
     */
    public String location() {
        return this.location;
    }

    /**
     * Set the location property: The location of the managed resource group. If not specified, the location of the
     * parent resource is chosen.
     *
     * @param location the location value to set.
     * @return the ManagedResourceGroupConfiguration object itself.
     */
    public ManagedResourceGroupConfiguration withLocation(String location) {
        this.location = location;
        return this;
    }

    /**
     * Get the name property: The name for the managed resource group. If not specified, the unique name is
     * automatically generated.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: The name for the managed resource group. If not specified, the unique name is
     * automatically generated.
     *
     * @param name the name value to set.
     * @return the ManagedResourceGroupConfiguration object itself.
     */
    public ManagedResourceGroupConfiguration withName(String name) {
        this.name = name;
        return this;
    }

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