@Generated(value="OracleSDKGenerator", comments="API Version: 20200606") public final class TargetTag extends Object
A tag key definition used in the current profile override, including the tag namespace, tag key, tag value type, and tag values. Only defined tags are supported. For more information about tagging, see Tagging Overview
TargetTag.Builder
. This model distinguishes fields
that are null
because they are unset from fields that are explicitly set to null
. This is done in
the setter methods of the TargetTag.Builder
, which maintain a set of all explicitly set fields called
__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
__explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).Modifier and Type | Class and Description |
---|---|
static class |
TargetTag.Builder |
Constructor and Description |
---|
TargetTag(String tagNamespaceName,
String tagDefinitionName,
TagValueType tagValueType,
List<String> tagValues)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static TargetTag.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
String |
getTagDefinitionName()
The name you use to refer to the tag, also known as the tag key.
|
String |
getTagNamespaceName()
The name of the tag namespace.
|
List<String> |
getTagValues()
The list of tag values.
|
TagValueType |
getTagValueType()
Specifies which tag value types in the
tagValues field result in overrides of the recommendation criteria. |
int |
hashCode() |
TargetTag.Builder |
toBuilder() |
String |
toString() |
@Deprecated @ConstructorProperties(value={"tagNamespaceName","tagDefinitionName","tagValueType","tagValues"}) public TargetTag(String tagNamespaceName, String tagDefinitionName, TagValueType tagValueType, List<String> tagValues)
public static TargetTag.Builder builder()
Create a new builder.
public TargetTag.Builder toBuilder()
public String getTagNamespaceName()
The name of the tag namespace.
public String getTagDefinitionName()
The name you use to refer to the tag, also known as the tag key.
public TagValueType getTagValueType()
Specifies which tag value types in the tagValues
field result in overrides of the recommendation criteria.
When the value for this field 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 value for this 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 tagValues
fields.
public List<String> getTagValues()
The list of tag values. The tag value is the value that the user applying the tag adds to the tag key.
Copyright © 2016–2022. All rights reserved.