Enum PolicyScopeContract
- java.lang.Object
-
- java.lang.Enum<PolicyScopeContract>
-
- com.azure.resourcemanager.apimanagement.models.PolicyScopeContract
-
- All Implemented Interfaces:
Serializable
,Comparable<PolicyScopeContract>
public enum PolicyScopeContract extends Enum<PolicyScopeContract>
Defines values for PolicyScopeContract.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolicyScopeContract
fromString(String value)
Parses a serialized value to a PolicyScopeContract instance.String
toString()
static PolicyScopeContract
valueOf(String name)
Returns the enum constant of this type with the specified name.static PolicyScopeContract[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TENANT
public static final PolicyScopeContract TENANT
Enum value Tenant.
-
PRODUCT
public static final PolicyScopeContract PRODUCT
Enum value Product.
-
API
public static final PolicyScopeContract API
Enum value Api.
-
OPERATION
public static final PolicyScopeContract OPERATION
Enum value Operation.
-
ALL
public static final PolicyScopeContract ALL
Enum value All.
-
-
Method Detail
-
values
public static PolicyScopeContract[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PolicyScopeContract c : PolicyScopeContract.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PolicyScopeContract valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
public static PolicyScopeContract fromString(String value)
Parses a serialized value to a PolicyScopeContract instance.- Parameters:
value
- the serialized value to parse.- Returns:
- the parsed PolicyScopeContract object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toString
in classEnum<PolicyScopeContract>
-
-