// 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.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** AadConfiguration represents the Azure Active Directory Integration properties. */
@Fluent
public final class AadConfiguration {
    /*
     * The list of Azure Active Directory group object IDs that will have an administrative role on the Kubernetes
     * cluster.
     */
    @JsonProperty(value = "adminGroupObjectIds", required = true)
    private List<String> adminGroupObjectIds;

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

    /**
     * Get the adminGroupObjectIds property: The list of Azure Active Directory group object IDs that will have an
     * administrative role on the Kubernetes cluster.
     *
     * @return the adminGroupObjectIds value.
     */
    public List<String> adminGroupObjectIds() {
        return this.adminGroupObjectIds;
    }

    /**
     * Set the adminGroupObjectIds property: The list of Azure Active Directory group object IDs that will have an
     * administrative role on the Kubernetes cluster.
     *
     * @param adminGroupObjectIds the adminGroupObjectIds value to set.
     * @return the AadConfiguration object itself.
     */
    public AadConfiguration withAdminGroupObjectIds(List<String> adminGroupObjectIds) {
        this.adminGroupObjectIds = adminGroupObjectIds;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (adminGroupObjectIds() == null) {
            throw LOGGER
                .logExceptionAsError(
                    new IllegalArgumentException(
                        "Missing required property adminGroupObjectIds in model AadConfiguration"));
        }
    }

    private static final ClientLogger LOGGER = new ClientLogger(AadConfiguration.class);
}
