@Generated(value="OracleSDKGenerator", comments="API Version: 20200606") public final class RecommendationSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The metadata associated with the recommendation summary.
Note: Objects should always be created or deserialized using the RecommendationSummary.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 RecommendationSummary.Builder
, which maintain a
set of all explicitly set fields called RecommendationSummary.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
RecommendationSummary.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
RecommendationSummary(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,
Map<String,String> extendedMetadata)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static RecommendationSummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
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.
|
Map<String,String> |
getExtendedMetadata()
Additional metadata key/value pairs for the recommendation summary.
|
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() |
RecommendationSummary.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","compartmentId","categoryId","name","description","importance","resourceCounts","lifecycleState","estimatedCostSaving","status","timeStatusBegin","timeStatusEnd","timeCreated","timeUpdated","supportedLevels","extendedMetadata"}) public RecommendationSummary(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, Map<String,String> extendedMetadata)
public static RecommendationSummary.Builder builder()
Create a new builder.
public RecommendationSummary.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()
public Map<String,String> getExtendedMetadata()
Additional metadata key/value pairs for the recommendation summary.
For example:
{"EstimatedSaving": "200"}
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.