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 Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Recommendation
build()
Recommendation.Builder
categoryId(String categoryId)
The unique OCID associated with the category.Recommendation.Builder
compartmentId(String compartmentId)
The OCID of the tenancy.Recommendation.Builder
copy(Recommendation model)
Recommendation.Builder
description(String description)
Text describing the recommendation.Recommendation.Builder
estimatedCostSaving(Double estimatedCostSaving)
The estimated cost savings, in dollars, for the recommendation.Recommendation.Builder
extendedMetadata(Map<String,String> extendedMetadata)
Additional metadata key/value pairs for the recommendation.Recommendation.Builder
id(String id)
The unique OCID associated with the recommendation.Recommendation.Builder
importance(Importance importance)
The level of importance assigned to the recommendation.Recommendation.Builder
lifecycleState(LifecycleState lifecycleState)
The recommendation’s current state.Recommendation.Builder
name(String name)
The name assigned to the recommendation.Recommendation.Builder
resourceCounts(List<ResourceCount> resourceCounts)
An array of ResourceCount objects grouped by the status of the resource actions.Recommendation.Builder
status(Status status)
The current status of the recommendation.Recommendation.Builder
supportedLevels(SupportedLevels supportedLevels)
Recommendation.Builder
timeCreated(Date timeCreated)
The date and time the recommendation details were created, in the format defined by RFC3339.Recommendation.Builder
timeStatusBegin(Date timeStatusBegin)
The date and time that the recommendation entered its current status.Recommendation.Builder
timeStatusEnd(Date timeStatusEnd)
The date and time the current status will change.Recommendation.Builder
timeUpdated(Date timeUpdated)
The date and time the recommendation details were last updated, in the format defined by RFC3339.
-
-
-
Method Detail
-
id
public Recommendation.Builder id(String id)
The unique OCID associated with the recommendation.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public 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
-
categoryId
public Recommendation.Builder categoryId(String categoryId)
The unique OCID associated with the category.- Parameters:
categoryId
- the value to set- Returns:
- this builder
-
name
public Recommendation.Builder name(String name)
The name assigned to the recommendation.- Parameters:
name
- the value to set- Returns:
- this builder
-
description
public Recommendation.Builder description(String description)
Text describing the recommendation.- Parameters:
description
- the value to set- Returns:
- this builder
-
importance
public Recommendation.Builder importance(Importance importance)
The level of importance assigned to the recommendation.- Parameters:
importance
- the value to set- Returns:
- this builder
-
resourceCounts
public 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
-
lifecycleState
public Recommendation.Builder lifecycleState(LifecycleState lifecycleState)
The recommendation’s current state.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
estimatedCostSaving
public Recommendation.Builder estimatedCostSaving(Double estimatedCostSaving)
The estimated cost savings, in dollars, for the recommendation.- Parameters:
estimatedCostSaving
- the value to set- Returns:
- this builder
-
status
public Recommendation.Builder status(Status status)
The current status of the recommendation.- Parameters:
status
- the value to set- Returns:
- this builder
-
timeStatusBegin
public 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
-
timeStatusEnd
public 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
-
timeCreated
public 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
-
timeUpdated
public 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
-
supportedLevels
public Recommendation.Builder supportedLevels(SupportedLevels supportedLevels)
-
extendedMetadata
public 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
-
build
public Recommendation build()
-
copy
public Recommendation.Builder copy(Recommendation model)
-
-