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 SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll 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- 
idpublic HistorySummary.Builder id(String id) The unique OCID associated with the recommendation history.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
namepublic HistorySummary.Builder name(String name) The name assigned to the resource.- Parameters:
- name- the value to set
- Returns:
- this builder
 
 - 
resourceTypepublic HistorySummary.Builder resourceType(String resourceType) The kind of resource.- Parameters:
- resourceType- the value to set
- Returns:
- this builder
 
 - 
categoryIdpublic HistorySummary.Builder categoryId(String categoryId) The unique OCID associated with the category.- Parameters:
- categoryId- the value to set
- Returns:
- this builder
 
 - 
recommendationIdpublic HistorySummary.Builder recommendationId(String recommendationId) The unique OCID associated with the recommendation.- Parameters:
- recommendationId- the value to set
- Returns:
- this builder
 
 - 
recommendationNamepublic HistorySummary.Builder recommendationName(String recommendationName) The name assigned to the recommendation.- Parameters:
- recommendationName- the value to set
- Returns:
- this builder
 
 - 
resourceIdpublic HistorySummary.Builder resourceId(String resourceId) The unique OCID associated with the resource.- Parameters:
- resourceId- the value to set
- Returns:
- this builder
 
 - 
resourceActionIdpublic HistorySummary.Builder resourceActionId(String resourceActionId) The unique OCID associated with the resource action.- Parameters:
- resourceActionId- the value to set
- Returns:
- this builder
 
 - 
actionpublic HistorySummary.Builder action(Action action) 
 - 
compartmentIdpublic HistorySummary.Builder compartmentId(String compartmentId) The OCID of the compartment.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
compartmentNamepublic HistorySummary.Builder compartmentName(String compartmentName) The name assigned to the compartment.- Parameters:
- compartmentName- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic HistorySummary.Builder lifecycleState(LifecycleState lifecycleState) The recommendation history’s current state.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
estimatedCostSavingpublic HistorySummary.Builder estimatedCostSaving(Double estimatedCostSaving) The estimated cost savings, in dollars, for the resource action.- Parameters:
- estimatedCostSaving- the value to set
- Returns:
- this builder
 
 - 
statuspublic HistorySummary.Builder status(Status status) The current status of the resource action.- Parameters:
- status- the value to set
- Returns:
- this builder
 
 - 
metadatapublic 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
 
 - 
extendedMetadatapublic 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
 
 - 
timeCreatedpublic 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
 
 - 
buildpublic HistorySummary build() 
 - 
copypublic HistorySummary.Builder copy(HistorySummary model) 
 
- 
 
-