Class TargetTag
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.optimizer.model.TargetTag
-
@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 theTargetTag.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 theTargetTag.Builder
, which maintain a set of all explicitly set fields calledTargetTag.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TargetTag.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
TargetTag
@Deprecated @ConstructorProperties({"tagNamespaceName","tagDefinitionName","tagValueType","tagValues"}) public TargetTag(String tagNamespaceName, String tagDefinitionName, TagValueType tagValueType, List<String> tagValues)
Deprecated.
-
-
Method Detail
-
builder
public static TargetTag.Builder builder()
Create a new builder.
-
toBuilder
public TargetTag.Builder toBuilder()
-
getTagNamespaceName
public String getTagNamespaceName()
The name of the tag namespace.- Returns:
- the value
-
getTagDefinitionName
public String getTagDefinitionName()
The name you use to refer to the tag, also known as the tag key.- Returns:
- the value
-
getTagValueType
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.
- Returns:
- the value
-
getTagValues
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.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-