Package com.oracle.bmc.cloudguard.model
Class Problem.Builder
- java.lang.Object
- 
- com.oracle.bmc.cloudguard.model.Problem.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Problem.BuilderadditionalDetails(Map<String,String> additionalDetails)The additional details of the problemProblem.BuilderautoResolveDate(String autoResolveDate)The date and time when the problem will be auto resolved.Problembuild()Problem.Buildercomment(String comment)User comments on the problemProblem.BuildercompartmentId(String compartmentId)Compartment OCID where the resource is createdProblem.Buildercopy(Problem model)Problem.Builderdescription(String description)Description of the problemProblem.BuilderdetectorId(DetectorEnum detectorId)Unique identifier of the detector rule that triggered the problemProblem.BuilderdetectorRuleId(String detectorRuleId)Unique identifier of the detector rule that triggered the problemProblem.Builderid(String id)Unique identifier that can’t be changed after creationProblem.BuilderimpactedResourceId(String impactedResourceId)Unique identifier of the resource impacted by the problemProblem.BuilderimpactedResourceName(String impactedResourceName)Display name of the impacted resourceProblem.BuilderimpactedResourceType(String impactedResourceType)Type of the impacted resourceProblem.Builderlabels(List<String> labels)User-defined labels on the problemProblem.BuilderlifecycleDetail(ProblemLifecycleDetail lifecycleDetail)Additional details on the substate of the lifecycle stateProblem.BuilderlifecycleState(ProblemLifecycleState lifecycleState)The current lifecycle state of the problemProblem.Builderlocks(List<ResourceLock> locks)Locks associated with this resource.Problem.BuilderpeakRiskScore(Double peakRiskScore)Peak risk score for the problemProblem.BuilderpeakRiskScoreDate(String peakRiskScoreDate)The date and time for the peak risk score that is observed for the problem.Problem.BuilderpeakRiskScoreLookupPeriodInDays(Integer peakRiskScoreLookupPeriodInDays)Number of days for which peak score is calculated for the problemProblem.Builderrecommendation(String recommendation)Recommendation for the problemProblem.Builderregion(String region)DEPRECATEDProblem.Builderregions(List<String> regions)Regions where the problem is foundProblem.BuilderresourceId(String resourceId)Unique identifier of the resource affected by the problemProblem.BuilderresourceName(String resourceName)Display name of the affected resourceProblem.BuilderresourceType(String resourceType)Type of the affected resourceProblem.BuilderriskLevel(RiskLevel riskLevel)The risk level for the problemProblem.BuilderriskScore(Double riskScore)The risk score for the problemProblem.BuildertargetId(String targetId)Unique identifier of the target associated with the problemProblem.BuildertimeFirstDetected(Date timeFirstDetected)The date and time the problem was first detected.Problem.BuildertimeLastDetected(Date timeLastDetected)The date and time the problem was last detected.
 
- 
- 
- 
Method Detail- 
idpublic Problem.Builder id(String id) Unique identifier that can’t be changed after creation- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic Problem.Builder compartmentId(String compartmentId) Compartment OCID where the resource is created- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
detectorRuleIdpublic Problem.Builder detectorRuleId(String detectorRuleId) Unique identifier of the detector rule that triggered the problem- Parameters:
- detectorRuleId- the value to set
- Returns:
- this builder
 
 - 
regionpublic Problem.Builder region(String region) DEPRECATED- Parameters:
- region- the value to set
- Returns:
- this builder
 
 - 
regionspublic Problem.Builder regions(List<String> regions) Regions where the problem is found- Parameters:
- regions- the value to set
- Returns:
- this builder
 
 - 
riskLevelpublic Problem.Builder riskLevel(RiskLevel riskLevel) The risk level for the problem- Parameters:
- riskLevel- the value to set
- Returns:
- this builder
 
 - 
riskScorepublic Problem.Builder riskScore(Double riskScore) The risk score for the problem- Parameters:
- riskScore- the value to set
- Returns:
- this builder
 
 - 
peakRiskScoreDatepublic Problem.Builder peakRiskScoreDate(String peakRiskScoreDate) The date and time for the peak risk score that is observed for the problem.Format defined by RFC3339. - Parameters:
- peakRiskScoreDate- the value to set
- Returns:
- this builder
 
 - 
peakRiskScorepublic Problem.Builder peakRiskScore(Double peakRiskScore) Peak risk score for the problem- Parameters:
- peakRiskScore- the value to set
- Returns:
- this builder
 
 - 
autoResolveDatepublic Problem.Builder autoResolveDate(String autoResolveDate) The date and time when the problem will be auto resolved.Format defined by RFC3339. - Parameters:
- autoResolveDate- the value to set
- Returns:
- this builder
 
 - 
peakRiskScoreLookupPeriodInDayspublic Problem.Builder peakRiskScoreLookupPeriodInDays(Integer peakRiskScoreLookupPeriodInDays) Number of days for which peak score is calculated for the problem- Parameters:
- peakRiskScoreLookupPeriodInDays- the value to set
- Returns:
- this builder
 
 - 
resourceIdpublic Problem.Builder resourceId(String resourceId) Unique identifier of the resource affected by the problem- Parameters:
- resourceId- the value to set
- Returns:
- this builder
 
 - 
resourceNamepublic Problem.Builder resourceName(String resourceName) Display name of the affected resource- Parameters:
- resourceName- the value to set
- Returns:
- this builder
 
 - 
resourceTypepublic Problem.Builder resourceType(String resourceType) Type of the affected resource- Parameters:
- resourceType- the value to set
- Returns:
- this builder
 
 - 
labelspublic Problem.Builder labels(List<String> labels) User-defined labels on the problem- Parameters:
- labels- the value to set
- Returns:
- this builder
 
 - 
timeLastDetectedpublic Problem.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
 
 - 
timeFirstDetectedpublic Problem.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
 
 - 
lifecycleStatepublic Problem.Builder lifecycleState(ProblemLifecycleState lifecycleState) The current lifecycle state of the problem- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailpublic Problem.Builder lifecycleDetail(ProblemLifecycleDetail lifecycleDetail) Additional details on the substate of the lifecycle state- Parameters:
- lifecycleDetail- the value to set
- Returns:
- this builder
 
 - 
detectorIdpublic Problem.Builder detectorId(DetectorEnum detectorId) Unique identifier of the detector rule that triggered the problem- Parameters:
- detectorId- the value to set
- Returns:
- this builder
 
 - 
targetIdpublic Problem.Builder targetId(String targetId) Unique identifier of the target associated with the problem- Parameters:
- targetId- the value to set
- Returns:
- this builder
 
 - 
additionalDetailspublic Problem.Builder additionalDetails(Map<String,String> additionalDetails) The additional details of the problem- Parameters:
- additionalDetails- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic Problem.Builder description(String description) Description of the problem- Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
recommendationpublic Problem.Builder recommendation(String recommendation) Recommendation for the problem- Parameters:
- recommendation- the value to set
- Returns:
- this builder
 
 - 
commentpublic Problem.Builder comment(String comment) User comments on the problem- Parameters:
- comment- the value to set
- Returns:
- this builder
 
 - 
impactedResourceIdpublic Problem.Builder impactedResourceId(String impactedResourceId) Unique identifier of the resource impacted by the problem- Parameters:
- impactedResourceId- the value to set
- Returns:
- this builder
 
 - 
impactedResourceNamepublic Problem.Builder impactedResourceName(String impactedResourceName) Display name of the impacted resource- Parameters:
- impactedResourceName- the value to set
- Returns:
- this builder
 
 - 
impactedResourceTypepublic Problem.Builder impactedResourceType(String impactedResourceType) Type of the impacted resource- Parameters:
- impactedResourceType- the value to set
- Returns:
- this builder
 
 - 
lockspublic Problem.Builder locks(List<ResourceLock> locks) Locks associated with this resource.- Parameters:
- locks- the value to set
- Returns:
- this builder
 
 - 
buildpublic Problem build() 
 - 
copypublic Problem.Builder copy(Problem model) 
 
- 
 
-