Package com.oracle.bmc.optimizer.model
Class BulkApplyResourceAction.Builder
- java.lang.Object
-
- com.oracle.bmc.optimizer.model.BulkApplyResourceAction.Builder
-
- Enclosing class:
- BulkApplyResourceAction
public static class BulkApplyResourceAction.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BulkApplyResourceAction
build()
BulkApplyResourceAction.Builder
copy(BulkApplyResourceAction model)
BulkApplyResourceAction.Builder
parameters(Map<String,Object> parameters)
Additional parameter key-value pairs defining the resource action.BulkApplyResourceAction.Builder
resourceActionId(String resourceActionId)
The unique OCIDs of the resource actions that recommendations are applied to.BulkApplyResourceAction.Builder
status(Status status)
The current status of the recommendation.BulkApplyResourceAction.Builder
strategyName(String strategyName)
The name of the strategy.BulkApplyResourceAction.Builder
timeStatusEnd(Date timeStatusEnd)
The date and time the current status will change.
-
-
-
Method Detail
-
resourceActionId
public BulkApplyResourceAction.Builder resourceActionId(String resourceActionId)
The unique OCIDs of the resource actions that recommendations are applied to.- Parameters:
resourceActionId
- the value to set- Returns:
- this builder
-
status
public BulkApplyResourceAction.Builder status(Status status)
The current status of the recommendation.- Parameters:
status
- the value to set- Returns:
- this builder
-
timeStatusEnd
public BulkApplyResourceAction.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
-
parameters
public BulkApplyResourceAction.Builder parameters(Map<String,Object> parameters)
Additional parameter key-value pairs defining the resource action.For example:
{"timeAmount": 15, "timeUnit": "seconds"}
- Parameters:
parameters
- the value to set- Returns:
- this builder
-
strategyName
public BulkApplyResourceAction.Builder strategyName(String strategyName)
The name of the strategy.- Parameters:
strategyName
- the value to set- Returns:
- this builder
-
build
public BulkApplyResourceAction build()
-
copy
public BulkApplyResourceAction.Builder copy(BulkApplyResourceAction model)
-
-