Package com.oracle.bmc.identity.model
Class CreateTagDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.identity.model.CreateTagDetails.Builder
-
- Enclosing class:
- CreateTagDetails
public static class CreateTagDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateTagDetails
build()
CreateTagDetails.Builder
copy(CreateTagDetails model)
CreateTagDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.CreateTagDetails.Builder
description(String description)
The description you assign to the tag during creation.CreateTagDetails.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.CreateTagDetails.Builder
isCostTracking(Boolean isCostTracking)
Indicates whether the tag is enabled for cost tracking.CreateTagDetails.Builder
name(String name)
The name you assign to the tag during creation.CreateTagDetails.Builder
validator(BaseTagDefinitionValidator validator)
-
-
-
Method Detail
-
name
public CreateTagDetails.Builder name(String name)
The name you assign to the tag during creation.This is the tag key definition. The name must be unique within the tag namespace and cannot be changed.
- Parameters:
name
- the value to set- Returns:
- this builder
-
description
public CreateTagDetails.Builder description(String description)
The description you assign to the tag during creation.- Parameters:
description
- the value to set- Returns:
- this builder
-
freeformTags
public CreateTagDetails.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public CreateTagDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
isCostTracking
public CreateTagDetails.Builder isCostTracking(Boolean isCostTracking)
Indicates whether the tag is enabled for cost tracking.- Parameters:
isCostTracking
- the value to set- Returns:
- this builder
-
validator
public CreateTagDetails.Builder validator(BaseTagDefinitionValidator validator)
-
build
public CreateTagDetails build()
-
copy
public CreateTagDetails.Builder copy(CreateTagDetails model)
-
-