@Generated(value="OracleSDKGenerator", comments="API Version: 20200606") public final class Recommendation extends Object
The metadata associated with the recommendation.
*Caution:** Avoid using any confidential information when you supply string values using the API.
Note: Objects should always be created or deserialized using the Recommendation.Builder. This model distinguishes fields
that are null because they are unset from fields that are explicitly set to null. This is done in
the setter methods of the Recommendation.Builder, which maintain a set of all explicitly set fields called
__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take
__explicitlySet__ into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null from unset null).
| Modifier and Type | Class and Description |
|---|---|
static class |
Recommendation.Builder |
| Constructor and Description |
|---|
Recommendation(String id,
String compartmentId,
String categoryId,
String name,
String description,
Importance importance,
List<ResourceCount> resourceCounts,
LifecycleState lifecycleState,
Double estimatedCostSaving,
Status status,
Date timeStatusBegin,
Date timeStatusEnd,
Date timeCreated,
Date timeUpdated,
SupportedLevels supportedLevels)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static Recommendation.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
String |
getCategoryId()
The unique OCID associated with the category.
|
String |
getCompartmentId()
The OCID of the tenancy.
|
String |
getDescription()
Text describing the recommendation.
|
Double |
getEstimatedCostSaving()
The estimated cost savings, in dollars, for the recommendation.
|
String |
getId()
The unique OCID associated with the recommendation.
|
Importance |
getImportance()
The level of importance assigned to the recommendation.
|
LifecycleState |
getLifecycleState()
The recommendation’s current state.
|
String |
getName()
The name assigned to the recommendation.
|
List<ResourceCount> |
getResourceCounts()
An array of
ResourceCount objects grouped by the status of the resource actions. |
Status |
getStatus()
The current status of the recommendation.
|
SupportedLevels |
getSupportedLevels() |
Date |
getTimeCreated()
The date and time the recommendation details were created, in the format defined by RFC3339.
|
Date |
getTimeStatusBegin()
The date and time that the recommendation entered its current status.
|
Date |
getTimeStatusEnd()
The date and time the current status will change.
|
Date |
getTimeUpdated()
The date and time the recommendation details were last updated, in the format defined by RFC3339.
|
int |
hashCode() |
Recommendation.Builder |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"id","compartmentId","categoryId","name","description","importance","resourceCounts","lifecycleState","estimatedCostSaving","status","timeStatusBegin","timeStatusEnd","timeCreated","timeUpdated","supportedLevels"}) @Deprecated public Recommendation(String id, String compartmentId, String categoryId, String name, String description, Importance importance, List<ResourceCount> resourceCounts, LifecycleState lifecycleState, Double estimatedCostSaving, Status status, Date timeStatusBegin, Date timeStatusEnd, Date timeCreated, Date timeUpdated, SupportedLevels supportedLevels)
public static Recommendation.Builder builder()
Create a new builder.
public Recommendation.Builder toBuilder()
public String getId()
The unique OCID associated with the recommendation.
public String getCompartmentId()
The OCID of the tenancy. The tenancy is the root compartment.
public String getCategoryId()
The unique OCID associated with the category.
public String getName()
The name assigned to the recommendation.
public String getDescription()
Text describing the recommendation.
public Importance getImportance()
The level of importance assigned to the recommendation.
public List<ResourceCount> getResourceCounts()
An array of ResourceCount objects grouped by the status of the resource actions.
public LifecycleState getLifecycleState()
The recommendation’s current state.
public Double getEstimatedCostSaving()
The estimated cost savings, in dollars, for the recommendation.
public Status getStatus()
The current status of the recommendation.
public Date getTimeStatusBegin()
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.\"
public Date getTimeStatusEnd()
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.\"
public Date getTimeCreated()
The date and time the recommendation details were created, in the format defined by RFC3339.
public Date getTimeUpdated()
The date and time the recommendation details were last updated, in the format defined by RFC3339.
public SupportedLevels getSupportedLevels()
Copyright © 2016–2021. All rights reserved.