Class ProblemSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • 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
      • 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