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

/**
 * A custom metric result.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("customMetric")
public class EventsCustomMetricResult extends EventsResultData {
    /**
     * The customMetric property.
     */
    @JsonProperty(value = "customMetric")
    private EventsCustomMetricInfo customMetric;

    /**
     * Get the customMetric value.
     *
     * @return the customMetric value
     */
    public EventsCustomMetricInfo customMetric() {
        return this.customMetric;
    }

    /**
     * Set the customMetric value.
     *
     * @param customMetric the customMetric value to set
     * @return the EventsCustomMetricResult object itself.
     */
    public EventsCustomMetricResult withCustomMetric(EventsCustomMetricInfo customMetric) {
        this.customMetric = customMetric;
        return this;
    }

}
