Package com.oracle.bmc.optimizer.model
Class RecommendationSummary.Builder
- java.lang.Object
- 
- com.oracle.bmc.optimizer.model.RecommendationSummary.Builder
 
- 
- Enclosing class:
- RecommendationSummary
 
 public static class RecommendationSummary.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RecommendationSummarybuild()RecommendationSummary.BuildercategoryId(String categoryId)The unique OCID associated with the category.RecommendationSummary.BuildercompartmentId(String compartmentId)The OCID of the tenancy.RecommendationSummary.Buildercopy(RecommendationSummary model)RecommendationSummary.Builderdescription(String description)Text describing the recommendation.RecommendationSummary.BuilderestimatedCostSaving(Double estimatedCostSaving)The estimated cost savings, in dollars, for the recommendation.RecommendationSummary.BuilderextendedMetadata(Map<String,String> extendedMetadata)Additional metadata key/value pairs for the recommendation summary.RecommendationSummary.Builderid(String id)The unique OCID associated with the recommendation.RecommendationSummary.Builderimportance(Importance importance)The level of importance assigned to the recommendation.RecommendationSummary.BuilderlifecycleState(LifecycleState lifecycleState)The recommendation’s current state.RecommendationSummary.Buildername(String name)The name assigned to the recommendation.RecommendationSummary.BuilderresourceCounts(List<ResourceCount> resourceCounts)An array of ResourceCount objects grouped by the status of the resource actions.RecommendationSummary.Builderstatus(Status status)The current status of the recommendation.RecommendationSummary.BuildersupportedLevels(SupportedLevels supportedLevels)RecommendationSummary.BuildertimeCreated(Date timeCreated)The date and time the recommendation details were created, in the format defined by RFC3339.RecommendationSummary.BuildertimeStatusBegin(Date timeStatusBegin)The date and time that the recommendation entered its current status.RecommendationSummary.BuildertimeStatusEnd(Date timeStatusEnd)The date and time the current status will change.RecommendationSummary.BuildertimeUpdated(Date timeUpdated)The date and time the recommendation details were last updated, in the format defined by RFC3339.
 
- 
- 
- 
Method Detail- 
idpublic RecommendationSummary.Builder id(String id) The unique OCID associated with the recommendation.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic RecommendationSummary.Builder compartmentId(String compartmentId) The OCID of the tenancy.The tenancy is the root compartment. - Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
categoryIdpublic RecommendationSummary.Builder categoryId(String categoryId) The unique OCID associated with the category.- Parameters:
- categoryId- the value to set
- Returns:
- this builder
 
 - 
namepublic RecommendationSummary.Builder name(String name) The name assigned to the recommendation.- Parameters:
- name- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic RecommendationSummary.Builder description(String description) Text describing the recommendation.- Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
importancepublic RecommendationSummary.Builder importance(Importance importance) The level of importance assigned to the recommendation.- Parameters:
- importance- the value to set
- Returns:
- this builder
 
 - 
resourceCountspublic RecommendationSummary.Builder resourceCounts(List<ResourceCount> resourceCounts) An array of ResourceCount objects grouped by the status of the resource actions.- Parameters:
- resourceCounts- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic RecommendationSummary.Builder lifecycleState(LifecycleState lifecycleState) The recommendation’s current state.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
estimatedCostSavingpublic RecommendationSummary.Builder estimatedCostSaving(Double estimatedCostSaving) The estimated cost savings, in dollars, for the recommendation.- Parameters:
- estimatedCostSaving- the value to set
- Returns:
- this builder
 
 - 
statuspublic RecommendationSummary.Builder status(Status status) The current status of the recommendation.- Parameters:
- status- the value to set
- Returns:
- this builder
 
 - 
timeStatusBeginpublic RecommendationSummary.Builder timeStatusBegin(Date timeStatusBegin) The date and time that the recommendation entered its current status.The format is defined by RFC3339. For example, "The status of the recommendation changed from pending to current(ignored) on this date and time." - Parameters:
- timeStatusBegin- the value to set
- Returns:
- this builder
 
 - 
timeStatusEndpublic RecommendationSummary.Builder timeStatusEnd(Date timeStatusEnd) The date and time the current status will change.The format is defined by RFC3339. For example, "The current postponed status of the recommendation will end and change to pending on this date and time." - Parameters:
- timeStatusEnd- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic RecommendationSummary.Builder timeCreated(Date timeCreated) The date and time the recommendation details were created, in the format defined by RFC3339.- Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeUpdatedpublic RecommendationSummary.Builder timeUpdated(Date timeUpdated) The date and time the recommendation details were last updated, in the format defined by RFC3339.- Parameters:
- timeUpdated- the value to set
- Returns:
- this builder
 
 - 
supportedLevelspublic RecommendationSummary.Builder supportedLevels(SupportedLevels supportedLevels) 
 - 
extendedMetadatapublic RecommendationSummary.Builder extendedMetadata(Map<String,String> extendedMetadata) Additional metadata key/value pairs for the recommendation summary.For example: {"EstimatedSaving": "200"} - Parameters:
- extendedMetadata- the value to set
- Returns:
- this builder
 
 - 
buildpublic RecommendationSummary build() 
 - 
copypublic RecommendationSummary.Builder copy(RecommendationSummary model) 
 
- 
 
-