/**
 * 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.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
 * Defines values for MetricsSegment.
 */
public final class MetricsSegment extends ExpandableStringEnum<MetricsSegment> {
    /** Static value applicationBuild for MetricsSegment. */
    public static final MetricsSegment APPLICATION_BUILD = fromString("applicationBuild");

    /** Static value applicationVersion for MetricsSegment. */
    public static final MetricsSegment APPLICATION_VERSION = fromString("applicationVersion");

    /** Static value authenticatedOrAnonymousTraffic for MetricsSegment. */
    public static final MetricsSegment AUTHENTICATED_OR_ANONYMOUS_TRAFFIC = fromString("authenticatedOrAnonymousTraffic");

    /** Static value browser for MetricsSegment. */
    public static final MetricsSegment BROWSER = fromString("browser");

    /** Static value browserVersion for MetricsSegment. */
    public static final MetricsSegment BROWSER_VERSION = fromString("browserVersion");

    /** Static value city for MetricsSegment. */
    public static final MetricsSegment CITY = fromString("city");

    /** Static value cloudRoleName for MetricsSegment. */
    public static final MetricsSegment CLOUD_ROLE_NAME = fromString("cloudRoleName");

    /** Static value cloudServiceName for MetricsSegment. */
    public static final MetricsSegment CLOUD_SERVICE_NAME = fromString("cloudServiceName");

    /** Static value continent for MetricsSegment. */
    public static final MetricsSegment CONTINENT = fromString("continent");

    /** Static value countryOrRegion for MetricsSegment. */
    public static final MetricsSegment COUNTRY_OR_REGION = fromString("countryOrRegion");

    /** Static value deploymentId for MetricsSegment. */
    public static final MetricsSegment DEPLOYMENT_ID = fromString("deploymentId");

    /** Static value deploymentUnit for MetricsSegment. */
    public static final MetricsSegment DEPLOYMENT_UNIT = fromString("deploymentUnit");

    /** Static value deviceType for MetricsSegment. */
    public static final MetricsSegment DEVICE_TYPE = fromString("deviceType");

    /** Static value environment for MetricsSegment. */
    public static final MetricsSegment ENVIRONMENT = fromString("environment");

    /** Static value hostingLocation for MetricsSegment. */
    public static final MetricsSegment HOSTING_LOCATION = fromString("hostingLocation");

    /** Static value instanceName for MetricsSegment. */
    public static final MetricsSegment INSTANCE_NAME = fromString("instanceName");

    /**
     * Creates or finds a MetricsSegment from its string representation.
     * @param name a name to look for
     * @return the corresponding MetricsSegment
     */
    @JsonCreator
    public static MetricsSegment fromString(String name) {
        return fromString(name, MetricsSegment.class);
    }

    /**
     * @return known MetricsSegment values
     */
    public static Collection<MetricsSegment> values() {
        return values(MetricsSegment.class);
    }
}
