public static class TagSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public TagSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the tag definition.
compartmentId
- the value to setpublic TagSummary.Builder id(String id)
The OCID of the tag definition.
id
- the value to setpublic 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.
name
- the value to setpublic TagSummary.Builder description(String description)
The description you assign to the tag.
description
- the value to setpublic 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"}
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic TagSummary.Builder isRetired(Boolean isRetired)
Whether the tag is retired. See Retiring Key Definitions and Namespace Definitions.
isRetired
- the value to setpublic 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.
lifecycleState
- the value to setpublic 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
timeCreated
- the value to setpublic TagSummary.Builder isCostTracking(Boolean isCostTracking)
Indicates whether the tag is enabled for cost tracking.
isCostTracking
- the value to setpublic TagSummary build()
public TagSummary.Builder copy(TagSummary model)
Copyright © 2016–2024. All rights reserved.