Enum TagValueType
- java.lang.Object
-
- java.lang.Enum<TagValueType>
-
- com.oracle.bmc.optimizer.model.TagValueType
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<TagValueType>
@Generated(value="OracleSDKGenerator", comments="API Version: 20200606") public enum TagValueType extends Enum<TagValueType> implements BmcEnum
Specifies which tag value types in the tagValues field result in overrides of the recommendation criteria.Allowed values are ANY and VALUE.
When the tagValueType field value is ANY, the tagValues field should be empty, which enforces overrides to the recommendation for resources with any tag values attached to them. When the tagValueType field value is VALUE, the tagValues field must include a specific value or list of values. Overrides to the recommendation criteria only occur for resources that match the values in the tagKey and the tagValues fields.
For example, if the tagKey value is B, the tagValueType value is ANY, and the tagValues field is empty, overrides to the recommendation criteria occur for any resources that have the tag key B. If the tagKey value is B, the tagValueType value is VALUE, and the tagValues value is s1, overrides to the recommendation criteria only occur for resources that have the tag key B with the associated tag value s1.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Any
UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.Value
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TagValueType
create(String key)
String
getValue()
static TagValueType
valueOf(String name)
Returns the enum constant of this type with the specified name.static TagValueType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Value
public static final TagValueType Value
-
Any
public static final TagValueType Any
-
UnknownEnumValue
public static final TagValueType UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
-
-
Method Detail
-
values
public static TagValueType[] 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 (TagValueType c : TagValueType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TagValueType 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
-
create
public static TagValueType create(String key)
-
-