Package com.oracle.bmc.optimizer.model
Class TargetTag.Builder
- java.lang.Object
-
- com.oracle.bmc.optimizer.model.TargetTag.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TargetTag
build()
TargetTag.Builder
copy(TargetTag model)
TargetTag.Builder
tagDefinitionName(String tagDefinitionName)
The name you use to refer to the tag, also known as the tag key.TargetTag.Builder
tagNamespaceName(String tagNamespaceName)
The name of the tag namespace.TargetTag.Builder
tagValues(List<String> tagValues)
The list of tag values.TargetTag.Builder
tagValueType(TagValueType tagValueType)
Specifies which tag value types in the tagValues field result in overrides of the recommendation criteria.
-
-
-
Method Detail
-
tagNamespaceName
public TargetTag.Builder tagNamespaceName(String tagNamespaceName)
The name of the tag namespace.- Parameters:
tagNamespaceName
- the value to set- Returns:
- this builder
-
tagDefinitionName
public TargetTag.Builder tagDefinitionName(String tagDefinitionName)
The name you use to refer to the tag, also known as the tag key.- Parameters:
tagDefinitionName
- the value to set- Returns:
- this builder
-
tagValueType
public TargetTag.Builder tagValueType(TagValueType tagValueType)
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.
- Parameters:
tagValueType
- the value to set- Returns:
- this builder
-
tagValues
public TargetTag.Builder tagValues(List<String> tagValues)
The list of tag values.The tag value is the value that the user applying the tag adds to the tag key.
- Parameters:
tagValues
- the value to set- Returns:
- this builder
-
build
public TargetTag build()
-
copy
public TargetTag.Builder copy(TargetTag model)
-
-