Package com.oracle.bmc.datacc.model
Class MaintenanceRun.Builder
- java.lang.Object
-
- com.oracle.bmc.datacc.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 MaintenanceRunbuild()MaintenanceRun.BuildercompartmentId(String compartmentId)The OCID of the compartment.MaintenanceRun.Buildercopy(MaintenanceRun model)MaintenanceRun.BuildercurrentPatchingComponent(String currentPatchingComponent)The name of the current infrastructure component that is getting patched.MaintenanceRun.BuildercustomActionTimeoutInMins(Integer customActionTimeoutInMins)Determines the amount of time the system will wait before the start of each compute server patching operation.MaintenanceRun.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.MaintenanceRun.Builderdescription(String description)Description of the maintenance run.MaintenanceRun.BuilderdisplayName(String displayName)The user-friendly name for the maintenance run.MaintenanceRun.BuilderestimatedComponentPatchingStartTime(Date estimatedComponentPatchingStartTime)The estimated start time of the next infrastructure component patching operation.MaintenanceRun.BuilderestimatedPatchingTime(Integer estimatedPatchingTime)The estimated total time required in minutes for all patching operations (compute servers, storage).MaintenanceRun.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.MaintenanceRun.Builderid(String id)The OCID of the maintenance run.MaintenanceRun.BuilderinfrastructureId(String infrastructureId)The OCID of the Database Infrastructure on which the maintenance run execution occurs.MaintenanceRun.BuilderinitialScheduledTime(Date initialScheduledTime)The date and time the maintenance run was originally scheduled.MaintenanceRun.BuilderisCustomActionTimeoutEnabled(Boolean isCustomActionTimeoutEnabled)If true, enables the configuration of a custom action timeout (waiting period) between compute servers patching operations.MaintenanceRun.BuilderlifecycleDetails(String lifecycleDetails)Additional information about the current lifecycle state.MaintenanceRun.BuilderlifecycleState(MaintenanceRunLifecycleState lifecycleState)The current state of the maintenance run.MaintenanceRun.BuildermaintenanceSubtype(MaintenanceSubtypeEnum maintenanceSubtype)Maintenance run sub-type.MaintenanceRun.BuildermaintenanceType(MaintenanceTypeEnum maintenanceType)Maintenance type.MaintenanceRun.BuilderpatchFailureCount(Integer patchFailureCount)Contain the patch failure count.MaintenanceRun.BuilderpatchIdentifier(String patchIdentifier)The unique identifier of the patch.MaintenanceRun.BuilderpatchingEndTime(Date patchingEndTime)The time when the patching operation ended.MaintenanceRun.BuilderpatchingMode(PatchingModeEnum patchingMode)Database Infrastructure patching mode, either “ROLLING” or “NONROLLING”.MaintenanceRun.BuilderpatchingStartTime(Date patchingStartTime)The time when the patching operation started.MaintenanceRun.BuilderpatchingStatus(PatchingStatusEnum patchingStatus)The status of the patching operation.MaintenanceRun.BuildersourceVersion(String sourceVersion)The source software version for the Oracle infrastructure.MaintenanceRun.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.MaintenanceRun.BuildertargetResourceType(TargetResourceTypeEnum targetResourceType)The type of the target resource on which the maintenance run occurs.MaintenanceRun.BuildertargetVersion(String targetVersion)The target software version for the Database Infrastructure patching operation.MaintenanceRun.BuildertimeEnded(Date timeEnded)The date and time the maintenance run was completed.MaintenanceRun.BuildertimeScheduled(Date timeScheduled)The date and time the maintenance run is scheduled to occur.MaintenanceRun.BuildertimeStarted(Date timeStarted)The date and time the maintenance run starts.MaintenanceRun.BuildertotalTimeTakenInMins(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(MaintenanceRunLifecycleState lifecycleState)
The current state of the maintenance run.- 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
-
initialScheduledTime
public MaintenanceRun.Builder initialScheduledTime(Date initialScheduledTime)
The date and time the maintenance run was originally scheduled.- Parameters:
initialScheduledTime- 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(TargetResourceTypeEnum targetResourceType)
The type of the target resource on which the maintenance run occurs.- Parameters:
targetResourceType- the value to set- Returns:
- this builder
-
infrastructureId
public MaintenanceRun.Builder infrastructureId(String infrastructureId)
The OCID of the Database Infrastructure on which the maintenance run execution occurs.- Parameters:
infrastructureId- the value to set- Returns:
- this builder
-
maintenanceType
public MaintenanceRun.Builder maintenanceType(MaintenanceTypeEnum maintenanceType)
Maintenance type.- Parameters:
maintenanceType- the value to set- Returns:
- this builder
-
patchIdentifier
public MaintenanceRun.Builder patchIdentifier(String patchIdentifier)
The unique identifier of the patch.The identifier string includes the patch type and the version of the Database Infrastructure.
- Parameters:
patchIdentifier- the value to set- Returns:
- this builder
-
maintenanceSubtype
public MaintenanceRun.Builder maintenanceSubtype(MaintenanceSubtypeEnum maintenanceSubtype)
Maintenance run sub-type.- Parameters:
maintenanceSubtype- the value to set- Returns:
- this builder
-
patchingMode
public MaintenanceRun.Builder patchingMode(PatchingModeEnum patchingMode)
Database Infrastructure patching mode, either “ROLLING” or “NONROLLING”.Default value is ROLLING.
- 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
-
sourceVersion
public MaintenanceRun.Builder sourceVersion(String sourceVersion)
The source software version for the Oracle infrastructure.- Parameters:
sourceVersion- the value to set- Returns:
- this builder
-
targetVersion
public MaintenanceRun.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 MaintenanceRun.Builder isCustomActionTimeoutEnabled(Boolean isCustomActionTimeoutEnabled)
If true, enables the configuration of a custom action timeout (waiting period) between compute 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 compute server patching operation.Supported values are 15 to 120 minutes.
- Parameters:
customActionTimeoutInMins- the value to set- Returns:
- this builder
-
patchingStatus
public MaintenanceRun.Builder patchingStatus(PatchingStatusEnum 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(Integer estimatedPatchingTime)
The estimated total time required in minutes for all patching operations (compute servers, storage).- Parameters:
estimatedPatchingTime- the value to set- Returns:
- this builder
-
currentPatchingComponent
public MaintenanceRun.Builder currentPatchingComponent(String currentPatchingComponent)
The name of the current infrastructure 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 infrastructure component patching operation.- Parameters:
estimatedComponentPatchingStartTime- the value to set- Returns:
- this builder
-
systemTags
public MaintenanceRun.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 MaintenanceRun.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 MaintenanceRun.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 MaintenanceRun.Builder totalTimeTakenInMins(Integer totalTimeTakenInMins)
The total time taken by corresponding resource activity in minutes.- Parameters:
totalTimeTakenInMins- the value to set- Returns:
- this builder
-
build
public MaintenanceRun build()
-
copy
public MaintenanceRun.Builder copy(MaintenanceRun model)
-
-