public static class CreateTagDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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) |
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.
name
- the value to setpublic CreateTagDetails.Builder description(String description)
The description you assign to the tag during creation.
description
- the value to setpublic 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"}
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic CreateTagDetails.Builder isCostTracking(Boolean isCostTracking)
Indicates whether the tag is enabled for cost tracking.
isCostTracking
- the value to setpublic CreateTagDetails.Builder validator(BaseTagDefinitionValidator validator)
public CreateTagDetails build()
public CreateTagDetails.Builder copy(CreateTagDetails model)
Copyright © 2016–2024. All rights reserved.