/**
 * 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 performance counter result.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("performanceCounter")
public class EventsPerformanceCounterResult extends EventsResultData {
    /**
     * The performanceCounter property.
     */
    @JsonProperty(value = "performanceCounter")
    private EventsPerformanceCounterInfo performanceCounter;

    /**
     * Get the performanceCounter value.
     *
     * @return the performanceCounter value
     */
    public EventsPerformanceCounterInfo performanceCounter() {
        return this.performanceCounter;
    }

    /**
     * Set the performanceCounter value.
     *
     * @param performanceCounter the performanceCounter value to set
     * @return the EventsPerformanceCounterResult object itself.
     */
    public EventsPerformanceCounterResult withPerformanceCounter(EventsPerformanceCounterInfo performanceCounter) {
        this.performanceCounter = performanceCounter;
        return this;
    }

}
