// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.apimanagement.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for HostnameType. */
public final class HostnameType extends ExpandableStringEnum<HostnameType> {
    /** Static value Proxy for HostnameType. */
    public static final HostnameType PROXY = fromString("Proxy");

    /** Static value Portal for HostnameType. */
    public static final HostnameType PORTAL = fromString("Portal");

    /** Static value Management for HostnameType. */
    public static final HostnameType MANAGEMENT = fromString("Management");

    /** Static value Scm for HostnameType. */
    public static final HostnameType SCM = fromString("Scm");

    /** Static value DeveloperPortal for HostnameType. */
    public static final HostnameType DEVELOPER_PORTAL = fromString("DeveloperPortal");

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

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