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

package com.azure.resourcemanager.communication.models;

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

/** Describes how a Domains resource is being managed. */
public final class DomainManagement extends ExpandableStringEnum<DomainManagement> {
    /** Static value AzureManaged for DomainManagement. */
    public static final DomainManagement AZURE_MANAGED = fromString("AzureManaged");

    /** Static value CustomerManaged for DomainManagement. */
    public static final DomainManagement CUSTOMER_MANAGED = fromString("CustomerManaged");

    /** Static value CustomerManagedInExchangeOnline for DomainManagement. */
    public static final DomainManagement CUSTOMER_MANAGED_IN_EXCHANGE_ONLINE =
        fromString("CustomerManagedInExchangeOnline");

    /**
     * Creates a new instance of DomainManagement value.
     *
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public DomainManagement() {
    }

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

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