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.ExplicitlySetBmcModelA 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 classTargetTag.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TargetTag.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetTagDefinitionName()The name you use to refer to the tag, also known as the tag key.StringgetTagNamespaceName()The name of the tag namespace.List<String>getTagValues()The list of tag values.TagValueTypegetTagValueType()Specifies which tag value types in the tagValues field result in overrides of the recommendation criteria.inthashCode()TargetTag.BuildertoBuilder()StringtoString()StringtoString(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:
toStringin 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:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-