/**
 * 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.applicationinsights.query.models;

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

/**
 * An events query result.
 */
public class EventsResults {
    /**
     * OData context metadata endpoint for this response.
     */
    @JsonProperty(value = "@odata\\.context")
    private String odatacontext;

    /**
     * OData messages for this response.
     */
    @JsonProperty(value = "@ai\\.messages")
    private List<ErrorInfo> aimessages;

    /**
     * Contents of the events query result.
     */
    @JsonProperty(value = "value")
    private List<EventsResultData> value;

    /**
     * Get oData context metadata endpoint for this response.
     *
     * @return the odatacontext value
     */
    public String odatacontext() {
        return this.odatacontext;
    }

    /**
     * Set oData context metadata endpoint for this response.
     *
     * @param odatacontext the odatacontext value to set
     * @return the EventsResults object itself.
     */
    public EventsResults withOdatacontext(String odatacontext) {
        this.odatacontext = odatacontext;
        return this;
    }

    /**
     * Get oData messages for this response.
     *
     * @return the aimessages value
     */
    public List<ErrorInfo> aimessages() {
        return this.aimessages;
    }

    /**
     * Set oData messages for this response.
     *
     * @param aimessages the aimessages value to set
     * @return the EventsResults object itself.
     */
    public EventsResults withAimessages(List<ErrorInfo> aimessages) {
        this.aimessages = aimessages;
        return this;
    }

    /**
     * Get contents of the events query result.
     *
     * @return the value value
     */
    public List<EventsResultData> value() {
        return this.value;
    }

    /**
     * Set contents of the events query result.
     *
     * @param value the value value to set
     * @return the EventsResults object itself.
     */
    public EventsResults withValue(List<EventsResultData> value) {
        this.value = value;
        return this;
    }

}
