@Generated(value="OracleSDKGenerator", comments="API Version: 20200131") public final class ProblemSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Summary information for a problem.
Note: Objects should always be created or deserialized using the ProblemSummary.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 ProblemSummary.Builder
, which maintain a
set of all explicitly set fields called ProblemSummary.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 |
ProblemSummary.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
ProblemSummary(String id,
String compartmentId,
String detectorRuleId,
RiskLevel riskLevel,
Double riskScore,
String resourceId,
String resourceName,
String resourceType,
List<String> labels,
Date timeFirstDetected,
Date timeLastDetected,
ProblemLifecycleState lifecycleState,
ProblemLifecycleDetail lifecycleDetail,
DetectorEnum detectorId,
String region,
List<String> regions,
String targetId,
List<ResourceLock> locks)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ProblemSummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCompartmentId()
Compartment OCID where the resource is created
|
DetectorEnum |
getDetectorId()
Unique identifier of the detector associated with the problem
|
String |
getDetectorRuleId()
Unique identifier of the detector rule
|
String |
getId()
Unique identifier that can’t be changed after creation
|
List<String> |
getLabels()
User-defined labels on the problem
|
ProblemLifecycleDetail |
getLifecycleDetail()
Additional details on the substate of the lifecycle state
|
ProblemLifecycleState |
getLifecycleState()
The current lifecycle state of the problem
|
List<ResourceLock> |
getLocks()
Locks associated with this resource.
|
String |
getRegion()
DEPRECATED
|
List<String> |
getRegions()
List of regions where the problem is found
|
String |
getResourceId()
Unique identifier of the resource that’s impacted by the problem
|
String |
getResourceName()
Display name of the resource impacted by the problem
|
String |
getResourceType()
Type of the resource impacted by the problem
|
RiskLevel |
getRiskLevel()
The risk level of the problem
|
Double |
getRiskScore()
The risk score for the problem
|
String |
getTargetId()
Unique target identifier associated with the problem
|
Date |
getTimeFirstDetected()
The date and time the problem was first detected.
|
Date |
getTimeLastDetected()
The date and time the problem was last detected.
|
int |
hashCode() |
ProblemSummary.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","compartmentId","detectorRuleId","riskLevel","riskScore","resourceId","resourceName","resourceType","labels","timeFirstDetected","timeLastDetected","lifecycleState","lifecycleDetail","detectorId","region","regions","targetId","locks"}) public ProblemSummary(String id, String compartmentId, String detectorRuleId, RiskLevel riskLevel, Double riskScore, String resourceId, String resourceName, String resourceType, List<String> labels, Date timeFirstDetected, Date timeLastDetected, ProblemLifecycleState lifecycleState, ProblemLifecycleDetail lifecycleDetail, DetectorEnum detectorId, String region, List<String> regions, String targetId, List<ResourceLock> locks)
public static ProblemSummary.Builder builder()
Create a new builder.
public ProblemSummary.Builder toBuilder()
public String getId()
Unique identifier that can’t be changed after creation
public String getCompartmentId()
Compartment OCID where the resource is created
public String getDetectorRuleId()
Unique identifier of the detector rule
public RiskLevel getRiskLevel()
The risk level of the problem
public Double getRiskScore()
The risk score for the problem
public String getResourceId()
Unique identifier of the resource that’s impacted by the problem
public String getResourceName()
Display name of the resource impacted by the problem
public String getResourceType()
Type of the resource impacted by the problem
public Date getTimeFirstDetected()
The date and time the problem was first detected. Format defined by RFC3339.
public Date getTimeLastDetected()
The date and time the problem was last detected. Format defined by RFC3339.
public ProblemLifecycleState getLifecycleState()
The current lifecycle state of the problem
public ProblemLifecycleDetail getLifecycleDetail()
Additional details on the substate of the lifecycle state
public DetectorEnum getDetectorId()
Unique identifier of the detector associated with the problem
public String getRegion()
DEPRECATED
public List<String> getRegions()
List of regions where the problem is found
public String getTargetId()
Unique target identifier associated with the problem
public List<ResourceLock> getLocks()
Locks associated with this resource.
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.