Package com.oracle.bmc.cloudguard.model
Class ProblemSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudguard.model.ProblemSummary.Builder
-
- Enclosing class:
- ProblemSummary
public static class ProblemSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProblemSummarybuild()ProblemSummary.BuildercompartmentId(String compartmentId)Compartment OCID where the resource is createdProblemSummary.Buildercopy(ProblemSummary model)ProblemSummary.BuilderdetectorId(DetectorEnum detectorId)Unique identifier of the detector associated with the problemProblemSummary.BuilderdetectorRuleId(String detectorRuleId)Unique identifier of the detector ruleProblemSummary.Builderid(String id)Unique identifier that can’t be changed after creationProblemSummary.Builderlabels(List<String> labels)User-defined labels on the problemProblemSummary.BuilderlifecycleDetail(ProblemLifecycleDetail lifecycleDetail)Additional details on the substate of the lifecycle stateProblemSummary.BuilderlifecycleState(ProblemLifecycleState lifecycleState)The current lifecycle state of the problemProblemSummary.Builderlocks(List<ResourceLock> locks)Locks associated with this resource.ProblemSummary.Builderregion(String region)DEPRECATEDProblemSummary.Builderregions(List<String> regions)List of regions where the problem is foundProblemSummary.BuilderresourceId(String resourceId)Unique identifier of the resource that’s impacted by the problemProblemSummary.BuilderresourceName(String resourceName)Display name of the resource impacted by the problemProblemSummary.BuilderresourceType(String resourceType)Type of the resource impacted by the problemProblemSummary.BuilderriskLevel(RiskLevel riskLevel)The risk level of the problemProblemSummary.BuilderriskScore(Double riskScore)The risk score for the problemProblemSummary.BuildertargetId(String targetId)Unique target identifier associated with the problemProblemSummary.BuildertimeFirstDetected(Date timeFirstDetected)The date and time the problem was first detected.ProblemSummary.BuildertimeLastDetected(Date timeLastDetected)The date and time the problem was last detected.
-
-
-
Method Detail
-
id
public ProblemSummary.Builder id(String id)
Unique identifier that can’t be changed after creation- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public ProblemSummary.Builder compartmentId(String compartmentId)
Compartment OCID where the resource is created- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
detectorRuleId
public ProblemSummary.Builder detectorRuleId(String detectorRuleId)
Unique identifier of the detector rule- Parameters:
detectorRuleId- the value to set- Returns:
- this builder
-
riskLevel
public ProblemSummary.Builder riskLevel(RiskLevel riskLevel)
The risk level of the problem- Parameters:
riskLevel- the value to set- Returns:
- this builder
-
riskScore
public ProblemSummary.Builder riskScore(Double riskScore)
The risk score for the problem- Parameters:
riskScore- the value to set- Returns:
- this builder
-
resourceId
public ProblemSummary.Builder resourceId(String resourceId)
Unique identifier of the resource that’s impacted by the problem- Parameters:
resourceId- the value to set- Returns:
- this builder
-
resourceName
public ProblemSummary.Builder resourceName(String resourceName)
Display name of the resource impacted by the problem- Parameters:
resourceName- the value to set- Returns:
- this builder
-
resourceType
public ProblemSummary.Builder resourceType(String resourceType)
Type of the resource impacted by the problem- Parameters:
resourceType- the value to set- Returns:
- this builder
-
labels
public ProblemSummary.Builder labels(List<String> labels)
User-defined labels on the problem- Parameters:
labels- the value to set- Returns:
- this builder
-
timeFirstDetected
public ProblemSummary.Builder timeFirstDetected(Date timeFirstDetected)
The date and time the problem was first detected.Format defined by RFC3339.
- Parameters:
timeFirstDetected- the value to set- Returns:
- this builder
-
timeLastDetected
public ProblemSummary.Builder timeLastDetected(Date timeLastDetected)
The date and time the problem was last detected.Format defined by RFC3339.
- Parameters:
timeLastDetected- the value to set- Returns:
- this builder
-
lifecycleState
public ProblemSummary.Builder lifecycleState(ProblemLifecycleState lifecycleState)
The current lifecycle state of the problem- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetail
public ProblemSummary.Builder lifecycleDetail(ProblemLifecycleDetail lifecycleDetail)
Additional details on the substate of the lifecycle state- Parameters:
lifecycleDetail- the value to set- Returns:
- this builder
-
detectorId
public ProblemSummary.Builder detectorId(DetectorEnum detectorId)
Unique identifier of the detector associated with the problem- Parameters:
detectorId- the value to set- Returns:
- this builder
-
region
public ProblemSummary.Builder region(String region)
DEPRECATED- Parameters:
region- the value to set- Returns:
- this builder
-
regions
public ProblemSummary.Builder regions(List<String> regions)
List of regions where the problem is found- Parameters:
regions- the value to set- Returns:
- this builder
-
targetId
public ProblemSummary.Builder targetId(String targetId)
Unique target identifier associated with the problem- Parameters:
targetId- the value to set- Returns:
- this builder
-
locks
public ProblemSummary.Builder locks(List<ResourceLock> locks)
Locks associated with this resource.- Parameters:
locks- the value to set- Returns:
- this builder
-
build
public ProblemSummary build()
-
copy
public ProblemSummary.Builder copy(ProblemSummary model)
-
-