@Generated(value="OracleSDKGenerator", comments="API Version: 20200606") public final class CategorySummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The metadata associated with the category summary.
Note: Objects should always be created or deserialized using the CategorySummary.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 CategorySummary.Builder
, which maintain a
set of all explicitly set fields called ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and
equals(Object)
methods are implemented to take ExplicitlySetBmcModel.__explicitlySet__
into account.
The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the
constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
CategorySummary.Builder |
Constructor and Description |
---|
CategorySummary(String id,
String compartmentId,
String compartmentName,
String name,
String description,
List<RecommendationCount> recommendationCounts,
List<ResourceCount> resourceCounts,
LifecycleState lifecycleState,
Double estimatedCostSaving,
Date timeCreated,
Date timeUpdated,
Map<String,String> extendedMetadata)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static CategorySummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCompartmentId()
The OCID of the tenancy.
|
String |
getCompartmentName()
The name associated with the compartment.
|
String |
getDescription()
Text describing the category.
|
Double |
getEstimatedCostSaving()
The estimated cost savings, in dollars, for the category.
|
Map<String,String> |
getExtendedMetadata()
Additional metadata key/value pairs for the category summary.
|
String |
getId()
The unique OCID of the category.
|
LifecycleState |
getLifecycleState()
The category’s current state.
|
String |
getName()
The name assigned to the category.
|
List<RecommendationCount> |
getRecommendationCounts()
An array of
RecommendationCount objects grouped by the level of importance assigned
to each recommendation. |
List<ResourceCount> |
getResourceCounts()
An array of
ResourceCount objects grouped by the status of each recommendation. |
Date |
getTimeCreated()
The date and time the category details were created, in the format defined by RFC3339.
|
Date |
getTimeUpdated()
The date and time the category details were last updated, in the format defined by RFC3339.
|
int |
hashCode() |
CategorySummary.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","compartmentId","compartmentName","name","description","recommendationCounts","resourceCounts","lifecycleState","estimatedCostSaving","timeCreated","timeUpdated","extendedMetadata"}) public CategorySummary(String id, String compartmentId, String compartmentName, String name, String description, List<RecommendationCount> recommendationCounts, List<ResourceCount> resourceCounts, LifecycleState lifecycleState, Double estimatedCostSaving, Date timeCreated, Date timeUpdated, Map<String,String> extendedMetadata)
public static CategorySummary.Builder builder()
Create a new builder.
public CategorySummary.Builder toBuilder()
public String getId()
The unique OCID of the category.
public String getCompartmentId()
The OCID of the tenancy. The tenancy is the root compartment.
public String getCompartmentName()
The name associated with the compartment.
public String getName()
The name assigned to the category.
public String getDescription()
Text describing the category.
public List<RecommendationCount> getRecommendationCounts()
An array of RecommendationCount
objects grouped by the level of importance assigned
to each recommendation.
public List<ResourceCount> getResourceCounts()
An array of ResourceCount
objects grouped by the status of each recommendation.
public LifecycleState getLifecycleState()
The category’s current state.
public Double getEstimatedCostSaving()
The estimated cost savings, in dollars, for the category.
public Date getTimeCreated()
The date and time the category details were created, in the format defined by RFC3339.
public Date getTimeUpdated()
The date and time the category details were last updated, in the format defined by RFC3339.
public Map<String,String> getExtendedMetadata()
Additional metadata key/value pairs for the category 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–2023. All rights reserved.