@Generated(value="OracleSDKGenerator", comments="API Version: 20200606") public final class HistorySummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The metadata associated with the recommendation history and its related resources.
Note: Objects should always be created or deserialized using the HistorySummary.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 HistorySummary.Builder
, which maintain a
set of all explicitly set fields called HistorySummary.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 |
HistorySummary.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
HistorySummary(String id,
String name,
String resourceType,
String categoryId,
String recommendationId,
String recommendationName,
String resourceId,
String resourceActionId,
Action action,
String compartmentId,
String compartmentName,
LifecycleState lifecycleState,
Double estimatedCostSaving,
Status status,
Map<String,String> metadata,
Map<String,Object> extendedMetadata,
Date timeCreated)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static HistorySummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Action |
getAction() |
String |
getCategoryId()
The unique OCID associated with the category.
|
String |
getCompartmentId()
The OCID of the compartment.
|
String |
getCompartmentName()
The name assigned to the compartment.
|
Double |
getEstimatedCostSaving()
The estimated cost savings, in dollars, for the resource action.
|
Map<String,Object> |
getExtendedMetadata()
Additional metadata key/value pairs that you provide.
|
String |
getId()
The unique OCID associated with the recommendation history.
|
LifecycleState |
getLifecycleState()
The recommendation history’s current state.
|
Map<String,String> |
getMetadata()
Custom metadata key/value pairs for the resource action.
|
String |
getName()
The name assigned to the resource.
|
String |
getRecommendationId()
The unique OCID associated with the recommendation.
|
String |
getRecommendationName()
The name assigned to the recommendation.
|
String |
getResourceActionId()
The unique OCID associated with the resource action.
|
String |
getResourceId()
The unique OCID associated with the resource.
|
String |
getResourceType()
The kind of resource.
|
Status |
getStatus()
The current status of the resource action.
|
Date |
getTimeCreated()
The date and time the recommendation history was created, in the format defined by RFC3339.
|
int |
hashCode() |
HistorySummary.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","name","resourceType","categoryId","recommendationId","recommendationName","resourceId","resourceActionId","action","compartmentId","compartmentName","lifecycleState","estimatedCostSaving","status","metadata","extendedMetadata","timeCreated"}) public HistorySummary(String id, String name, String resourceType, String categoryId, String recommendationId, String recommendationName, String resourceId, String resourceActionId, Action action, String compartmentId, String compartmentName, LifecycleState lifecycleState, Double estimatedCostSaving, Status status, Map<String,String> metadata, Map<String,Object> extendedMetadata, Date timeCreated)
public static HistorySummary.Builder builder()
Create a new builder.
public HistorySummary.Builder toBuilder()
public String getId()
The unique OCID associated with the recommendation history.
public String getName()
The name assigned to the resource.
public String getResourceType()
The kind of resource.
public String getCategoryId()
The unique OCID associated with the category.
public String getRecommendationId()
The unique OCID associated with the recommendation.
public String getRecommendationName()
The name assigned to the recommendation.
public String getResourceId()
The unique OCID associated with the resource.
public String getResourceActionId()
The unique OCID associated with the resource action.
public Action getAction()
public String getCompartmentId()
The OCID of the compartment.
public String getCompartmentName()
The name assigned to the compartment.
public LifecycleState getLifecycleState()
The recommendation history’s current state.
public Double getEstimatedCostSaving()
The estimated cost savings, in dollars, for the resource action.
public Status getStatus()
The current status of the resource action.
public Map<String,String> getMetadata()
Custom metadata key/value pairs for the resource action.
*Metadata Example**
"metadata" : { "cpuRecommendedShape": "VM.Standard1.1", "computeMemoryUtilization": "26.05734124418388", "currentShape": "VM.Standard1.2", "instanceRecommendedShape": "VM.Standard1.1", "computeCpuUtilization": "7.930035319720132", "memoryRecommendedShape": "None" }
public Map<String,Object> getExtendedMetadata()
Additional metadata key/value pairs that you provide. They serve the same purpose and
functionality as fields in the metadata
object.
They are distinguished from metadata
fields in that these can be nested JSON
objects (whereas metadata
fields are string/string maps only).
For example:
{"CurrentShape": {"name":"VM.Standard2.16"}, "RecommendedShape":
{"name":"VM.Standard2.8"}}
public Date getTimeCreated()
The date and time the recommendation history was created, in the format defined by RFC3339.
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.