Class InstanceMaintenanceEvent.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.InstanceMaintenanceEvent.Builder
-
- Enclosing class:
- InstanceMaintenanceEvent
public static class InstanceMaintenanceEvent.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceMaintenanceEvent.Builder
additionalDetails(Map<String,String> additionalDetails)
Additional details of the maintenance in the form of json.InstanceMaintenanceEvent.Builder
alternativeResolutionActions(List<InstanceMaintenanceAlternativeResolutionActions> alternativeResolutionActions)
These are alternative actions to the requested instanceAction that can be taken to resolve the Maintenance.InstanceMaintenanceEvent
build()
InstanceMaintenanceEvent.Builder
canDeleteLocalStorage(Boolean canDeleteLocalStorage)
For Instances that have local storage, this field is set to true when local storage will be deleted as a result of the Maintenance.InstanceMaintenanceEvent.Builder
canReschedule(Boolean canReschedule)
Indicates if this MaintenanceEvent is capable of being rescheduled up to the timeHardDueDate.InstanceMaintenanceEvent.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the instance.InstanceMaintenanceEvent.Builder
copy(InstanceMaintenanceEvent model)
InstanceMaintenanceEvent.Builder
correlationToken(String correlationToken)
A unique identifier that will group Instances that have a relationship with one another and must be scheduled together for the Maintenance to proceed.InstanceMaintenanceEvent.Builder
createdBy(InstanceMaintenanceEvent.CreatedBy createdBy)
The creator of the maintenance event.InstanceMaintenanceEvent.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.InstanceMaintenanceEvent.Builder
description(String description)
It is the descriptive information about the maintenance taking place on the customer instance.InstanceMaintenanceEvent.Builder
displayName(String displayName)
A user-friendly name.InstanceMaintenanceEvent.Builder
estimatedDuration(String estimatedDuration)
This is the estimated duration of the Maintenance, once the Maintenance has entered the STARTED state.InstanceMaintenanceEvent.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.InstanceMaintenanceEvent.Builder
id(String id)
The OCID of the maintenance event.InstanceMaintenanceEvent.Builder
instanceAction(InstanceMaintenanceEvent.InstanceAction instanceAction)
This is the action that will be performed on the Instance by OCI when the Maintenance begins.InstanceMaintenanceEvent.Builder
instanceId(String instanceId)
The OCID of the instance.InstanceMaintenanceEvent.Builder
lifecycleDetails(String lifecycleDetails)
Provides more details about the state of the maintenance event.InstanceMaintenanceEvent.Builder
lifecycleState(InstanceMaintenanceEvent.LifecycleState lifecycleState)
The current state of the maintenance event.InstanceMaintenanceEvent.Builder
maintenanceCategory(InstanceMaintenanceEvent.MaintenanceCategory maintenanceCategory)
This indicates the priority and allowed actions for this Maintenance.InstanceMaintenanceEvent.Builder
maintenanceReason(InstanceMaintenanceEvent.MaintenanceReason maintenanceReason)
This is the reason that Maintenance is being performed.InstanceMaintenanceEvent.Builder
startWindowDuration(String startWindowDuration)
The duration of the time window Maintenance is scheduled to begin within.InstanceMaintenanceEvent.Builder
timeCreated(Date timeCreated)
The date and time the maintenance event was created, in the format defined by RFC3339.InstanceMaintenanceEvent.Builder
timeFinished(Date timeFinished)
The time at which the Maintenance actually finished.InstanceMaintenanceEvent.Builder
timeHardDueDate(Date timeHardDueDate)
It is the scheduled hard due date and time of the maintenance event.InstanceMaintenanceEvent.Builder
timeStarted(Date timeStarted)
The time at which the Maintenance actually started.InstanceMaintenanceEvent.Builder
timeWindowStart(Date timeWindowStart)
The beginning of the time window when Maintenance is scheduled to begin.
-
-
-
Method Detail
-
displayName
public InstanceMaintenanceEvent.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
definedTags
public InstanceMaintenanceEvent.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.
Example: {"Operations": {"CostCenter": "42"}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
freeformTags
public InstanceMaintenanceEvent.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
-
id
public InstanceMaintenanceEvent.Builder id(String id)
The OCID of the maintenance event.- Parameters:
id
- the value to set- Returns:
- this builder
-
instanceId
public InstanceMaintenanceEvent.Builder instanceId(String instanceId)
The OCID of the instance.- Parameters:
instanceId
- the value to set- Returns:
- this builder
-
compartmentId
public InstanceMaintenanceEvent.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the instance.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
maintenanceCategory
public InstanceMaintenanceEvent.Builder maintenanceCategory(InstanceMaintenanceEvent.MaintenanceCategory maintenanceCategory)
This indicates the priority and allowed actions for this Maintenance.Higher priority forms of Maintenance have tighter restrictions and may not be rescheduled, while lower priority/severity Maintenance can be rescheduled, deferred, or even cancelled. Please see the Instance Maintenance documentation for details.
- Parameters:
maintenanceCategory
- the value to set- Returns:
- this builder
-
maintenanceReason
public InstanceMaintenanceEvent.Builder maintenanceReason(InstanceMaintenanceEvent.MaintenanceReason maintenanceReason)
This is the reason that Maintenance is being performed.See Instance Maintenance documentation for details.
- Parameters:
maintenanceReason
- the value to set- Returns:
- this builder
-
instanceAction
public InstanceMaintenanceEvent.Builder instanceAction(InstanceMaintenanceEvent.InstanceAction instanceAction)
This is the action that will be performed on the Instance by OCI when the Maintenance begins.- Parameters:
instanceAction
- the value to set- Returns:
- this builder
-
alternativeResolutionActions
public InstanceMaintenanceEvent.Builder alternativeResolutionActions(List<InstanceMaintenanceAlternativeResolutionActions> alternativeResolutionActions)
These are alternative actions to the requested instanceAction that can be taken to resolve the Maintenance.- Parameters:
alternativeResolutionActions
- the value to set- Returns:
- this builder
-
timeStarted
public InstanceMaintenanceEvent.Builder timeStarted(Date timeStarted)
The time at which the Maintenance actually started.- Parameters:
timeStarted
- the value to set- Returns:
- this builder
-
timeFinished
public InstanceMaintenanceEvent.Builder timeFinished(Date timeFinished)
The time at which the Maintenance actually finished.- Parameters:
timeFinished
- the value to set- Returns:
- this builder
-
timeWindowStart
public InstanceMaintenanceEvent.Builder timeWindowStart(Date timeWindowStart)
The beginning of the time window when Maintenance is scheduled to begin.The Maintenance will not begin before this time.
- Parameters:
timeWindowStart
- the value to set- Returns:
- this builder
-
startWindowDuration
public InstanceMaintenanceEvent.Builder startWindowDuration(String startWindowDuration)
The duration of the time window Maintenance is scheduled to begin within.- Parameters:
startWindowDuration
- the value to set- Returns:
- this builder
-
estimatedDuration
public InstanceMaintenanceEvent.Builder estimatedDuration(String estimatedDuration)
This is the estimated duration of the Maintenance, once the Maintenance has entered the STARTED state.- Parameters:
estimatedDuration
- the value to set- Returns:
- this builder
-
timeHardDueDate
public InstanceMaintenanceEvent.Builder timeHardDueDate(Date timeHardDueDate)
It is the scheduled hard due date and time of the maintenance event.The maintenance event will happen at this time and the due date will not be extended.
- Parameters:
timeHardDueDate
- the value to set- Returns:
- this builder
-
canReschedule
public InstanceMaintenanceEvent.Builder canReschedule(Boolean canReschedule)
Indicates if this MaintenanceEvent is capable of being rescheduled up to the timeHardDueDate.- Parameters:
canReschedule
- the value to set- Returns:
- this builder
-
timeCreated
public InstanceMaintenanceEvent.Builder timeCreated(Date timeCreated)
The date and time the maintenance event was created, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
lifecycleState
public InstanceMaintenanceEvent.Builder lifecycleState(InstanceMaintenanceEvent.LifecycleState lifecycleState)
The current state of the maintenance event.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public InstanceMaintenanceEvent.Builder lifecycleDetails(String lifecycleDetails)
Provides more details about the state of the maintenance event.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
createdBy
public InstanceMaintenanceEvent.Builder createdBy(InstanceMaintenanceEvent.CreatedBy createdBy)
The creator of the maintenance event.- Parameters:
createdBy
- the value to set- Returns:
- this builder
-
description
public InstanceMaintenanceEvent.Builder description(String description)
It is the descriptive information about the maintenance taking place on the customer instance.- Parameters:
description
- the value to set- Returns:
- this builder
-
correlationToken
public InstanceMaintenanceEvent.Builder correlationToken(String correlationToken)
A unique identifier that will group Instances that have a relationship with one another and must be scheduled together for the Maintenance to proceed.Any Instances that have a relationship with one another from a Maintenance perspective will have a matching correlationToken.
- Parameters:
correlationToken
- the value to set- Returns:
- this builder
-
canDeleteLocalStorage
public InstanceMaintenanceEvent.Builder canDeleteLocalStorage(Boolean canDeleteLocalStorage)
For Instances that have local storage, this field is set to true when local storage will be deleted as a result of the Maintenance.- Parameters:
canDeleteLocalStorage
- the value to set- Returns:
- this builder
-
additionalDetails
public InstanceMaintenanceEvent.Builder additionalDetails(Map<String,String> additionalDetails)
Additional details of the maintenance in the form of json.- Parameters:
additionalDetails
- the value to set- Returns:
- this builder
-
build
public InstanceMaintenanceEvent build()
-
copy
public InstanceMaintenanceEvent.Builder copy(InstanceMaintenanceEvent model)
-
-