public static class Recommendation.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public Recommendation.Builder id(String id)
The unique OCID associated with the recommendation.
id
- the value to setpublic Recommendation.Builder compartmentId(String compartmentId)
The OCID of the tenancy. The tenancy is the root compartment.
compartmentId
- the value to setpublic Recommendation.Builder categoryId(String categoryId)
The unique OCID associated with the category.
categoryId
- the value to setpublic Recommendation.Builder name(String name)
The name assigned to the recommendation.
name
- the value to setpublic Recommendation.Builder description(String description)
Text describing the recommendation.
description
- the value to setpublic Recommendation.Builder importance(Importance importance)
The level of importance assigned to the recommendation.
importance
- the value to setpublic Recommendation.Builder resourceCounts(List<ResourceCount> resourceCounts)
An array of ResourceCount
objects grouped by the status of the resource actions.
resourceCounts
- the value to setpublic Recommendation.Builder lifecycleState(LifecycleState lifecycleState)
The recommendation’s current state.
lifecycleState
- the value to setpublic Recommendation.Builder estimatedCostSaving(Double estimatedCostSaving)
The estimated cost savings, in dollars, for the recommendation.
estimatedCostSaving
- the value to setpublic Recommendation.Builder status(Status status)
The current status of the recommendation.
status
- the value to setpublic 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."
timeStatusBegin
- the value to setpublic 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."
timeStatusEnd
- the value to setpublic Recommendation.Builder timeCreated(Date timeCreated)
The date and time the recommendation details were created, in the format defined by RFC3339.
timeCreated
- the value to setpublic Recommendation.Builder timeUpdated(Date timeUpdated)
The date and time the recommendation details were last updated, in the format defined by RFC3339.
timeUpdated
- the value to setpublic Recommendation.Builder supportedLevels(SupportedLevels supportedLevels)
public Recommendation.Builder extendedMetadata(Map<String,String> extendedMetadata)
Additional metadata key/value pairs for the recommendation.
For example:
{"EstimatedSaving": "200"}
extendedMetadata
- the value to setpublic Recommendation build()
public Recommendation.Builder copy(Recommendation model)
Copyright © 2016–2024. All rights reserved.