ViewChargesPolicy Class

public final class ViewChargesPolicy
extends ExpandableStringEnum<ViewChargesPolicy>

The policy that controls whether users with Azure RBAC access to a subscription can view its charges.

Field Summary

Modifier and Type Field and Description
static final ViewChargesPolicy ALLOWED

Static value Allowed for ViewChargesPolicy.

static final ViewChargesPolicy NOT_ALLOWED

Static value NotAllowed for ViewChargesPolicy.

Constructor Summary

Constructor Description
ViewChargesPolicy()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ViewChargesPolicy value.

Method Summary

Modifier and Type Method and Description
static ViewChargesPolicy fromString(String name)

Creates or finds a ViewChargesPolicy from its string representation.

static Collection<ViewChargesPolicy> values()

Gets known ViewChargesPolicy values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ALLOWED

public static final ViewChargesPolicy ALLOWED

Static value Allowed for ViewChargesPolicy.

NOT_ALLOWED

public static final ViewChargesPolicy NOT_ALLOWED

Static value NotAllowed for ViewChargesPolicy.

Constructor Details

ViewChargesPolicy

@Deprecated
public ViewChargesPolicy()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ViewChargesPolicy value.

Method Details

fromString

public static ViewChargesPolicy fromString(String name)

Creates or finds a ViewChargesPolicy from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ViewChargesPolicy.

values

public static Collection values()

Gets known ViewChargesPolicy values.

Returns:

known ViewChargesPolicy values.

Applies to

Azure SDK for Java

Preview