Package com.oracle.bmc.optimizer.model
Class HistorySummary.Builder
- java.lang.Object
-
- com.oracle.bmc.optimizer.model.HistorySummary.Builder
-
- Enclosing class:
- HistorySummary
public static class HistorySummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HistorySummary.Builderaction(Action action)HistorySummarybuild()HistorySummary.BuildercategoryId(String categoryId)The unique OCID associated with the category.HistorySummary.BuildercompartmentId(String compartmentId)The OCID of the compartment.HistorySummary.BuildercompartmentName(String compartmentName)The name assigned to the compartment.HistorySummary.Buildercopy(HistorySummary model)HistorySummary.BuilderestimatedCostSaving(Double estimatedCostSaving)The estimated cost savings, in dollars, for the resource action.HistorySummary.BuilderextendedMetadata(Map<String,Object> extendedMetadata)Additional metadata key/value pairs that you provide.HistorySummary.Builderid(String id)The unique OCID associated with the recommendation history.HistorySummary.BuilderlifecycleState(LifecycleState lifecycleState)The recommendation history’s current state.HistorySummary.Buildermetadata(Map<String,String> metadata)Custom metadata key/value pairs for the resource action.HistorySummary.Buildername(String name)The name assigned to the resource.HistorySummary.BuilderrecommendationId(String recommendationId)The unique OCID associated with the recommendation.HistorySummary.BuilderrecommendationName(String recommendationName)The name assigned to the recommendation.HistorySummary.BuilderresourceActionId(String resourceActionId)The unique OCID associated with the resource action.HistorySummary.BuilderresourceId(String resourceId)The unique OCID associated with the resource.HistorySummary.BuilderresourceType(String resourceType)The kind of resource.HistorySummary.Builderstatus(Status status)The current status of the resource action.HistorySummary.BuildertimeCreated(Date timeCreated)The date and time the recommendation history was created, in the format defined by RFC3339.
-
-
-
Method Detail
-
id
public HistorySummary.Builder id(String id)
The unique OCID associated with the recommendation history.- Parameters:
id- the value to set- Returns:
- this builder
-
name
public HistorySummary.Builder name(String name)
The name assigned to the resource.- Parameters:
name- the value to set- Returns:
- this builder
-
resourceType
public HistorySummary.Builder resourceType(String resourceType)
The kind of resource.- Parameters:
resourceType- the value to set- Returns:
- this builder
-
categoryId
public HistorySummary.Builder categoryId(String categoryId)
The unique OCID associated with the category.- Parameters:
categoryId- the value to set- Returns:
- this builder
-
recommendationId
public HistorySummary.Builder recommendationId(String recommendationId)
The unique OCID associated with the recommendation.- Parameters:
recommendationId- the value to set- Returns:
- this builder
-
recommendationName
public HistorySummary.Builder recommendationName(String recommendationName)
The name assigned to the recommendation.- Parameters:
recommendationName- the value to set- Returns:
- this builder
-
resourceId
public HistorySummary.Builder resourceId(String resourceId)
The unique OCID associated with the resource.- Parameters:
resourceId- the value to set- Returns:
- this builder
-
resourceActionId
public HistorySummary.Builder resourceActionId(String resourceActionId)
The unique OCID associated with the resource action.- Parameters:
resourceActionId- the value to set- Returns:
- this builder
-
action
public HistorySummary.Builder action(Action action)
-
compartmentId
public HistorySummary.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
compartmentName
public HistorySummary.Builder compartmentName(String compartmentName)
The name assigned to the compartment.- Parameters:
compartmentName- the value to set- Returns:
- this builder
-
lifecycleState
public HistorySummary.Builder lifecycleState(LifecycleState lifecycleState)
The recommendation history’s current state.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
estimatedCostSaving
public HistorySummary.Builder estimatedCostSaving(Double estimatedCostSaving)
The estimated cost savings, in dollars, for the resource action.- Parameters:
estimatedCostSaving- the value to set- Returns:
- this builder
-
status
public HistorySummary.Builder status(Status status)
The current status of the resource action.- Parameters:
status- the value to set- Returns:
- this builder
-
metadata
public HistorySummary.Builder metadata(Map<String,String> metadata)
Custom metadata key/value pairs for the resource action.*Metadata Example**
"metadata" : { "cpuRecommendedShape": "VM.Standard1.1", "computeMemoryUtilization": "26.05734124418388", "currentShape": "VM.Standard1.2", "instanceRecommendedShape": "VM.Standard1.1", "computeCpuUtilization": "7.930035319720132", "memoryRecommendedShape": "None" }
- Parameters:
metadata- the value to set- Returns:
- this builder
-
extendedMetadata
public HistorySummary.Builder extendedMetadata(Map<String,Object> extendedMetadata)
Additional metadata key/value pairs that you provide.They serve the same purpose and functionality as fields in the metadata object.
They are distinguished from metadata fields in that these can be nested JSON objects (whereas metadata fields are string/string maps only).
For example:
{"CurrentShape": {"name":"VM.Standard2.16"}, "RecommendedShape": {"name":"VM.Standard2.8"}}
- Parameters:
extendedMetadata- the value to set- Returns:
- this builder
-
timeCreated
public HistorySummary.Builder timeCreated(Date timeCreated)
The date and time the recommendation history was created, in the format defined by RFC3339.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
build
public HistorySummary build()
-
copy
public HistorySummary.Builder copy(HistorySummary model)
-
-