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