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

package com.azure.resourcemanager.network.models;

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

/** Defines values for ApplicationGatewayCustomErrorStatusCode. */
public final class ApplicationGatewayCustomErrorStatusCode
    extends ExpandableStringEnum<ApplicationGatewayCustomErrorStatusCode> {
    /** Static value HttpStatus403 for ApplicationGatewayCustomErrorStatusCode. */
    public static final ApplicationGatewayCustomErrorStatusCode HTTP_STATUS403 = fromString("HttpStatus403");

    /** Static value HttpStatus502 for ApplicationGatewayCustomErrorStatusCode. */
    public static final ApplicationGatewayCustomErrorStatusCode HTTP_STATUS502 = fromString("HttpStatus502");

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

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