public static class ProblemSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ProblemSummary |
build() |
ProblemSummary.Builder |
compartmentId(String compartmentId)
Compartment OCID where the resource is created
|
ProblemSummary.Builder |
copy(ProblemSummary model) |
ProblemSummary.Builder |
detectorId(DetectorEnum detectorId)
Unique identifier of the detector associated with the problem
|
ProblemSummary.Builder |
detectorRuleId(String detectorRuleId)
Unique identifier of the detector rule
|
ProblemSummary.Builder |
id(String id)
Unique identifier that can’t be changed after creation
|
ProblemSummary.Builder |
labels(List<String> labels)
User-defined labels on the problem
|
ProblemSummary.Builder |
lifecycleDetail(ProblemLifecycleDetail lifecycleDetail)
Additional details on the substate of the lifecycle state
|
ProblemSummary.Builder |
lifecycleState(ProblemLifecycleState lifecycleState)
The current lifecycle state of the problem
|
ProblemSummary.Builder |
locks(List<ResourceLock> locks)
Locks associated with this resource.
|
ProblemSummary.Builder |
region(String region)
DEPRECATED
|
ProblemSummary.Builder |
regions(List<String> regions)
List of regions where the problem is found
|
ProblemSummary.Builder |
resourceId(String resourceId)
Unique identifier of the resource that’s impacted by the problem
|
ProblemSummary.Builder |
resourceName(String resourceName)
Display name of the resource impacted by the problem
|
ProblemSummary.Builder |
resourceType(String resourceType)
Type of the resource impacted by the problem
|
ProblemSummary.Builder |
riskLevel(RiskLevel riskLevel)
The risk level of the problem
|
ProblemSummary.Builder |
riskScore(Double riskScore)
The risk score for the problem
|
ProblemSummary.Builder |
targetId(String targetId)
Unique target identifier associated with the problem
|
ProblemSummary.Builder |
timeFirstDetected(Date timeFirstDetected)
The date and time the problem was first detected.
|
ProblemSummary.Builder |
timeLastDetected(Date timeLastDetected)
The date and time the problem was last detected.
|
public ProblemSummary.Builder id(String id)
Unique identifier that can’t be changed after creation
id
- the value to setpublic ProblemSummary.Builder compartmentId(String compartmentId)
Compartment OCID where the resource is created
compartmentId
- the value to setpublic ProblemSummary.Builder detectorRuleId(String detectorRuleId)
Unique identifier of the detector rule
detectorRuleId
- the value to setpublic ProblemSummary.Builder riskLevel(RiskLevel riskLevel)
The risk level of the problem
riskLevel
- the value to setpublic ProblemSummary.Builder riskScore(Double riskScore)
The risk score for the problem
riskScore
- the value to setpublic ProblemSummary.Builder resourceId(String resourceId)
Unique identifier of the resource that’s impacted by the problem
resourceId
- the value to setpublic ProblemSummary.Builder resourceName(String resourceName)
Display name of the resource impacted by the problem
resourceName
- the value to setpublic ProblemSummary.Builder resourceType(String resourceType)
Type of the resource impacted by the problem
resourceType
- the value to setpublic ProblemSummary.Builder labels(List<String> labels)
User-defined labels on the problem
labels
- the value to setpublic ProblemSummary.Builder timeFirstDetected(Date timeFirstDetected)
The date and time the problem was first detected. Format defined by RFC3339.
timeFirstDetected
- the value to setpublic ProblemSummary.Builder timeLastDetected(Date timeLastDetected)
The date and time the problem was last detected. Format defined by RFC3339.
timeLastDetected
- the value to setpublic ProblemSummary.Builder lifecycleState(ProblemLifecycleState lifecycleState)
The current lifecycle state of the problem
lifecycleState
- the value to setpublic ProblemSummary.Builder lifecycleDetail(ProblemLifecycleDetail lifecycleDetail)
Additional details on the substate of the lifecycle state
lifecycleDetail
- the value to setpublic ProblemSummary.Builder detectorId(DetectorEnum detectorId)
Unique identifier of the detector associated with the problem
detectorId
- the value to setpublic ProblemSummary.Builder region(String region)
DEPRECATED
region
- the value to setpublic ProblemSummary.Builder regions(List<String> regions)
List of regions where the problem is found
regions
- the value to setpublic ProblemSummary.Builder targetId(String targetId)
Unique target identifier associated with the problem
targetId
- the value to setpublic ProblemSummary.Builder locks(List<ResourceLock> locks)
Locks associated with this resource.
locks
- the value to setpublic ProblemSummary build()
public ProblemSummary.Builder copy(ProblemSummary model)
Copyright © 2016–2024. All rights reserved.