@Generated(value="OracleSDKGenerator", comments="API Version: 20200131") public final class Problem extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Problems are at the core of Cloud Guard’s functionality. A Problem resource is created
whenever an action or a configuration on a resource triggers a rule in a detector that’s
attached to the target containing the compartment where the resource is located. Each Problem
resource contains all the details for a single problem. This is the information for the problem
that appears on the Cloud Guard Problems page.
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,
List<ResourceLock> locks)
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 on the problem
|
String |
getCompartmentId()
Compartment OCID where the resource is created
|
String |
getDescription()
Description of the problem
|
DetectorEnum |
getDetectorId()
Unique identifier of the detector rule that triggered the problem
|
String |
getDetectorRuleId()
Unique identifier of the detector rule that triggered the problem
|
String |
getId()
Unique identifier that can’t be changed after creation
|
String |
getImpactedResourceId()
Unique identifier of the resource impacted by the problem
|
String |
getImpactedResourceName()
Display name of the impacted resource
|
String |
getImpactedResourceType()
Type of the impacted resource
|
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.
|
Double |
getPeakRiskScore()
Peak risk score for the problem
|
String |
getPeakRiskScoreDate()
The date and time for the peak risk score that is observed for the problem.
|
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()
Unique identifier of the resource affected by the problem
|
String |
getResourceName()
Display name of the affected resource
|
String |
getResourceType()
Type of the affected resource
|
RiskLevel |
getRiskLevel()
The risk level for the problem
|
Double |
getRiskScore()
The risk score for the problem
|
String |
getTargetId()
Unique identifier of the target 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() |
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","locks"}) 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, List<ResourceLock> locks)
public static Problem.Builder builder()
Create a new builder.
public Problem.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 that triggered the problem
public String getRegion()
DEPRECATED
public RiskLevel getRiskLevel()
The risk level for the problem
public Double getRiskScore()
The risk score for the problem
public String getPeakRiskScoreDate()
The date and time for the peak risk score that is observed for the problem. 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()
Unique identifier of the resource affected by the problem
public String getResourceName()
Display name of the affected resource
public String getResourceType()
Type of the affected 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 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 rule that triggered the problem
public String getTargetId()
Unique identifier of the target associated with 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 on the problem
public String getImpactedResourceId()
Unique identifier of the resource impacted by the problem
public String getImpactedResourceName()
Display name of the impacted resource
public String getImpactedResourceType()
Type of the impacted resource
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.