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 Summary
Constructors Constructor Description Builder()
-
Method Summary
All 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
-
id
public RecommendationSummary.Builder id(String id)
The unique OCID associated with the recommendation.- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public 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
-
categoryId
public RecommendationSummary.Builder categoryId(String categoryId)
The unique OCID associated with the category.- Parameters:
categoryId- the value to set- Returns:
- this builder
-
name
public RecommendationSummary.Builder name(String name)
The name assigned to the recommendation.- Parameters:
name- the value to set- Returns:
- this builder
-
description
public RecommendationSummary.Builder description(String description)
Text describing the recommendation.- Parameters:
description- the value to set- Returns:
- this builder
-
importance
public RecommendationSummary.Builder importance(Importance importance)
The level of importance assigned to the recommendation.- Parameters:
importance- the value to set- Returns:
- this builder
-
resourceCounts
public 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
-
lifecycleState
public RecommendationSummary.Builder lifecycleState(LifecycleState lifecycleState)
The recommendation’s current state.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
estimatedCostSaving
public RecommendationSummary.Builder estimatedCostSaving(Double estimatedCostSaving)
The estimated cost savings, in dollars, for the recommendation.- Parameters:
estimatedCostSaving- the value to set- Returns:
- this builder
-
status
public RecommendationSummary.Builder status(Status status)
The current status of the recommendation.- Parameters:
status- the value to set- Returns:
- this builder
-
timeStatusBegin
public 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
-
timeStatusEnd
public 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
-
timeCreated
public 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
-
timeUpdated
public 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
-
supportedLevels
public RecommendationSummary.Builder supportedLevels(SupportedLevels supportedLevels)
-
extendedMetadata
public 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
-
build
public RecommendationSummary build()
-
copy
public RecommendationSummary.Builder copy(RecommendationSummary model)
-
-