Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Tag |
build() |
Tag.Builder |
compartmentId(String compartmentId)
The OCID of the compartment that contains the tag definition.
|
Tag.Builder |
copy(Tag model) |
Tag.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
Tag.Builder |
description(String description)
The description you assign to the tag.
|
Tag.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
Tag.Builder |
id(String id)
The OCID of the tag definition.
|
Tag.Builder |
isCostTracking(Boolean isCostTracking)
Indicates whether the tag is enabled for cost tracking.
|
Tag.Builder |
isRetired(Boolean isRetired)
Indicates whether the tag is retired.
|
Tag.Builder |
lifecycleState(Tag.LifecycleState lifecycleState)
The tag’s current state.
|
Tag.Builder |
name(String name)
The name assigned to the tag during creation.
|
Tag.Builder |
tagNamespaceId(String tagNamespaceId)
The OCID of the namespace that contains the tag definition.
|
Tag.Builder |
tagNamespaceName(String tagNamespaceName)
The name of the tag namespace that contains the tag definition.
|
Tag.Builder |
timeCreated(Date timeCreated)
Date and time the tag was created, in the format defined by RFC3339.
|
Tag.Builder |
validator(BaseTagDefinitionValidator validator) |
public Tag.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the tag definition.
compartmentId
- the value to setpublic Tag.Builder tagNamespaceId(String tagNamespaceId)
The OCID of the namespace that contains the tag definition.
tagNamespaceId
- the value to setpublic Tag.Builder tagNamespaceName(String tagNamespaceName)
The name of the tag namespace that contains the tag definition.
tagNamespaceName
- the value to setpublic Tag.Builder id(String id)
The OCID of the tag definition.
id
- the value to setpublic Tag.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 Tag.Builder description(String description)
The description you assign to the tag.
description
- the value to setpublic Tag.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 Tag.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 Tag.Builder isRetired(Boolean isRetired)
Indicates whether the tag is retired. See Retiring Key Definitions and Namespace Definitions.
isRetired
- the value to setpublic Tag.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 Tag.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 Tag.Builder isCostTracking(Boolean isCostTracking)
Indicates whether the tag is enabled for cost tracking.
isCostTracking
- the value to setpublic Tag.Builder validator(BaseTagDefinitionValidator validator)
public Tag build()
public Tag.Builder copy(Tag model)
Copyright © 2016–2024. All rights reserved.