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 Identifier where the resource is created
|
ProblemSummary.Builder |
copy(ProblemSummary model) |
ProblemSummary.Builder |
detectorId(DetectorEnum detectorId)
Id of detector associated with the Problem.
|
ProblemSummary.Builder |
detectorRuleId(String detectorRuleId)
Identifier of the rule
|
ProblemSummary.Builder |
id(String id)
Unique identifier that is immutable on creation
|
ProblemSummary.Builder |
labels(List<String> labels)
user defined labels on the problem
|
ProblemSummary.Builder |
lifecycleDetail(ProblemLifecycleDetail lifecycleDetail)
The lifecycleDetail will give more detail on the substate of the lifecycleState.
|
ProblemSummary.Builder |
lifecycleState(ProblemLifecycleState lifecycleState)
The current state of the Problem.
|
ProblemSummary.Builder |
region(String region)
DEPRECATED
|
ProblemSummary.Builder |
regions(List<String> regions)
Regions where the problem is found
|
ProblemSummary.Builder |
resourceId(String resourceId)
Identifier of the Resource
|
ProblemSummary.Builder |
resourceName(String resourceName)
DisplayName of the Resource
|
ProblemSummary.Builder |
resourceType(String resourceType)
Type of the Resource
|
ProblemSummary.Builder |
riskLevel(RiskLevel riskLevel)
The Risk Level
|
ProblemSummary.Builder |
riskScore(Double riskScore)
Risk Score for the problem
|
ProblemSummary.Builder |
targetId(String targetId)
targetId 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 is immutable on creation
id
- the value to setpublic ProblemSummary.Builder compartmentId(String compartmentId)
Compartment Identifier where the resource is created
compartmentId
- the value to setpublic ProblemSummary.Builder detectorRuleId(String detectorRuleId)
Identifier of the rule
detectorRuleId
- the value to setpublic ProblemSummary.Builder riskLevel(RiskLevel riskLevel)
The Risk Level
riskLevel
- the value to setpublic ProblemSummary.Builder riskScore(Double riskScore)
Risk Score for the problem
riskScore
- the value to setpublic ProblemSummary.Builder resourceId(String resourceId)
Identifier of the Resource
resourceId
- the value to setpublic ProblemSummary.Builder resourceName(String resourceName)
DisplayName of the Resource
resourceName
- the value to setpublic ProblemSummary.Builder resourceType(String resourceType)
Type of the Resource
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 state of the Problem.
lifecycleState
- the value to setpublic ProblemSummary.Builder lifecycleDetail(ProblemLifecycleDetail lifecycleDetail)
The lifecycleDetail will give more detail on the substate of the lifecycleState.
lifecycleDetail
- the value to setpublic ProblemSummary.Builder detectorId(DetectorEnum detectorId)
Id of 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)
Regions where the problem is found
regions
- the value to setpublic ProblemSummary.Builder targetId(String targetId)
targetId associated with the problem.
targetId
- the value to setpublic ProblemSummary build()
public ProblemSummary.Builder copy(ProblemSummary model)
Copyright © 2016–2023. All rights reserved.