Class RecommendationSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

        public RecommendationSummary.Builder compartmentId​(String compartmentId)
        The OCID of the tenancy.

        The tenancy is the root compartment.

        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • categoryId

        public RecommendationSummary.Builder categoryId​(String categoryId)
        The unique OCID associated with the category.
        Parameters:
        categoryId - the value to set
        Returns:
        this builder
      • description

        public RecommendationSummary.Builder description​(String description)
        Text describing the recommendation.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • importance

        public RecommendationSummary.Builder importance​(Importance importance)
        The level of importance assigned to the recommendation.
        Parameters:
        importance - the value to set
        Returns:
        this builder
      • resourceCounts

        public RecommendationSummary.Builder resourceCounts​(List<ResourceCount> resourceCounts)
        An array of ResourceCount objects grouped by the status of the resource actions.
        Parameters:
        resourceCounts - the value to set
        Returns:
        this builder
      • estimatedCostSaving

        public RecommendationSummary.Builder estimatedCostSaving​(Double estimatedCostSaving)
        The estimated cost savings, in dollars, for the recommendation.
        Parameters:
        estimatedCostSaving - the value to set
        Returns:
        this builder
      • status

        public RecommendationSummary.Builder status​(Status status)
        The current status of the recommendation.
        Parameters:
        status - the value to set
        Returns:
        this builder
      • timeStatusBegin

        public RecommendationSummary.Builder timeStatusBegin​(Date timeStatusBegin)
        The date and time that the recommendation entered its current status.

        The format is defined by RFC3339.

        For example, "The status of the recommendation changed from pending to current(ignored) on this date and time."

        Parameters:
        timeStatusBegin - the value to set
        Returns:
        this builder
      • timeStatusEnd

        public RecommendationSummary.Builder timeStatusEnd​(Date timeStatusEnd)
        The date and time the current status will change.

        The format is defined by RFC3339.

        For example, "The current postponed status of the recommendation will end and change to pending on this date and time."

        Parameters:
        timeStatusEnd - the value to set
        Returns:
        this builder
      • timeCreated

        public RecommendationSummary.Builder timeCreated​(Date timeCreated)
        The date and time the recommendation details were created, in the format defined by RFC3339.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public RecommendationSummary.Builder timeUpdated​(Date timeUpdated)
        The date and time the recommendation details were last updated, in the format defined by RFC3339.
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • extendedMetadata

        public RecommendationSummary.Builder extendedMetadata​(Map<String,​String> extendedMetadata)
        Additional metadata key/value pairs for the recommendation summary.

        For example:

        {"EstimatedSaving": "200"}

        Parameters:
        extendedMetadata - the value to set
        Returns:
        this builder