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

package com.azure.resourcemanager.deviceprovisioningservices.models;

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

/** Defines values for AccessRightsDescription. */
public final class AccessRightsDescription extends ExpandableStringEnum<AccessRightsDescription> {
    /** Static value ServiceConfig for AccessRightsDescription. */
    public static final AccessRightsDescription SERVICE_CONFIG = fromString("ServiceConfig");

    /** Static value EnrollmentRead for AccessRightsDescription. */
    public static final AccessRightsDescription ENROLLMENT_READ = fromString("EnrollmentRead");

    /** Static value EnrollmentWrite for AccessRightsDescription. */
    public static final AccessRightsDescription ENROLLMENT_WRITE = fromString("EnrollmentWrite");

    /** Static value DeviceConnect for AccessRightsDescription. */
    public static final AccessRightsDescription DEVICE_CONNECT = fromString("DeviceConnect");

    /** Static value RegistrationStatusRead for AccessRightsDescription. */
    public static final AccessRightsDescription REGISTRATION_STATUS_READ = fromString("RegistrationStatusRead");

    /** Static value RegistrationStatusWrite for AccessRightsDescription. */
    public static final AccessRightsDescription REGISTRATION_STATUS_WRITE = fromString("RegistrationStatusWrite");

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

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