Class MaintenanceRun.Builder
- java.lang.Object
-
- com.oracle.bmc.database.model.MaintenanceRun.Builder
-
- Enclosing class:
- MaintenanceRun
public static class MaintenanceRun.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MaintenanceRun
build()
MaintenanceRun.Builder
compartmentId(String compartmentId)
The OCID of the compartment.MaintenanceRun.Builder
copy(MaintenanceRun model)
MaintenanceRun.Builder
currentCustomActionTimeoutInMins(Integer currentCustomActionTimeoutInMins)
Extend current custom action timeout between the current database servers during waiting state, from 0 (zero) to 30 minutes.MaintenanceRun.Builder
currentPatchingComponent(String currentPatchingComponent)
The name of the current infrastruture component that is getting patched.MaintenanceRun.Builder
customActionTimeoutInMins(Integer customActionTimeoutInMins)
Determines the amount of time the system will wait before the start of each database server patching operation.MaintenanceRun.Builder
databaseSoftwareImageId(String databaseSoftwareImageId)
The Autonomous Database Software Image OCIDMaintenanceRun.Builder
description(String description)
Description of the maintenance run.MaintenanceRun.Builder
displayName(String displayName)
The user-friendly name for the maintenance run.MaintenanceRun.Builder
estimatedComponentPatchingStartTime(Date estimatedComponentPatchingStartTime)
The estimated start time of the next infrastruture component patching operation.MaintenanceRun.Builder
estimatedPatchingTime(EstimatedPatchingTime estimatedPatchingTime)
MaintenanceRun.Builder
id(String id)
The OCID of the maintenance run.MaintenanceRun.Builder
isCustomActionTimeoutEnabled(Boolean isCustomActionTimeoutEnabled)
If true, enables the configuration of a custom action timeout (waiting period) between database servers patching operations.MaintenanceRun.Builder
isDstFileUpdateEnabled(Boolean isDstFileUpdateEnabled)
Indicates if an automatic DST Time Zone file update is enabled for the Autonomous Container Database.MaintenanceRun.Builder
isMaintenanceRunGranular(Boolean isMaintenanceRunGranular)
If FALSE, the maintenance run doesn’t support granular maintenance.MaintenanceRun.Builder
lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state.MaintenanceRun.Builder
lifecycleState(MaintenanceRun.LifecycleState lifecycleState)
The current state of the maintenance run.MaintenanceRun.Builder
maintenanceSubtype(MaintenanceRun.MaintenanceSubtype maintenanceSubtype)
Maintenance sub-type.MaintenanceRun.Builder
maintenanceType(MaintenanceRun.MaintenanceType maintenanceType)
Maintenance type.MaintenanceRun.Builder
patchFailureCount(Integer patchFailureCount)
Contain the patch failure count.MaintenanceRun.Builder
patchId(String patchId)
The unique identifier of the patch.MaintenanceRun.Builder
patchingEndTime(Date patchingEndTime)
The time when the patching operation ended.MaintenanceRun.Builder
patchingMode(MaintenanceRun.PatchingMode patchingMode)
Cloud Exadata infrastructure node patching method, either “ROLLING” or “NONROLLING”.MaintenanceRun.Builder
patchingStartTime(Date patchingStartTime)
The time when the patching operation started.MaintenanceRun.Builder
patchingStatus(MaintenanceRun.PatchingStatus patchingStatus)
The status of the patching operation.MaintenanceRun.Builder
peerMaintenanceRunId(String peerMaintenanceRunId)
The OCID of the maintenance run for the Autonomous Data Guard association’s peer container database.MaintenanceRun.Builder
peerMaintenanceRunIds(List<String> peerMaintenanceRunIds)
The list of OCIDs for the maintenance runs associated with their Autonomous Data Guard peer container databases.MaintenanceRun.Builder
targetDbServerVersion(String targetDbServerVersion)
The target software version for the database server patching operation.MaintenanceRun.Builder
targetResourceId(String targetResourceId)
The ID of the target resource on which the maintenance run occurs.MaintenanceRun.Builder
targetResourceType(MaintenanceRun.TargetResourceType targetResourceType)
The type of the target resource on which the maintenance run occurs.MaintenanceRun.Builder
targetStorageServerVersion(String targetStorageServerVersion)
The target Cell version that is to be patched to.MaintenanceRun.Builder
timeEnded(Date timeEnded)
The date and time the maintenance run was completed.MaintenanceRun.Builder
timeScheduled(Date timeScheduled)
The date and time the maintenance run is scheduled to occur.MaintenanceRun.Builder
timeStarted(Date timeStarted)
The date and time the maintenance run starts.MaintenanceRun.Builder
totalTimeTakenInMins(Integer totalTimeTakenInMins)
The total time taken by corresponding resource activity in minutes.
-
-
-
Method Detail
-
id
public MaintenanceRun.Builder id(String id)
The OCID of the maintenance run.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public MaintenanceRun.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
displayName
public MaintenanceRun.Builder displayName(String displayName)
The user-friendly name for the maintenance run.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public MaintenanceRun.Builder description(String description)
Description of the maintenance run.- Parameters:
description
- the value to set- Returns:
- this builder
-
lifecycleState
public MaintenanceRun.Builder lifecycleState(MaintenanceRun.LifecycleState lifecycleState)
The current state of the maintenance run.For Autonomous Database Serverless instances, valid states are IN_PROGRESS, SUCCEEDED, and FAILED.
- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public MaintenanceRun.Builder lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
timeScheduled
public MaintenanceRun.Builder timeScheduled(Date timeScheduled)
The date and time the maintenance run is scheduled to occur.- Parameters:
timeScheduled
- the value to set- Returns:
- this builder
-
timeStarted
public MaintenanceRun.Builder timeStarted(Date timeStarted)
The date and time the maintenance run starts.- Parameters:
timeStarted
- the value to set- Returns:
- this builder
-
timeEnded
public MaintenanceRun.Builder timeEnded(Date timeEnded)
The date and time the maintenance run was completed.- Parameters:
timeEnded
- the value to set- Returns:
- this builder
-
targetResourceType
public MaintenanceRun.Builder targetResourceType(MaintenanceRun.TargetResourceType targetResourceType)
The type of the target resource on which the maintenance run occurs.- Parameters:
targetResourceType
- the value to set- Returns:
- this builder
-
targetResourceId
public MaintenanceRun.Builder targetResourceId(String targetResourceId)
The ID of the target resource on which the maintenance run occurs.- Parameters:
targetResourceId
- the value to set- Returns:
- this builder
-
maintenanceType
public MaintenanceRun.Builder maintenanceType(MaintenanceRun.MaintenanceType maintenanceType)
Maintenance type.- Parameters:
maintenanceType
- the value to set- Returns:
- this builder
-
patchId
public MaintenanceRun.Builder patchId(String patchId)
The unique identifier of the patch.The identifier string includes the patch type, the Oracle Database version, and the patch creation date (using the format YYMMDD). For example, the identifier ru_patch_19.9.0.0_201030 is used for an RU patch for Oracle Database 19.9.0.0 that was released October 30, 2020.
- Parameters:
patchId
- the value to set- Returns:
- this builder
-
maintenanceSubtype
public MaintenanceRun.Builder maintenanceSubtype(MaintenanceRun.MaintenanceSubtype maintenanceSubtype)
Maintenance sub-type.- Parameters:
maintenanceSubtype
- the value to set- Returns:
- this builder
-
isDstFileUpdateEnabled
public MaintenanceRun.Builder isDstFileUpdateEnabled(Boolean isDstFileUpdateEnabled)
Indicates if an automatic DST Time Zone file update is enabled for the Autonomous Container Database.If enabled along with Release Update, patching will be done in a Non-Rolling manner.
- Parameters:
isDstFileUpdateEnabled
- the value to set- Returns:
- this builder
-
peerMaintenanceRunId
public MaintenanceRun.Builder peerMaintenanceRunId(String peerMaintenanceRunId)
The OCID of the maintenance run for the Autonomous Data Guard association’s peer container database.- Parameters:
peerMaintenanceRunId
- the value to set- Returns:
- this builder
-
peerMaintenanceRunIds
public MaintenanceRun.Builder peerMaintenanceRunIds(List<String> peerMaintenanceRunIds)
The list of OCIDs for the maintenance runs associated with their Autonomous Data Guard peer container databases.- Parameters:
peerMaintenanceRunIds
- the value to set- Returns:
- this builder
-
patchingMode
public MaintenanceRun.Builder patchingMode(MaintenanceRun.PatchingMode patchingMode)
Cloud Exadata infrastructure node patching method, either “ROLLING” or “NONROLLING”.Default value is ROLLING.
IMPORTANT*: Non-rolling infrastructure patching involves system down time. See [Oracle-Managed Infrastructure Maintenance Updates](https://docs.oracle.com/iaas/Content/Database/Concepts/examaintenance.htm#Oracle) for more information.
- Parameters:
patchingMode
- the value to set- Returns:
- this builder
-
patchFailureCount
public MaintenanceRun.Builder patchFailureCount(Integer patchFailureCount)
Contain the patch failure count.- Parameters:
patchFailureCount
- the value to set- Returns:
- this builder
-
targetDbServerVersion
public MaintenanceRun.Builder targetDbServerVersion(String targetDbServerVersion)
The target software version for the database server patching operation.- Parameters:
targetDbServerVersion
- the value to set- Returns:
- this builder
-
targetStorageServerVersion
public MaintenanceRun.Builder targetStorageServerVersion(String targetStorageServerVersion)
The target Cell version that is to be patched to.- Parameters:
targetStorageServerVersion
- the value to set- Returns:
- this builder
-
isCustomActionTimeoutEnabled
public MaintenanceRun.Builder isCustomActionTimeoutEnabled(Boolean isCustomActionTimeoutEnabled)
If true, enables the configuration of a custom action timeout (waiting period) between database servers patching operations.- Parameters:
isCustomActionTimeoutEnabled
- the value to set- Returns:
- this builder
-
customActionTimeoutInMins
public MaintenanceRun.Builder customActionTimeoutInMins(Integer customActionTimeoutInMins)
Determines the amount of time the system will wait before the start of each database server patching operation.Specify a number of minutes, from 15 to 120.
- Parameters:
customActionTimeoutInMins
- the value to set- Returns:
- this builder
-
currentCustomActionTimeoutInMins
public MaintenanceRun.Builder currentCustomActionTimeoutInMins(Integer currentCustomActionTimeoutInMins)
Extend current custom action timeout between the current database servers during waiting state, from 0 (zero) to 30 minutes.- Parameters:
currentCustomActionTimeoutInMins
- the value to set- Returns:
- this builder
-
patchingStatus
public MaintenanceRun.Builder patchingStatus(MaintenanceRun.PatchingStatus patchingStatus)
The status of the patching operation.- Parameters:
patchingStatus
- the value to set- Returns:
- this builder
-
patchingStartTime
public MaintenanceRun.Builder patchingStartTime(Date patchingStartTime)
The time when the patching operation started.- Parameters:
patchingStartTime
- the value to set- Returns:
- this builder
-
patchingEndTime
public MaintenanceRun.Builder patchingEndTime(Date patchingEndTime)
The time when the patching operation ended.- Parameters:
patchingEndTime
- the value to set- Returns:
- this builder
-
estimatedPatchingTime
public MaintenanceRun.Builder estimatedPatchingTime(EstimatedPatchingTime estimatedPatchingTime)
-
currentPatchingComponent
public MaintenanceRun.Builder currentPatchingComponent(String currentPatchingComponent)
The name of the current infrastruture component that is getting patched.- Parameters:
currentPatchingComponent
- the value to set- Returns:
- this builder
-
estimatedComponentPatchingStartTime
public MaintenanceRun.Builder estimatedComponentPatchingStartTime(Date estimatedComponentPatchingStartTime)
The estimated start time of the next infrastruture component patching operation.- Parameters:
estimatedComponentPatchingStartTime
- the value to set- Returns:
- this builder
-
isMaintenanceRunGranular
public MaintenanceRun.Builder isMaintenanceRunGranular(Boolean isMaintenanceRunGranular)
If FALSE, the maintenance run doesn’t support granular maintenance.- Parameters:
isMaintenanceRunGranular
- the value to set- Returns:
- this builder
-
totalTimeTakenInMins
public MaintenanceRun.Builder totalTimeTakenInMins(Integer totalTimeTakenInMins)
The total time taken by corresponding resource activity in minutes.- Parameters:
totalTimeTakenInMins
- the value to set- Returns:
- this builder
-
databaseSoftwareImageId
public MaintenanceRun.Builder databaseSoftwareImageId(String databaseSoftwareImageId)
The Autonomous Database Software Image OCID- Parameters:
databaseSoftwareImageId
- the value to set- Returns:
- this builder
-
build
public MaintenanceRun build()
-
copy
public MaintenanceRun.Builder copy(MaintenanceRun model)
-
-