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