Class Problem.Builder

  • Enclosing class:
    Problem

    public static class Problem.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Problem.Builder id​(String id)
        Unique identifier that can’t be changed after creation
        Parameters:
        id - the value to set
        Returns:
        this builder
      • compartmentId

        public Problem.Builder compartmentId​(String compartmentId)
        Compartment OCID where the resource is created
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • detectorRuleId

        public Problem.Builder detectorRuleId​(String detectorRuleId)
        Unique identifier of the detector rule that triggered the problem
        Parameters:
        detectorRuleId - the value to set
        Returns:
        this builder
      • region

        public Problem.Builder region​(String region)
        DEPRECATED
        Parameters:
        region - the value to set
        Returns:
        this builder
      • regions

        public Problem.Builder regions​(List<String> regions)
        Regions where the problem is found
        Parameters:
        regions - the value to set
        Returns:
        this builder
      • riskLevel

        public Problem.Builder riskLevel​(RiskLevel riskLevel)
        The risk level for the problem
        Parameters:
        riskLevel - the value to set
        Returns:
        this builder
      • riskScore

        public Problem.Builder riskScore​(Double riskScore)
        The risk score for the problem
        Parameters:
        riskScore - the value to set
        Returns:
        this builder
      • peakRiskScoreDate

        public 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
      • peakRiskScore

        public Problem.Builder peakRiskScore​(Double peakRiskScore)
        Peak risk score for the problem
        Parameters:
        peakRiskScore - the value to set
        Returns:
        this builder
      • autoResolveDate

        public 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
      • peakRiskScoreLookupPeriodInDays

        public 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
      • resourceId

        public Problem.Builder resourceId​(String resourceId)
        Unique identifier of the resource affected by the problem
        Parameters:
        resourceId - the value to set
        Returns:
        this builder
      • resourceName

        public Problem.Builder resourceName​(String resourceName)
        Display name of the affected resource
        Parameters:
        resourceName - the value to set
        Returns:
        this builder
      • resourceType

        public Problem.Builder resourceType​(String resourceType)
        Type of the affected resource
        Parameters:
        resourceType - the value to set
        Returns:
        this builder
      • labels

        public Problem.Builder labels​(List<String> labels)
        User-defined labels on the problem
        Parameters:
        labels - the value to set
        Returns:
        this builder
      • timeLastDetected

        public 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
      • timeFirstDetected

        public 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
      • lifecycleState

        public Problem.Builder lifecycleState​(ProblemLifecycleState lifecycleState)
        The current lifecycle state of the problem
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleDetail

        public Problem.Builder lifecycleDetail​(ProblemLifecycleDetail lifecycleDetail)
        Additional details on the substate of the lifecycle state
        Parameters:
        lifecycleDetail - the value to set
        Returns:
        this builder
      • detectorId

        public Problem.Builder detectorId​(DetectorEnum detectorId)
        Unique identifier of the detector rule that triggered the problem
        Parameters:
        detectorId - the value to set
        Returns:
        this builder
      • targetId

        public Problem.Builder targetId​(String targetId)
        Unique identifier of the target associated with the problem
        Parameters:
        targetId - the value to set
        Returns:
        this builder
      • additionalDetails

        public Problem.Builder additionalDetails​(Map<String,​String> additionalDetails)
        The additional details of the problem
        Parameters:
        additionalDetails - the value to set
        Returns:
        this builder
      • description

        public Problem.Builder description​(String description)
        Description of the problem
        Parameters:
        description - the value to set
        Returns:
        this builder
      • recommendation

        public Problem.Builder recommendation​(String recommendation)
        Recommendation for the problem
        Parameters:
        recommendation - the value to set
        Returns:
        this builder
      • comment

        public Problem.Builder comment​(String comment)
        User comments on the problem
        Parameters:
        comment - the value to set
        Returns:
        this builder
      • impactedResourceId

        public Problem.Builder impactedResourceId​(String impactedResourceId)
        Unique identifier of the resource impacted by the problem
        Parameters:
        impactedResourceId - the value to set
        Returns:
        this builder
      • impactedResourceName

        public Problem.Builder impactedResourceName​(String impactedResourceName)
        Display name of the impacted resource
        Parameters:
        impactedResourceName - the value to set
        Returns:
        this builder
      • impactedResourceType

        public Problem.Builder impactedResourceType​(String impactedResourceType)
        Type of the impacted resource
        Parameters:
        impactedResourceType - the value to set
        Returns:
        this builder
      • locks

        public Problem.Builder locks​(List<ResourceLock> locks)
        Locks associated with this resource.
        Parameters:
        locks - the value to set
        Returns:
        this builder