Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Problem.Builder |
additionalDetails(Map<String,String> additionalDetails)
The additional details of the problem
|
Problem.Builder |
autoResolveDate(String autoResolveDate)
The date and time when the problem will be auto resolved.
|
Problem |
build() |
Problem.Builder |
comment(String comment)
User comments on the problem
|
Problem.Builder |
compartmentId(String compartmentId)
Compartment OCID where the resource is created
|
Problem.Builder |
copy(Problem model) |
Problem.Builder |
description(String description)
Description of the problem
|
Problem.Builder |
detectorId(DetectorEnum detectorId)
Unique identifier of the detector rule that triggered the problem
|
Problem.Builder |
detectorRuleId(String detectorRuleId)
Unique identifier of the detector rule that triggered the problem
|
Problem.Builder |
id(String id)
Unique identifier that can’t be changed after creation
|
Problem.Builder |
impactedResourceId(String impactedResourceId)
Unique identifier of the resource impacted by the problem
|
Problem.Builder |
impactedResourceName(String impactedResourceName)
Display name of the impacted resource
|
Problem.Builder |
impactedResourceType(String impactedResourceType)
Type of the impacted resource
|
Problem.Builder |
labels(List<String> labels)
User-defined labels on the problem
|
Problem.Builder |
lifecycleDetail(ProblemLifecycleDetail lifecycleDetail)
Additional details on the substate of the lifecycle state
|
Problem.Builder |
lifecycleState(ProblemLifecycleState lifecycleState)
The current lifecycle state of the problem
|
Problem.Builder |
locks(List<ResourceLock> locks)
Locks associated with this resource.
|
Problem.Builder |
peakRiskScore(Double peakRiskScore)
Peak risk score for the problem
|
Problem.Builder |
peakRiskScoreDate(String peakRiskScoreDate)
The date and time for the peak risk score that is observed for the problem.
|
Problem.Builder |
peakRiskScoreLookupPeriodInDays(Integer peakRiskScoreLookupPeriodInDays)
Number of days for which peak score is calculated for the problem
|
Problem.Builder |
recommendation(String recommendation)
Recommendation for the problem
|
Problem.Builder |
region(String region)
DEPRECATED
|
Problem.Builder |
regions(List<String> regions)
Regions where the problem is found
|
Problem.Builder |
resourceId(String resourceId)
Unique identifier of the resource affected by the problem
|
Problem.Builder |
resourceName(String resourceName)
Display name of the affected resource
|
Problem.Builder |
resourceType(String resourceType)
Type of the affected resource
|
Problem.Builder |
riskLevel(RiskLevel riskLevel)
The risk level for the problem
|
Problem.Builder |
riskScore(Double riskScore)
The risk score for the problem
|
Problem.Builder |
targetId(String targetId)
Unique identifier of the target associated with the problem
|
Problem.Builder |
timeFirstDetected(Date timeFirstDetected)
The date and time the problem was first detected.
|
Problem.Builder |
timeLastDetected(Date timeLastDetected)
The date and time the problem was last detected.
|
public Problem.Builder id(String id)
Unique identifier that can’t be changed after creation
id
- the value to setpublic Problem.Builder compartmentId(String compartmentId)
Compartment OCID where the resource is created
compartmentId
- the value to setpublic Problem.Builder detectorRuleId(String detectorRuleId)
Unique identifier of the detector rule that triggered the problem
detectorRuleId
- the value to setpublic Problem.Builder region(String region)
DEPRECATED
region
- the value to setpublic Problem.Builder regions(List<String> regions)
Regions where the problem is found
regions
- the value to setpublic Problem.Builder riskLevel(RiskLevel riskLevel)
The risk level for the problem
riskLevel
- the value to setpublic Problem.Builder riskScore(Double riskScore)
The risk score for the problem
riskScore
- the value to setpublic Problem.Builder peakRiskScoreDate(String peakRiskScoreDate)
The date and time for the peak risk score that is observed for the problem. Format defined by RFC3339.
peakRiskScoreDate
- the value to setpublic Problem.Builder peakRiskScore(Double peakRiskScore)
Peak risk score for the problem
peakRiskScore
- the value to setpublic Problem.Builder autoResolveDate(String autoResolveDate)
The date and time when the problem will be auto resolved. Format defined by RFC3339.
autoResolveDate
- the value to setpublic Problem.Builder peakRiskScoreLookupPeriodInDays(Integer peakRiskScoreLookupPeriodInDays)
Number of days for which peak score is calculated for the problem
peakRiskScoreLookupPeriodInDays
- the value to setpublic Problem.Builder resourceId(String resourceId)
Unique identifier of the resource affected by the problem
resourceId
- the value to setpublic Problem.Builder resourceName(String resourceName)
Display name of the affected resource
resourceName
- the value to setpublic Problem.Builder resourceType(String resourceType)
Type of the affected resource
resourceType
- the value to setpublic Problem.Builder labels(List<String> labels)
User-defined labels on the problem
labels
- the value to setpublic Problem.Builder timeLastDetected(Date timeLastDetected)
The date and time the problem was last detected. Format defined by RFC3339.
timeLastDetected
- the value to setpublic Problem.Builder timeFirstDetected(Date timeFirstDetected)
The date and time the problem was first detected. Format defined by RFC3339.
timeFirstDetected
- the value to setpublic Problem.Builder lifecycleState(ProblemLifecycleState lifecycleState)
The current lifecycle state of the problem
lifecycleState
- the value to setpublic Problem.Builder lifecycleDetail(ProblemLifecycleDetail lifecycleDetail)
Additional details on the substate of the lifecycle state
lifecycleDetail
- the value to setpublic Problem.Builder detectorId(DetectorEnum detectorId)
Unique identifier of the detector rule that triggered the problem
detectorId
- the value to setpublic Problem.Builder targetId(String targetId)
Unique identifier of the target associated with the problem
targetId
- the value to setpublic Problem.Builder additionalDetails(Map<String,String> additionalDetails)
The additional details of the problem
additionalDetails
- the value to setpublic Problem.Builder description(String description)
Description of the problem
description
- the value to setpublic Problem.Builder recommendation(String recommendation)
Recommendation for the problem
recommendation
- the value to setpublic Problem.Builder comment(String comment)
User comments on the problem
comment
- the value to setpublic Problem.Builder impactedResourceId(String impactedResourceId)
Unique identifier of the resource impacted by the problem
impactedResourceId
- the value to setpublic Problem.Builder impactedResourceName(String impactedResourceName)
Display name of the impacted resource
impactedResourceName
- the value to setpublic Problem.Builder impactedResourceType(String impactedResourceType)
Type of the impacted resource
impactedResourceType
- the value to setpublic Problem.Builder locks(List<ResourceLock> locks)
Locks associated with this resource.
locks
- the value to setpublic Problem build()
public Problem.Builder copy(Problem model)
Copyright © 2016–2024. All rights reserved.