/**
 * 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 com.fasterxml.jackson.annotation.JsonProperty;

/**
 * A metric request.
 */
public class MetricsPostBodySchema {
    /**
     * An identifier for this query.  Must be unique within the post body of
     * the request.  This identifier will be the 'id' property of the response
     * object representing this query.
     */
    @JsonProperty(value = "id", required = true)
    private String id;

    /**
     * The parameters for a single metrics query.
     */
    @JsonProperty(value = "parameters", required = true)
    private MetricsPostBodySchemaParameters parameters;

    /**
     * Get an identifier for this query.  Must be unique within the post body of the request.  This identifier will be the 'id' property of the response object representing this query.
     *
     * @return the id value
     */
    public String id() {
        return this.id;
    }

    /**
     * Set an identifier for this query.  Must be unique within the post body of the request.  This identifier will be the 'id' property of the response object representing this query.
     *
     * @param id the id value to set
     * @return the MetricsPostBodySchema object itself.
     */
    public MetricsPostBodySchema withId(String id) {
        this.id = id;
        return this;
    }

    /**
     * Get the parameters for a single metrics query.
     *
     * @return the parameters value
     */
    public MetricsPostBodySchemaParameters parameters() {
        return this.parameters;
    }

    /**
     * Set the parameters for a single metrics query.
     *
     * @param parameters the parameters value to set
     * @return the MetricsPostBodySchema object itself.
     */
    public MetricsPostBodySchema withParameters(MetricsPostBodySchemaParameters parameters) {
        this.parameters = parameters;
        return this;
    }

}
