com.azure.resourcemanager.confidentialledger.models.LedgerRoleName Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-confidentialledger Show documentation
Show all versions of azure-resourcemanager-confidentialledger Show documentation
This package contains Microsoft Azure SDK for ConfidentialLedger Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft Azure Confidential Compute Ledger Control Plane REST API version 2020-12-01-preview. Package tag package-preview-2023-06.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.confidentialledger.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/** LedgerRole associated with the Security Principal of Ledger. */
public final class LedgerRoleName extends ExpandableStringEnum {
/** Static value Reader for LedgerRoleName. */
public static final LedgerRoleName READER = fromString("Reader");
/** Static value Contributor for LedgerRoleName. */
public static final LedgerRoleName CONTRIBUTOR = fromString("Contributor");
/** Static value Administrator for LedgerRoleName. */
public static final LedgerRoleName ADMINISTRATOR = fromString("Administrator");
/**
* Creates a new instance of LedgerRoleName value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public LedgerRoleName() {
}
/**
* Creates or finds a LedgerRoleName from its string representation.
*
* @param name a name to look for.
* @return the corresponding LedgerRoleName.
*/
@JsonCreator
public static LedgerRoleName fromString(String name) {
return fromString(name, LedgerRoleName.class);
}
/**
* Gets known LedgerRoleName values.
*
* @return known LedgerRoleName values.
*/
public static Collection values() {
return values(LedgerRoleName.class);
}
}