Package com.oracle.bmc.database.model
Class ExecutionAction.Builder
- java.lang.Object
-
- com.oracle.bmc.database.model.ExecutionAction.Builder
-
- Enclosing class:
- ExecutionAction
public static class ExecutionAction.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionAction.BuilderactionMembers(List<ExecutionActionMember> actionMembers)List of action members of this execution action.ExecutionAction.BuilderactionParams(Map<String,String> actionParams)Map<ParamName, ParamValue> where a key value pair describes the specific action parameter.ExecutionAction.BuilderactionType(ExecutionAction.ActionType actionType)The action type of the execution action being performedExecutionActionbuild()ExecutionAction.BuildercompartmentId(String compartmentId)The OCID of the compartment.ExecutionAction.Buildercopy(ExecutionAction model)ExecutionAction.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ExecutionAction.Builderdescription(String description)Description of the execution action.ExecutionAction.BuilderdisplayName(String displayName)The user-friendly name for the execution action.ExecutionAction.BuilderestimatedTimeInMins(Integer estimatedTimeInMins)The estimated time of the execution action in minutes.ExecutionAction.BuilderexecutionActionOrder(Integer executionActionOrder)The priority order of the execution action.ExecutionAction.BuilderexecutionWindowId(String executionWindowId)The OCID of the execution window resource the execution action belongs to.ExecutionAction.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.ExecutionAction.Builderid(String id)The OCID of the execution action.ExecutionAction.BuilderlifecycleDetails(String lifecycleDetails)Additional information about the current lifecycle state.ExecutionAction.BuilderlifecycleState(ExecutionAction.LifecycleState lifecycleState)The current state of the execution action.ExecutionAction.BuilderlifecycleSubstate(ExecutionAction.LifecycleSubstate lifecycleSubstate)The current sub-state of the execution action.ExecutionAction.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.ExecutionAction.BuildertimeCreated(Date timeCreated)The date and time the execution action was created.ExecutionAction.BuildertimeUpdated(Date timeUpdated)The last date and time that the execution action was updated.ExecutionAction.BuildertotalTimeTakenInMins(Integer totalTimeTakenInMins)The total time taken by corresponding resource activity in minutes.
-
-
-
Method Detail
-
id
public ExecutionAction.Builder id(String id)
The OCID of the execution action.- Parameters:
id- the value to set- Returns:
- this builder
-
executionWindowId
public ExecutionAction.Builder executionWindowId(String executionWindowId)
The OCID of the execution window resource the execution action belongs to.- Parameters:
executionWindowId- the value to set- Returns:
- this builder
-
compartmentId
public ExecutionAction.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
displayName
public ExecutionAction.Builder displayName(String displayName)
The user-friendly name for the execution action.The name does not need to be unique.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public ExecutionAction.Builder description(String description)
Description of the execution action.- Parameters:
description- the value to set- Returns:
- this builder
-
lifecycleState
public ExecutionAction.Builder lifecycleState(ExecutionAction.LifecycleState lifecycleState)
The current state of the execution action.Valid states are SCHEDULED, IN_PROGRESS, FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS.
- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleSubstate
public ExecutionAction.Builder lifecycleSubstate(ExecutionAction.LifecycleSubstate lifecycleSubstate)
The current sub-state of the execution action.Valid states are DURATION_EXCEEDED, MAINTENANCE_IN_PROGRESS and WAITING.
- Parameters:
lifecycleSubstate- the value to set- Returns:
- this builder
-
lifecycleDetails
public ExecutionAction.Builder lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
timeCreated
public ExecutionAction.Builder timeCreated(Date timeCreated)
The date and time the execution action was created.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public ExecutionAction.Builder timeUpdated(Date timeUpdated)
The last date and time that the execution action was updated.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
estimatedTimeInMins
public ExecutionAction.Builder estimatedTimeInMins(Integer estimatedTimeInMins)
The estimated time of the execution action in minutes.- Parameters:
estimatedTimeInMins- the value to set- Returns:
- this builder
-
totalTimeTakenInMins
public ExecutionAction.Builder totalTimeTakenInMins(Integer totalTimeTakenInMins)
The total time taken by corresponding resource activity in minutes.- Parameters:
totalTimeTakenInMins- the value to set- Returns:
- this builder
-
executionActionOrder
public ExecutionAction.Builder executionActionOrder(Integer executionActionOrder)
The priority order of the execution action.- Parameters:
executionActionOrder- the value to set- Returns:
- this builder
-
actionType
public ExecutionAction.Builder actionType(ExecutionAction.ActionType actionType)
The action type of the execution action being performed- Parameters:
actionType- the value to set- Returns:
- this builder
-
actionParams
public ExecutionAction.Builder actionParams(Map<String,String> actionParams)
Map<ParamName, ParamValue> where a key value pair describes the specific action parameter.Example: {“count”: “3”}
- Parameters:
actionParams- the value to set- Returns:
- this builder
-
actionMembers
public ExecutionAction.Builder actionMembers(List<ExecutionActionMember> actionMembers)
List of action members of this execution action.- Parameters:
actionMembers- the value to set- Returns:
- this builder
-
freeformTags
public ExecutionAction.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public ExecutionAction.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
systemTags
public ExecutionAction.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public ExecutionAction build()
-
copy
public ExecutionAction.Builder copy(ExecutionAction model)
-
-