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

package com.azure.resourcemanager.compute.models;

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Instance view statuses summary for virtual machines of a virtual machine scale set. */
@Immutable
public final class VirtualMachineScaleSetInstanceViewStatusesSummary {
    /*
     * The extensions information.
     */
    @JsonProperty(value = "statusesSummary", access = JsonProperty.Access.WRITE_ONLY)
    private List<VirtualMachineStatusCodeCount> statusesSummary;

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

    /**
     * Get the statusesSummary property: The extensions information.
     *
     * @return the statusesSummary value.
     */
    public List<VirtualMachineStatusCodeCount> statusesSummary() {
        return this.statusesSummary;
    }

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