public static class TagDefault.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TagDefault |
build() |
TagDefault.Builder |
compartmentId(String compartmentId)
The OCID of the compartment.
|
TagDefault.Builder |
copy(TagDefault model) |
TagDefault.Builder |
id(String id)
The OCID of the tag default.
|
TagDefault.Builder |
isRequired(Boolean isRequired)
If you specify that a value is required, a value is set during resource creation (either
by the user creating the resource or another tag defualt).
|
TagDefault.Builder |
lifecycleState(TagDefault.LifecycleState lifecycleState)
The tag default’s current state.
|
TagDefault.Builder |
locks(List<ResourceLock> locks)
Locks associated with this resource.
|
TagDefault.Builder |
tagDefinitionId(String tagDefinitionId)
The OCID of the tag definition.
|
TagDefault.Builder |
tagDefinitionName(String tagDefinitionName)
The name used in the tag definition.
|
TagDefault.Builder |
tagNamespaceId(String tagNamespaceId)
The OCID of the tag namespace that contains the tag definition.
|
TagDefault.Builder |
timeCreated(Date timeCreated)
Date and time the
TagDefault object was created, in the format defined by
RFC3339. |
TagDefault.Builder |
value(String value)
The default value for the tag definition.
|
public TagDefault.Builder id(String id)
The OCID of the tag default.
id
- the value to setpublic TagDefault.Builder compartmentId(String compartmentId)
The OCID of the compartment. The tag default applies to all new resources that get created in the compartment. Resources that existed before the tag default was created are not tagged.
compartmentId
- the value to setpublic TagDefault.Builder tagNamespaceId(String tagNamespaceId)
The OCID of the tag namespace that contains the tag definition.
tagNamespaceId
- the value to setpublic TagDefault.Builder tagDefinitionId(String tagDefinitionId)
The OCID of the tag definition. The tag default will always assign a default value for this tag definition.
tagDefinitionId
- the value to setpublic TagDefault.Builder tagDefinitionName(String tagDefinitionName)
The name used in the tag definition. This field is informational in the context of the tag default.
tagDefinitionName
- the value to setpublic TagDefault.Builder value(String value)
The default value for the tag definition. This will be applied to all resources created in the compartment.
value
- the value to setpublic TagDefault.Builder timeCreated(Date timeCreated)
Date and time the TagDefault
object was created, in the format defined by
RFC3339.
Example: 2016-08-25T21:10:29.600Z
timeCreated
- the value to setpublic TagDefault.Builder lifecycleState(TagDefault.LifecycleState lifecycleState)
The tag default’s current state. After creating a TagDefault
, make sure its
lifecycleState
is ACTIVE before using it.
lifecycleState
- the value to setpublic TagDefault.Builder isRequired(Boolean isRequired)
If you specify that a value is required, a value is set during resource creation (either by the user creating the resource or another tag defualt). If no value is set, resource creation is blocked.
If the isRequired
flag is set to "true", the value is set during resource
creation. * If the isRequired
flag is set to "false", the value you enter is set
during resource creation.
Example: false
isRequired
- the value to setpublic TagDefault.Builder locks(List<ResourceLock> locks)
Locks associated with this resource.
locks
- the value to setpublic TagDefault build()
public TagDefault.Builder copy(TagDefault model)
Copyright © 2016–2024. All rights reserved.