Class ResourceAction.Builder
- java.lang.Object
- 
- com.oracle.bmc.optimizer.model.ResourceAction.Builder
 
- 
- Enclosing class:
- ResourceAction
 
 public static class ResourceAction.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceAction.Builderaction(Action action)ResourceActionbuild()ResourceAction.BuildercategoryId(String categoryId)The unique OCID associated with the category.ResourceAction.BuildercompartmentId(String compartmentId)The OCID of the compartment.ResourceAction.BuildercompartmentName(String compartmentName)The name associated with the compartment.ResourceAction.Buildercopy(ResourceAction model)ResourceAction.BuilderestimatedCostSaving(Double estimatedCostSaving)The estimated cost savings, in dollars, for the resource action.ResourceAction.BuilderextendedMetadata(Map<String,Object> extendedMetadata)Additional metadata key/value pairs that you provide.ResourceAction.Builderid(String id)The unique OCID associated with the resource action.ResourceAction.BuilderlifecycleState(LifecycleState lifecycleState)The resource action’s current state.ResourceAction.Buildermetadata(Map<String,String> metadata)Custom metadata key/value pairs for the resource action.ResourceAction.Buildername(String name)The name assigned to the resource.ResourceAction.BuilderrecommendationId(String recommendationId)The unique OCID associated with the recommendation.ResourceAction.BuilderresourceId(String resourceId)The unique OCID associated with the resource.ResourceAction.BuilderresourceType(String resourceType)The kind of resource.ResourceAction.Builderstatus(Status status)The current status of the resource action.ResourceAction.BuildertimeCreated(Date timeCreated)The date and time the resource action details were created, in the format defined by RFC3339.ResourceAction.BuildertimeStatusBegin(Date timeStatusBegin)The date and time that the resource action entered its current status.ResourceAction.BuildertimeStatusEnd(Date timeStatusEnd)The date and time the current status will change.ResourceAction.BuildertimeUpdated(Date timeUpdated)The date and time the resource action details were last updated, in the format defined by RFC3339.
 
- 
- 
- 
Method Detail- 
idpublic ResourceAction.Builder id(String id) The unique OCID associated with the resource action.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
categoryIdpublic ResourceAction.Builder categoryId(String categoryId) The unique OCID associated with the category.- Parameters:
- categoryId- the value to set
- Returns:
- this builder
 
 - 
recommendationIdpublic ResourceAction.Builder recommendationId(String recommendationId) The unique OCID associated with the recommendation.- Parameters:
- recommendationId- the value to set
- Returns:
- this builder
 
 - 
resourceIdpublic ResourceAction.Builder resourceId(String resourceId) The unique OCID associated with the resource.- Parameters:
- resourceId- the value to set
- Returns:
- this builder
 
 - 
namepublic ResourceAction.Builder name(String name) The name assigned to the resource.- Parameters:
- name- the value to set
- Returns:
- this builder
 
 - 
resourceTypepublic ResourceAction.Builder resourceType(String resourceType) The kind of resource.- Parameters:
- resourceType- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic ResourceAction.Builder compartmentId(String compartmentId) The OCID of the compartment.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
compartmentNamepublic ResourceAction.Builder compartmentName(String compartmentName) The name associated with the compartment.- Parameters:
- compartmentName- the value to set
- Returns:
- this builder
 
 - 
actionpublic ResourceAction.Builder action(Action action) 
 - 
lifecycleStatepublic ResourceAction.Builder lifecycleState(LifecycleState lifecycleState) The resource action’s current state.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
estimatedCostSavingpublic ResourceAction.Builder estimatedCostSaving(Double estimatedCostSaving) The estimated cost savings, in dollars, for the resource action.- Parameters:
- estimatedCostSaving- the value to set
- Returns:
- this builder
 
 - 
statuspublic ResourceAction.Builder status(Status status) The current status of the resource action.- Parameters:
- status- the value to set
- Returns:
- this builder
 
 - 
timeStatusBeginpublic 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." - Parameters:
- timeStatusBegin- the value to set
- Returns:
- this builder
 
 - 
timeStatusEndpublic 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." - Parameters:
- timeStatusEnd- the value to set
- Returns:
- this builder
 
 - 
metadatapublic 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" } - Parameters:
- metadata- the value to set
- Returns:
- this builder
 
 - 
extendedMetadatapublic 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"}} - Parameters:
- extendedMetadata- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic ResourceAction.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
 
 - 
timeUpdatedpublic ResourceAction.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
 
 - 
buildpublic ResourceAction build() 
 - 
copypublic ResourceAction.Builder copy(ResourceAction model) 
 
- 
 
-