/**
 * 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;

/**
 * The page view information.
 */
public class EventsPageViewInfo {
    /**
     * The name of the page.
     */
    @JsonProperty(value = "name")
    private String name;

    /**
     * The URL of the page.
     */
    @JsonProperty(value = "url")
    private String url;

    /**
     * The duration of the page view.
     */
    @JsonProperty(value = "duration")
    private String duration;

    /**
     * The performance bucket of the page view.
     */
    @JsonProperty(value = "performanceBucket")
    private String performanceBucket;

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

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

    /**
     * Get the URL of the page.
     *
     * @return the url value
     */
    public String url() {
        return this.url;
    }

    /**
     * Set the URL of the page.
     *
     * @param url the url value to set
     * @return the EventsPageViewInfo object itself.
     */
    public EventsPageViewInfo withUrl(String url) {
        this.url = url;
        return this;
    }

    /**
     * Get the duration of the page view.
     *
     * @return the duration value
     */
    public String duration() {
        return this.duration;
    }

    /**
     * Set the duration of the page view.
     *
     * @param duration the duration value to set
     * @return the EventsPageViewInfo object itself.
     */
    public EventsPageViewInfo withDuration(String duration) {
        this.duration = duration;
        return this;
    }

    /**
     * Get the performance bucket of the page view.
     *
     * @return the performanceBucket value
     */
    public String performanceBucket() {
        return this.performanceBucket;
    }

    /**
     * Set the performance bucket of the page view.
     *
     * @param performanceBucket the performanceBucket value to set
     * @return the EventsPageViewInfo object itself.
     */
    public EventsPageViewInfo withPerformanceBucket(String performanceBucket) {
        this.performanceBucket = performanceBucket;
        return this;
    }

}
