Package com.oracle.bmc.datacc.model
Class MaintenanceExecution.Builder
- java.lang.Object
-
- com.oracle.bmc.datacc.model.MaintenanceExecution.Builder
-
- Enclosing class:
- MaintenanceExecution
public static class MaintenanceExecution.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MaintenanceExecutionbuild()MaintenanceExecution.BuildercompartmentId(String compartmentId)The OCID of the compartment.MaintenanceExecution.Buildercopy(MaintenanceExecution model)MaintenanceExecution.BuildercustomActionTimeoutInMins(Integer customActionTimeoutInMins)Determines the amount of time the system will wait before the start of each compute server patching operation.MaintenanceExecution.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.MaintenanceExecution.Builderdescription(String description)Description of the maintenance run execution.MaintenanceExecution.BuilderdisplayName(String displayName)The user-friendly name for the maintenance run execution.MaintenanceExecution.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.MaintenanceExecution.Builderid(String id)The OCID of the maintenance run execution.MaintenanceExecution.BuilderinfrastructureId(String infrastructureId)The OCID of the Database Infrastructure on which the maintenance run execution occurred.MaintenanceExecution.BuilderisCustomActionTimeoutEnabled(Boolean isCustomActionTimeoutEnabled)At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed.MaintenanceExecution.BuilderlifecycleDetails(String lifecycleDetails)Additional information about the current lifecycle state.MaintenanceExecution.BuilderlifecycleState(MaintenanceRunLifecycleState lifecycleState)The state of the maintenance run execution.MaintenanceExecution.BuildermaintenanceRunId(String maintenanceRunId)The OCID of the maintenance run to which this maintenance execution belongs.MaintenanceExecution.BuildermaintenanceSubtype(MaintenanceSubtypeEnum maintenanceSubtype)Maintenance run execution sub-type.MaintenanceExecution.BuildermaintenanceType(MaintenanceTypeEnum maintenanceType)Maintenance type.MaintenanceExecution.BuilderpatchingMode(PatchingModeEnum patchingMode)The patching mode for the maintenance run that is being executed.MaintenanceExecution.BuildersourceVersion(String sourceVersion)The source software version for the Oracle infrastructure.MaintenanceExecution.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.MaintenanceExecution.BuildertargetResourceType(TargetResourceTypeEnum targetResourceType)The type of the target resource on which the maintenance run execution occurred.MaintenanceExecution.BuildertargetVersion(String targetVersion)The target software version for the Database Infrastructure patching operation.MaintenanceExecution.BuildertimeEnded(Date timeEnded)The date and time the maintenance run was completed.MaintenanceExecution.BuildertimeStarted(Date timeStarted)The date and time the maintenance run execution started.MaintenanceExecution.BuildertotalTimeTakenInMins(Integer totalTimeTakenInMins)The total time taken by this execution in minutes.MaintenanceExecution.BuilderworkflowId(String workflowId)The OCID of the work request executed by this execution.
-
-
-
Method Detail
-
id
public MaintenanceExecution.Builder id(String id)
The OCID of the maintenance run execution.- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public MaintenanceExecution.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
displayName
public MaintenanceExecution.Builder displayName(String displayName)
The user-friendly name for the maintenance run execution.- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public MaintenanceExecution.Builder description(String description)
Description of the maintenance run execution.- Parameters:
description- the value to set- Returns:
- this builder
-
lifecycleState
public MaintenanceExecution.Builder lifecycleState(MaintenanceRunLifecycleState lifecycleState)
The state of the maintenance run execution.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public MaintenanceExecution.Builder lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
timeStarted
public MaintenanceExecution.Builder timeStarted(Date timeStarted)
The date and time the maintenance run execution started.- Parameters:
timeStarted- the value to set- Returns:
- this builder
-
timeEnded
public MaintenanceExecution.Builder timeEnded(Date timeEnded)
The date and time the maintenance run was completed.- Parameters:
timeEnded- the value to set- Returns:
- this builder
-
targetResourceType
public MaintenanceExecution.Builder targetResourceType(TargetResourceTypeEnum targetResourceType)
The type of the target resource on which the maintenance run execution occurred.- Parameters:
targetResourceType- the value to set- Returns:
- this builder
-
infrastructureId
public MaintenanceExecution.Builder infrastructureId(String infrastructureId)
The OCID of the Database Infrastructure on which the maintenance run execution occurred.- Parameters:
infrastructureId- the value to set- Returns:
- this builder
-
maintenanceRunId
public MaintenanceExecution.Builder maintenanceRunId(String maintenanceRunId)
The OCID of the maintenance run to which this maintenance execution belongs.- Parameters:
maintenanceRunId- the value to set- Returns:
- this builder
-
maintenanceType
public MaintenanceExecution.Builder maintenanceType(MaintenanceTypeEnum maintenanceType)
Maintenance type.- Parameters:
maintenanceType- the value to set- Returns:
- this builder
-
maintenanceSubtype
public MaintenanceExecution.Builder maintenanceSubtype(MaintenanceSubtypeEnum maintenanceSubtype)
Maintenance run execution sub-type.- Parameters:
maintenanceSubtype- the value to set- Returns:
- this builder
-
patchingMode
public MaintenanceExecution.Builder patchingMode(PatchingModeEnum patchingMode)
The patching mode for the maintenance run that is being executed.- Parameters:
patchingMode- the value to set- Returns:
- this builder
-
sourceVersion
public MaintenanceExecution.Builder sourceVersion(String sourceVersion)
The source software version for the Oracle infrastructure.- Parameters:
sourceVersion- the value to set- Returns:
- this builder
-
targetVersion
public MaintenanceExecution.Builder targetVersion(String targetVersion)
The target software version for the Database Infrastructure patching operation.- Parameters:
targetVersion- the value to set- Returns:
- this builder
-
isCustomActionTimeoutEnabled
public MaintenanceExecution.Builder isCustomActionTimeoutEnabled(Boolean isCustomActionTimeoutEnabled)
At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed.- Parameters:
isCustomActionTimeoutEnabled- the value to set- Returns:
- this builder
-
customActionTimeoutInMins
public MaintenanceExecution.Builder customActionTimeoutInMins(Integer customActionTimeoutInMins)
Determines the amount of time the system will wait before the start of each compute server patching operation.Supported values are 15 to 120 minutes.
- Parameters:
customActionTimeoutInMins- the value to set- Returns:
- this builder
-
workflowId
public MaintenanceExecution.Builder workflowId(String workflowId)
The OCID of the work request executed by this execution.- Parameters:
workflowId- the value to set- Returns:
- this builder
-
systemTags
public MaintenanceExecution.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. Example: { “orcl-cloud”: { “free-tier-retained”: “true” } }
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
definedTags
public MaintenanceExecution.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
freeformTags
public MaintenanceExecution.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.This tag option exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
totalTimeTakenInMins
public MaintenanceExecution.Builder totalTimeTakenInMins(Integer totalTimeTakenInMins)
The total time taken by this execution in minutes.- Parameters:
totalTimeTakenInMins- the value to set- Returns:
- this builder
-
build
public MaintenanceExecution build()
-
copy
public MaintenanceExecution.Builder copy(MaintenanceExecution model)
-
-