public static class AssetSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AssetSummary.Builder |
assetSourceIds(List<String> assetSourceIds)
List of asset source OCID.
|
AssetSummary.Builder |
assetType(AssetType assetType)
The type of asset.
|
AssetSummary |
build() |
AssetSummary.Builder |
compartmentId(String compartmentId)
The OCID of the compartment that the asset belongs to.
|
AssetSummary.Builder |
copy(AssetSummary model) |
AssetSummary.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
The defined tags associated with this resource, if any.
|
AssetSummary.Builder |
displayName(String displayName)
Asset display name.
|
AssetSummary.Builder |
externalAssetKey(String externalAssetKey)
The key of the asset from the external environment.
|
AssetSummary.Builder |
freeformTags(Map<String,String> freeformTags)
The freeform tags associated with this resource, if any.
|
AssetSummary.Builder |
id(String id)
Asset OCID that is immutable on creation.
|
AssetSummary.Builder |
inventoryId(String inventoryId)
Inventory ID that the asset belongs to.
|
AssetSummary.Builder |
lifecycleState(Asset.LifecycleState lifecycleState)
The current state of the asset.
|
AssetSummary.Builder |
sourceKey(String sourceKey)
The source key to which the asset belongs.
|
AssetSummary.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
The system tags associated with this resource, if any.
|
AssetSummary.Builder |
timeCreated(Date timeCreated)
The time when the asset was created.
|
AssetSummary.Builder |
timeUpdated(Date timeUpdated)
The time when the asset was updated.
|
public AssetSummary.Builder displayName(String displayName)
Asset display name.
displayName
- the value to setpublic AssetSummary.Builder inventoryId(String inventoryId)
Inventory ID that the asset belongs to.
inventoryId
- the value to setpublic AssetSummary.Builder id(String id)
Asset OCID that is immutable on creation.
id
- the value to setpublic AssetSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that the asset belongs to.
compartmentId
- the value to setpublic AssetSummary.Builder sourceKey(String sourceKey)
The source key to which the asset belongs.
sourceKey
- the value to setpublic AssetSummary.Builder externalAssetKey(String externalAssetKey)
The key of the asset from the external environment.
externalAssetKey
- the value to setpublic AssetSummary.Builder assetType(AssetType assetType)
The type of asset.
assetType
- the value to setpublic AssetSummary.Builder timeCreated(Date timeCreated)
The time when the asset was created. An RFC3339 formatted datetime string.
timeCreated
- the value to setpublic AssetSummary.Builder timeUpdated(Date timeUpdated)
The time when the asset was updated. An RFC3339 formatted datetime string.
timeUpdated
- the value to setpublic AssetSummary.Builder assetSourceIds(List<String> assetSourceIds)
List of asset source OCID.
assetSourceIds
- the value to setpublic AssetSummary.Builder lifecycleState(Asset.LifecycleState lifecycleState)
The current state of the asset.
lifecycleState
- the value to setpublic AssetSummary.Builder freeformTags(Map<String,String> freeformTags)
The freeform tags associated with this resource, if any. Each tag is a simple key-value
pair with no predefined name, type, or namespace/scope. For more information, see
Resource
Tags.
Example: {"Department": "Finance"}
freeformTags
- the value to setpublic AssetSummary.Builder definedTags(Map<String,Map<String,Object>> definedTags)
The defined tags associated with this resource, if any. Each key is predefined and scoped
to namespaces. For more information, see Resource
Tags.
Example: {"Operations": {"CostCenter": "42"}}
definedTags
- the value to setpublic AssetSummary.Builder systemTags(Map<String,Map<String,Object>> systemTags)
The system tags associated with this resource, if any. The system tags are set by Oracle
cloud infrastructure services. Each key is predefined and scoped to namespaces. For more
information, see Resource
Tags.
Example: {orcl-cloud: {free-tier-retain: true}}
systemTags
- the value to setpublic AssetSummary build()
public AssetSummary.Builder copy(AssetSummary model)
Copyright © 2016–2024. All rights reserved.