Class ResourceActionSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • categoryId

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

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

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

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

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

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

        public ResourceActionSummary.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 ResourceActionSummary.Builder status​(Status status)
        The current status of the resource action.
        Parameters:
        status - the value to set
        Returns:
        this builder
      • timeStatusBegin

        public ResourceActionSummary.Builder timeStatusBegin​(Date timeStatusBegin)
        The date and time that the resource action entered its current status.

        The format is defined by RFC3339.

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

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

        public ResourceActionSummary.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 resource action will end and change to pending on this date and time."

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

        public ResourceActionSummary.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 ResourceActionSummary.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 ResourceActionSummary.Builder timeCreated​(Date timeCreated)
        The date and time the resource action details were created, in the format defined by RFC3339.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

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