Class HistorySummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public HistorySummary.Builder id​(String id)
        The unique OCID associated with the recommendation history.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • name

        public HistorySummary.Builder name​(String name)
        The name assigned to the resource.
        Parameters:
        name - the value to set
        Returns:
        this builder
      • resourceType

        public HistorySummary.Builder resourceType​(String resourceType)
        The kind of resource.
        Parameters:
        resourceType - the value to set
        Returns:
        this builder
      • categoryId

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

        public HistorySummary.Builder recommendationId​(String recommendationId)
        The unique OCID associated with the recommendation.
        Parameters:
        recommendationId - the value to set
        Returns:
        this builder
      • recommendationName

        public HistorySummary.Builder recommendationName​(String recommendationName)
        The name assigned to the recommendation.
        Parameters:
        recommendationName - the value to set
        Returns:
        this builder
      • resourceId

        public HistorySummary.Builder resourceId​(String resourceId)
        The unique OCID associated with the resource.
        Parameters:
        resourceId - the value to set
        Returns:
        this builder
      • resourceActionId

        public HistorySummary.Builder resourceActionId​(String resourceActionId)
        The unique OCID associated with the resource action.
        Parameters:
        resourceActionId - the value to set
        Returns:
        this builder
      • compartmentId

        public HistorySummary.Builder compartmentId​(String compartmentId)
        The OCID of the compartment.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • compartmentName

        public HistorySummary.Builder compartmentName​(String compartmentName)
        The name assigned to the compartment.
        Parameters:
        compartmentName - the value to set
        Returns:
        this builder
      • lifecycleState

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

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

        public HistorySummary.Builder status​(Status status)
        The current status of the resource action.
        Parameters:
        status - the value to set
        Returns:
        this builder
      • metadata

        public HistorySummary.Builder metadata​(Map<String,​String> metadata)
        Custom metadata key/value pairs for the resource action.

        *Metadata Example**

        "metadata" : { "cpuRecommendedShape": "VM.Standard1.1", "computeMemoryUtilization": "26.05734124418388", "currentShape": "VM.Standard1.2", "instanceRecommendedShape": "VM.Standard1.1", "computeCpuUtilization": "7.930035319720132", "memoryRecommendedShape": "None" }

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

        public HistorySummary.Builder extendedMetadata​(Map<String,​Object> extendedMetadata)
        Additional metadata key/value pairs that you provide.

        They serve the same purpose and functionality as fields in the metadata object.

        They are distinguished from metadata fields in that these can be nested JSON objects (whereas metadata fields are string/string maps only).

        For example:

        {"CurrentShape": {"name":"VM.Standard2.16"}, "RecommendedShape": {"name":"VM.Standard2.8"}}

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

        public HistorySummary.Builder timeCreated​(Date timeCreated)
        The date and time the recommendation history was created, in the format defined by RFC3339.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder