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

package com.azure.resourcemanager.edgeorder.models;

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

/** Defines values for AddressType. */
public final class AddressType extends ExpandableStringEnum<AddressType> {
    /** Static value None for AddressType. */
    public static final AddressType NONE = fromString("None");

    /** Static value Residential for AddressType. */
    public static final AddressType RESIDENTIAL = fromString("Residential");

    /** Static value Commercial for AddressType. */
    public static final AddressType COMMERCIAL = fromString("Commercial");

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

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