public static class HistorySummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HistorySummary.Builder |
action(Action action) |
HistorySummary |
build() |
HistorySummary.Builder |
categoryId(String categoryId)
The unique OCID associated with the category.
|
HistorySummary.Builder |
compartmentId(String compartmentId)
The OCID of the compartment.
|
HistorySummary.Builder |
compartmentName(String compartmentName)
The name assigned to the compartment.
|
HistorySummary.Builder |
copy(HistorySummary model) |
HistorySummary.Builder |
estimatedCostSaving(Double estimatedCostSaving)
The estimated cost savings, in dollars, for the resource action.
|
HistorySummary.Builder |
extendedMetadata(Map<String,Object> extendedMetadata)
Additional metadata key/value pairs that you provide.
|
HistorySummary.Builder |
id(String id)
The unique OCID associated with the recommendation history.
|
HistorySummary.Builder |
lifecycleState(LifecycleState lifecycleState)
The recommendation history’s current state.
|
HistorySummary.Builder |
metadata(Map<String,String> metadata)
Custom metadata key/value pairs for the resource action.
|
HistorySummary.Builder |
name(String name)
The name assigned to the resource.
|
HistorySummary.Builder |
recommendationId(String recommendationId)
The unique OCID associated with the recommendation.
|
HistorySummary.Builder |
recommendationName(String recommendationName)
The name assigned to the recommendation.
|
HistorySummary.Builder |
resourceActionId(String resourceActionId)
The unique OCID associated with the resource action.
|
HistorySummary.Builder |
resourceId(String resourceId)
The unique OCID associated with the resource.
|
HistorySummary.Builder |
resourceType(String resourceType)
The kind of resource.
|
HistorySummary.Builder |
status(Status status)
The current status of the resource action.
|
HistorySummary.Builder |
timeCreated(Date timeCreated)
The date and time the recommendation history was created, in the format defined by
RFC3339.
|
public HistorySummary.Builder id(String id)
The unique OCID associated with the recommendation history.
id
- the value to setpublic HistorySummary.Builder name(String name)
The name assigned to the resource.
name
- the value to setpublic HistorySummary.Builder resourceType(String resourceType)
The kind of resource.
resourceType
- the value to setpublic HistorySummary.Builder categoryId(String categoryId)
The unique OCID associated with the category.
categoryId
- the value to setpublic HistorySummary.Builder recommendationId(String recommendationId)
The unique OCID associated with the recommendation.
recommendationId
- the value to setpublic HistorySummary.Builder recommendationName(String recommendationName)
The name assigned to the recommendation.
recommendationName
- the value to setpublic HistorySummary.Builder resourceId(String resourceId)
The unique OCID associated with the resource.
resourceId
- the value to setpublic HistorySummary.Builder resourceActionId(String resourceActionId)
The unique OCID associated with the resource action.
resourceActionId
- the value to setpublic HistorySummary.Builder action(Action action)
public HistorySummary.Builder compartmentId(String compartmentId)
The OCID of the compartment.
compartmentId
- the value to setpublic HistorySummary.Builder compartmentName(String compartmentName)
The name assigned to the compartment.
compartmentName
- the value to setpublic HistorySummary.Builder lifecycleState(LifecycleState lifecycleState)
The recommendation history’s current state.
lifecycleState
- the value to setpublic HistorySummary.Builder estimatedCostSaving(Double estimatedCostSaving)
The estimated cost savings, in dollars, for the resource action.
estimatedCostSaving
- the value to setpublic HistorySummary.Builder status(Status status)
The current status of the resource action.
status
- the value to setpublic 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" }
metadata
- the value to setpublic 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"}}
extendedMetadata
- the value to setpublic HistorySummary.Builder timeCreated(Date timeCreated)
The date and time the recommendation history was created, in the format defined by RFC3339.
timeCreated
- the value to setpublic HistorySummary build()
public HistorySummary.Builder copy(HistorySummary model)
Copyright © 2016–2024. All rights reserved.