@Generated(value="OracleSDKGenerator", comments="API Version: 20200131") public final class Problem extends Object
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
__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take
__explicitlySet__ into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null from unset null).
| Modifier and Type | Class and Description |
|---|---|
static class |
Problem.Builder |
| Constructor and Description |
|---|
Problem(String id,
String compartmentId,
String detectorRuleId,
String region,
List<String> regions,
RiskLevel riskLevel,
String resourceId,
String resourceName,
String resourceType,
List<String> labels,
Date timeLastDetected,
Date timeFirstDetected,
ProblemLifecycleState lifecycleState,
ProblemLifecycleDetail lifecycleDetail,
DetectorEnum detectorId,
String targetId,
String comment)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static Problem.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
String |
getComment()
User Comments
|
String |
getCompartmentId()
Compartment Identifier where the resource is created
|
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
|
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
|
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() |
@ConstructorProperties(value={"id","compartmentId","detectorRuleId","region","regions","riskLevel","resourceId","resourceName","resourceType","labels","timeLastDetected","timeFirstDetected","lifecycleState","lifecycleDetail","detectorId","targetId","comment"}) @Deprecated public Problem(String id, String compartmentId, String detectorRuleId, String region, List<String> regions, RiskLevel riskLevel, String resourceId, String resourceName, String resourceType, List<String> labels, Date timeLastDetected, Date timeFirstDetected, ProblemLifecycleState lifecycleState, ProblemLifecycleDetail lifecycleDetail, DetectorEnum detectorId, String targetId, String comment)
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 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 String getComment()
User Comments
Copyright © 2016–2021. All rights reserved.