@Generated(value="OracleSDKGenerator", comments="API Version: 20200131") public final class Problem extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Problem Definition.
Note: Objects should always be created or deserialized using the Problem.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 Problem.Builder
, which maintain a
set of all explicitly set fields called Problem.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 |
Problem.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Problem(String id,
String compartmentId,
String detectorRuleId,
String region,
List<String> regions,
RiskLevel riskLevel,
Double riskScore,
String peakRiskScoreDate,
Double peakRiskScore,
String autoResolveDate,
Integer peakRiskScoreLookupPeriodInDays,
String resourceId,
String resourceName,
String resourceType,
List<String> labels,
Date timeLastDetected,
Date timeFirstDetected,
ProblemLifecycleState lifecycleState,
ProblemLifecycleDetail lifecycleDetail,
DetectorEnum detectorId,
String targetId,
Map<String,String> additionalDetails,
String description,
String recommendation,
String comment,
String impactedResourceId,
String impactedResourceName,
String impactedResourceType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Problem.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Map<String,String> |
getAdditionalDetails()
The additional details of the Problem
|
String |
getAutoResolveDate()
The date and time when the problem will be auto resolved.
|
String |
getComment()
User Comments
|
String |
getCompartmentId()
Compartment Identifier where the resource is created
|
String |
getDescription()
Description of the problem
|
DetectorEnum |
getDetectorId()
Id of the detector associated with the Problem.
|
String |
getDetectorRuleId()
Identifier of the rule
|
String |
getId()
Unique identifier that is immutable on creation
|
String |
getImpactedResourceId()
Identifier of the impacted Resource
|
String |
getImpactedResourceName()
DisplayName of the impacted Resource
|
String |
getImpactedResourceType()
Type of the impacted Resource
|
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.
|
Double |
getPeakRiskScore()
Peak risk score for the problem
|
String |
getPeakRiskScoreDate()
The date and time for the peak risk score that is observed.
|
Integer |
getPeakRiskScoreLookupPeriodInDays()
Number of days for which peak score is calculated for the problem
|
String |
getRecommendation()
Recommendation for 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 of 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() |
Problem.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","compartmentId","detectorRuleId","region","regions","riskLevel","riskScore","peakRiskScoreDate","peakRiskScore","autoResolveDate","peakRiskScoreLookupPeriodInDays","resourceId","resourceName","resourceType","labels","timeLastDetected","timeFirstDetected","lifecycleState","lifecycleDetail","detectorId","targetId","additionalDetails","description","recommendation","comment","impactedResourceId","impactedResourceName","impactedResourceType"}) public Problem(String id, String compartmentId, String detectorRuleId, String region, List<String> regions, RiskLevel riskLevel, Double riskScore, String peakRiskScoreDate, Double peakRiskScore, String autoResolveDate, Integer peakRiskScoreLookupPeriodInDays, String resourceId, String resourceName, String resourceType, List<String> labels, Date timeLastDetected, Date timeFirstDetected, ProblemLifecycleState lifecycleState, ProblemLifecycleDetail lifecycleDetail, DetectorEnum detectorId, String targetId, Map<String,String> additionalDetails, String description, String recommendation, String comment, String impactedResourceId, String impactedResourceName, String impactedResourceType)
public static Problem.Builder builder()
Create a new builder.
public Problem.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 String getRegion()
DEPRECATED
public RiskLevel getRiskLevel()
The Risk Level
public Double getRiskScore()
Risk Score for the problem
public String getPeakRiskScoreDate()
The date and time for the peak risk score that is observed. Format defined by RFC3339.
public Double getPeakRiskScore()
Peak risk score for the problem
public String getAutoResolveDate()
The date and time when the problem will be auto resolved. Format defined by RFC3339.
public Integer getPeakRiskScoreLookupPeriodInDays()
Number of days for which peak score is calculated 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 getTimeLastDetected()
The date and time the problem was last detected. Format defined by RFC3339.
public Date getTimeFirstDetected()
The date and time the problem was first 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 the detector associated with the Problem.
public String getTargetId()
targetId of the problem
public Map<String,String> getAdditionalDetails()
The additional details of the Problem
public String getDescription()
Description of the problem
public String getRecommendation()
Recommendation for the problem
public String getComment()
User Comments
public String getImpactedResourceId()
Identifier of the impacted Resource
public String getImpactedResourceName()
DisplayName of the impacted Resource
public String getImpactedResourceType()
Type of the impacted 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–2023. All rights reserved.