@Generated(value="OracleSDKGenerator", comments="API Version: 20200606") public final class TargetTag extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
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
Note: Objects should always be created or deserialized using the 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 TargetTag.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
TargetTag.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
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) |
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() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@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.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.