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