@Generated(value="OracleSDKGenerator", comments="API Version: 20180409") public final class ResourceSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
A resource that exists in the cloud network that you’re querying.
Note: Objects should always be created or deserialized using the ResourceSummary.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 ResourceSummary.Builder
, which maintain a
set of all explicitly set fields called ResourceSummary.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 |
ResourceSummary.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
ResourceSummary(String resourceType,
String identifier,
String compartmentId,
Date timeCreated,
String displayName,
String availabilityDomain,
String lifecycleState,
Map<String,String> freeformTags,
Map<String,Map<String,Object>> definedTags,
Map<String,Map<String,Object>> systemTags,
SearchContext searchContext,
Map<String,Object> identityContext,
Map<String,Object> additionalDetails)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ResourceSummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Map<String,Object> |
getAdditionalDetails()
Additional resource attribute fields of this resource that match queries with a return
clause, if any.
|
String |
getAvailabilityDomain()
The availability domain where this resource exists, if applicable.
|
String |
getCompartmentId()
The OCID of the compartment that contains this resource.
|
Map<String,Map<String,Object>> |
getDefinedTags()
Defined tags for this resource.
|
String |
getDisplayName()
The display name (or name) of this resource, if one exists.
|
Map<String,String> |
getFreeformTags()
Free-form tags for this resource.
|
String |
getIdentifier()
The unique identifier for this particular resource, usually an OCID.
|
Map<String,Object> |
getIdentityContext()
Additional identifiers to use together in a “Get” request for a specified resource, only
required for resource types that explicitly cannot be retrieved by using a single identifier,
such as the resource’s OCID.
|
String |
getLifecycleState()
The lifecycle state of this resource, if applicable.
|
String |
getResourceType()
The resource type name.
|
SearchContext |
getSearchContext() |
Map<String,Map<String,Object>> |
getSystemTags()
System tags associated with this resource, if any.
|
Date |
getTimeCreated()
The time that this resource was created.
|
int |
hashCode() |
ResourceSummary.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"resourceType","identifier","compartmentId","timeCreated","displayName","availabilityDomain","lifecycleState","freeformTags","definedTags","systemTags","searchContext","identityContext","additionalDetails"}) public ResourceSummary(String resourceType, String identifier, String compartmentId, Date timeCreated, String displayName, String availabilityDomain, String lifecycleState, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, Map<String,Map<String,Object>> systemTags, SearchContext searchContext, Map<String,Object> identityContext, Map<String,Object> additionalDetails)
public static ResourceSummary.Builder builder()
Create a new builder.
public ResourceSummary.Builder toBuilder()
public String getResourceType()
The resource type name.
public String getIdentifier()
The unique identifier for this particular resource, usually an OCID.
public String getCompartmentId()
The OCID of the compartment that contains this resource.
public Date getTimeCreated()
The time that this resource was created.
public String getDisplayName()
The display name (or name) of this resource, if one exists.
public String getAvailabilityDomain()
The availability domain where this resource exists, if applicable.
public String getLifecycleState()
The lifecycle state of this resource, if applicable.
public Map<String,String> getFreeformTags()
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined
name, type, or namespace. For more information, see Resource
Tags. Example:
{"Department": "Finance"}
public Map<String,Map<String,Object>> getDefinedTags()
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more
information, see Resource
Tags. Example:
{"Operations": {"CostCenter": "42"}}
public Map<String,Map<String,Object>> getSystemTags()
System tags associated with this resource, if any. System tags are set by Oracle Cloud
Infrastructure services. Each key is predefined and scoped to namespaces. For more
information, see Resource
Tags. Example:
{orcl-cloud: {free-tier-retain: true}}
public SearchContext getSearchContext()
public Map<String,Object> getIdentityContext()
Additional identifiers to use together in a “Get” request for a specified resource, only required for resource types that explicitly cannot be retrieved by using a single identifier, such as the resource’s OCID.
public Map<String,Object> getAdditionalDetails()
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.