/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.batch.protocol.models;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * The vm extension instance view.
 */
public class VMExtensionInstanceView {
    /**
     * The name of the vm extension instance view.
     */
    @JsonProperty(value = "name")
    private String name;

    /**
     * The resource status information.
     */
    @JsonProperty(value = "statuses")
    private List<InstanceViewStatus> statuses;

    /**
     * The resource status information.
     */
    @JsonProperty(value = "subStatuses")
    private List<InstanceViewStatus> subStatuses;

    /**
     * Get the name value.
     *
     * @return the name value
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name value.
     *
     * @param name the name value to set
     * @return the VMExtensionInstanceView object itself.
     */
    public VMExtensionInstanceView withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the resource status information.
     *
     * @return the statuses value
     */
    public List<InstanceViewStatus> statuses() {
        return this.statuses;
    }

    /**
     * Set the resource status information.
     *
     * @param statuses the statuses value to set
     * @return the VMExtensionInstanceView object itself.
     */
    public VMExtensionInstanceView withStatuses(List<InstanceViewStatus> statuses) {
        this.statuses = statuses;
        return this;
    }

    /**
     * Get the resource status information.
     *
     * @return the subStatuses value
     */
    public List<InstanceViewStatus> subStatuses() {
        return this.subStatuses;
    }

    /**
     * Set the resource status information.
     *
     * @param subStatuses the subStatuses value to set
     * @return the VMExtensionInstanceView object itself.
     */
    public VMExtensionInstanceView withSubStatuses(List<InstanceViewStatus> subStatuses) {
        this.subStatuses = subStatuses;
        return this;
    }

}
