Class CategorySummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

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

        The tenancy is the root compartment.

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

        public CategorySummary.Builder compartmentName​(String compartmentName)
        The name associated with the compartment.
        Parameters:
        compartmentName - the value to set
        Returns:
        this builder
      • name

        public CategorySummary.Builder name​(String name)
        The name assigned to the category.
        Parameters:
        name - the value to set
        Returns:
        this builder
      • description

        public CategorySummary.Builder description​(String description)
        Text describing the category.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • recommendationCounts

        public CategorySummary.Builder recommendationCounts​(List<RecommendationCount> recommendationCounts)
        An array of RecommendationCount objects grouped by the level of importance assigned to each recommendation.
        Parameters:
        recommendationCounts - the value to set
        Returns:
        this builder
      • resourceCounts

        public CategorySummary.Builder resourceCounts​(List<ResourceCount> resourceCounts)
        An array of ResourceCount objects grouped by the status of each recommendation.
        Parameters:
        resourceCounts - the value to set
        Returns:
        this builder
      • lifecycleState

        public CategorySummary.Builder lifecycleState​(LifecycleState lifecycleState)
        The category’s current state.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • estimatedCostSaving

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

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

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

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

        For example:

        {"EstimatedSaving": "200"}

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