Package com.oracle.bmc.cloudbridge.model
Class AssetSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudbridge.model.AssetSummary.Builder
-
- Enclosing class:
- AssetSummary
public static class AssetSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
displayName
public AssetSummary.Builder displayName(String displayName)
Asset display name.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
inventoryId
public AssetSummary.Builder inventoryId(String inventoryId)
Inventory ID that the asset belongs to.- Parameters:
inventoryId
- the value to set- Returns:
- this builder
-
id
public AssetSummary.Builder id(String id)
Asset OCID that is immutable on creation.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public AssetSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that the asset belongs to.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
sourceKey
public AssetSummary.Builder sourceKey(String sourceKey)
The source key to which the asset belongs.- Parameters:
sourceKey
- the value to set- Returns:
- this builder
-
externalAssetKey
public AssetSummary.Builder externalAssetKey(String externalAssetKey)
The key of the asset from the external environment.- Parameters:
externalAssetKey
- the value to set- Returns:
- this builder
-
assetType
public AssetSummary.Builder assetType(AssetType assetType)
The type of asset.- Parameters:
assetType
- the value to set- Returns:
- this builder
-
timeCreated
public AssetSummary.Builder timeCreated(Date timeCreated)
The time when the asset was created.An RFC3339 formatted datetime string.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public AssetSummary.Builder timeUpdated(Date timeUpdated)
The time when the asset was updated.An RFC3339 formatted datetime string.
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
assetSourceIds
public AssetSummary.Builder assetSourceIds(List<String> assetSourceIds)
List of asset source OCID.- Parameters:
assetSourceIds
- the value to set- Returns:
- this builder
-
lifecycleState
public AssetSummary.Builder lifecycleState(Asset.LifecycleState lifecycleState)
The current state of the asset.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
freeformTags
public 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”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public 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”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public 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}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public AssetSummary build()
-
copy
public AssetSummary.Builder copy(AssetSummary model)
-
-