@Generated(value="OracleSDKGenerator", comments="API Version: 20200131") public final class ProblemSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Summary of the 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)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ProblemSummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCompartmentId()
Compartment Identifier where the resource is created
|
DetectorEnum |
getDetectorId()
Id of detector associated with the Problem.
|
String |
getDetectorRuleId()
Identifier of the rule
|
String |
getId()
Unique identifier that is immutable on creation
|
List<String> |
getLabels()
user defined labels on the problem
|
ProblemLifecycleDetail |
getLifecycleDetail()
The lifecycleDetail will give more detail on the substate of the lifecycleState.
|
ProblemLifecycleState |
getLifecycleState()
The current state of the Problem.
|
String |
getRegion()
DEPRECATED
|
List<String> |
getRegions()
Regions where the problem is found
|
String |
getResourceId()
Identifier of the Resource
|
String |
getResourceName()
DisplayName of the Resource
|
String |
getResourceType()
Type of the Resource
|
RiskLevel |
getRiskLevel()
The Risk Level
|
Double |
getRiskScore()
Risk Score for the problem
|
String |
getTargetId()
targetId 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"}) 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)
public static ProblemSummary.Builder builder()
Create a new builder.
public ProblemSummary.Builder toBuilder()
public String getId()
Unique identifier that is immutable on creation
public String getCompartmentId()
Compartment Identifier where the resource is created
public String getDetectorRuleId()
Identifier of the rule
public RiskLevel getRiskLevel()
The Risk Level
public Double getRiskScore()
Risk Score for the problem
public String getResourceId()
Identifier of the Resource
public String getResourceName()
DisplayName of the Resource
public String getResourceType()
Type of the Resource
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 state of the Problem.
public ProblemLifecycleDetail getLifecycleDetail()
The lifecycleDetail will give more detail on the substate of the lifecycleState.
public DetectorEnum getDetectorId()
Id of detector associated with the Problem.
public String getRegion()
DEPRECATED
public String getTargetId()
targetId associated with the problem.
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.