Package com.oracle.bmc.identity.model
Class TagSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.identity.model.TagSummary.Builder
-
- Enclosing class:
- TagSummary
public static class TagSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TagSummary
build()
TagSummary.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the tag definition.TagSummary.Builder
copy(TagSummary model)
TagSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.TagSummary.Builder
description(String description)
The description you assign to the tag.TagSummary.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.TagSummary.Builder
id(String id)
The OCID of the tag definition.TagSummary.Builder
isCostTracking(Boolean isCostTracking)
Indicates whether the tag is enabled for cost tracking.TagSummary.Builder
isRetired(Boolean isRetired)
Whether the tag is retired.TagSummary.Builder
lifecycleState(Tag.LifecycleState lifecycleState)
The tag’s current state.TagSummary.Builder
name(String name)
The name assigned to the tag during creation.TagSummary.Builder
timeCreated(Date timeCreated)
Date and time the tag was created, in the format defined by RFC3339.
-
-
-
Method Detail
-
compartmentId
public TagSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the tag definition.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
id
public TagSummary.Builder id(String id)
The OCID of the tag definition.- Parameters:
id
- the value to set- Returns:
- this builder
-
name
public TagSummary.Builder name(String name)
The name assigned 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 TagSummary.Builder description(String description)
The description you assign to the tag.- Parameters:
description
- the value to set- Returns:
- this builder
-
freeformTags
public TagSummary.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 TagSummary.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
-
isRetired
public TagSummary.Builder isRetired(Boolean isRetired)
Whether the tag is retired.- Parameters:
isRetired
- the value to set- Returns:
- this builder
-
lifecycleState
public TagSummary.Builder lifecycleState(Tag.LifecycleState lifecycleState)
The tag’s current state.After creating a tag, make sure its lifecycleState is ACTIVE before using it. After retiring a tag, make sure its lifecycleState is INACTIVE before using it. If you delete a tag, you cannot delete another tag until the deleted tag’s lifecycleState changes from DELETING to DELETED.
- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
timeCreated
public TagSummary.Builder timeCreated(Date timeCreated)
Date and time the tag was created, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
isCostTracking
public TagSummary.Builder isCostTracking(Boolean isCostTracking)
Indicates whether the tag is enabled for cost tracking.- Parameters:
isCostTracking
- the value to set- Returns:
- this builder
-
build
public TagSummary build()
-
copy
public TagSummary.Builder copy(TagSummary model)
-
-