Class InstanceMaintenanceEventSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.InstanceMaintenanceEventSummary.Builder
-
- Enclosing class:
- InstanceMaintenanceEventSummary
public static class InstanceMaintenanceEventSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceMaintenanceEventSummary.Builder
alternativeResolutionActions(List<InstanceMaintenanceAlternativeResolutionActions> alternativeResolutionActions)
These are alternative actions to the requested instanceAction that can be taken to resolve the Maintenance.InstanceMaintenanceEventSummary
build()
InstanceMaintenanceEventSummary.Builder
canReschedule(Boolean canReschedule)
Indicates if this MaintenanceEvent is capable of being rescheduled up to the timeHardDueDate.InstanceMaintenanceEventSummary.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the instance.InstanceMaintenanceEventSummary.Builder
copy(InstanceMaintenanceEventSummary model)
InstanceMaintenanceEventSummary.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.InstanceMaintenanceEventSummary.Builder
createdBy(InstanceMaintenanceEvent.CreatedBy createdBy)
The creator of the maintenance event.InstanceMaintenanceEventSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.InstanceMaintenanceEventSummary.Builder
description(String description)
It is the descriptive information about the maintenance taking place on the customer instance.InstanceMaintenanceEventSummary.Builder
displayName(String displayName)
A user-friendly name.InstanceMaintenanceEventSummary.Builder
estimatedDuration(String estimatedDuration)
This is the estimated duration of the Maintenance, once the Maintenance has entered the STARTED state.InstanceMaintenanceEventSummary.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.InstanceMaintenanceEventSummary.Builder
id(String id)
The OCID of the maintenance event.InstanceMaintenanceEventSummary.Builder
instanceAction(InstanceMaintenanceEvent.InstanceAction instanceAction)
This is the action that will be performed on the Instance by OCI when the Maintenance begins.InstanceMaintenanceEventSummary.Builder
instanceId(String instanceId)
The OCID of the instance.InstanceMaintenanceEventSummary.Builder
lifecycleState(InstanceMaintenanceEvent.LifecycleState lifecycleState)
The current state of the maintenance event.InstanceMaintenanceEventSummary.Builder
maintenanceCategory(InstanceMaintenanceEvent.MaintenanceCategory maintenanceCategory)
This indicates the priority and allowed actions for this Maintenance.InstanceMaintenanceEventSummary.Builder
maintenanceReason(InstanceMaintenanceEvent.MaintenanceReason maintenanceReason)
This is the reason that Maintenance is being performed.InstanceMaintenanceEventSummary.Builder
startWindowDuration(String startWindowDuration)
The duration of the time window Maintenance is scheduled to begin within.InstanceMaintenanceEventSummary.Builder
timeCreated(Date timeCreated)
The date and time the maintenance event was created, in the format defined by RFC3339.InstanceMaintenanceEventSummary.Builder
timeFinished(Date timeFinished)
The time at which the Maintenance actually finished.InstanceMaintenanceEventSummary.Builder
timeHardDueDate(Date timeHardDueDate)
It is the scheduled hard due date and time of the maintenance event.InstanceMaintenanceEventSummary.Builder
timeStarted(Date timeStarted)
The time at which the Maintenance actually started.InstanceMaintenanceEventSummary.Builder
timeWindowStart(Date timeWindowStart)
The beginning of the time window when Maintenance is scheduled to begin.
-
-
-
Method Detail
-
definedTags
public InstanceMaintenanceEventSummary.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
-
displayName
public InstanceMaintenanceEventSummary.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
-
freeformTags
public InstanceMaintenanceEventSummary.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 InstanceMaintenanceEventSummary.Builder id(String id)
The OCID of the maintenance event.- Parameters:
id
- the value to set- Returns:
- this builder
-
instanceId
public InstanceMaintenanceEventSummary.Builder instanceId(String instanceId)
The OCID of the instance.- Parameters:
instanceId
- the value to set- Returns:
- this builder
-
compartmentId
public InstanceMaintenanceEventSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the instance.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
maintenanceCategory
public InstanceMaintenanceEventSummary.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 InstanceMaintenanceEventSummary.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 InstanceMaintenanceEventSummary.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 InstanceMaintenanceEventSummary.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 InstanceMaintenanceEventSummary.Builder timeStarted(Date timeStarted)
The time at which the Maintenance actually started.- Parameters:
timeStarted
- the value to set- Returns:
- this builder
-
timeFinished
public InstanceMaintenanceEventSummary.Builder timeFinished(Date timeFinished)
The time at which the Maintenance actually finished.- Parameters:
timeFinished
- the value to set- Returns:
- this builder
-
timeWindowStart
public InstanceMaintenanceEventSummary.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 InstanceMaintenanceEventSummary.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 InstanceMaintenanceEventSummary.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 InstanceMaintenanceEventSummary.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 InstanceMaintenanceEventSummary.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 InstanceMaintenanceEventSummary.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 InstanceMaintenanceEventSummary.Builder lifecycleState(InstanceMaintenanceEvent.LifecycleState lifecycleState)
The current state of the maintenance event.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
createdBy
public InstanceMaintenanceEventSummary.Builder createdBy(InstanceMaintenanceEvent.CreatedBy createdBy)
The creator of the maintenance event.- Parameters:
createdBy
- the value to set- Returns:
- this builder
-
description
public InstanceMaintenanceEventSummary.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 InstanceMaintenanceEventSummary.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
-
build
public InstanceMaintenanceEventSummary build()
-
copy
public InstanceMaintenanceEventSummary.Builder copy(InstanceMaintenanceEventSummary model)
-
-