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

package com.azure.resourcemanager.machinelearningservices.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.machinelearningservices.models.VirtualMachineSize;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** The List Virtual Machine size operation response. */
@Fluent
public final class VirtualMachineSizeListResultInner {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(VirtualMachineSizeListResultInner.class);

    /*
     * The list of virtual machine sizes supported by AmlCompute.
     */
    @JsonProperty(value = "amlCompute")
    private List<VirtualMachineSize> amlCompute;

    /**
     * Get the amlCompute property: The list of virtual machine sizes supported by AmlCompute.
     *
     * @return the amlCompute value.
     */
    public List<VirtualMachineSize> amlCompute() {
        return this.amlCompute;
    }

    /**
     * Set the amlCompute property: The list of virtual machine sizes supported by AmlCompute.
     *
     * @param amlCompute the amlCompute value to set.
     * @return the VirtualMachineSizeListResultInner object itself.
     */
    public VirtualMachineSizeListResultInner withAmlCompute(List<VirtualMachineSize> amlCompute) {
        this.amlCompute = amlCompute;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (amlCompute() != null) {
            amlCompute().forEach(e -> e.validate());
        }
    }
}
