Class UpdateInstanceMaintenanceEventDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.UpdateInstanceMaintenanceEventDetails.Builder
-
- Enclosing class:
- UpdateInstanceMaintenanceEventDetails
public static class UpdateInstanceMaintenanceEventDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
timeWindowStart
public UpdateInstanceMaintenanceEventDetails.Builder timeWindowStart(Date timeWindowStart)
The beginning of the time window when Maintenance is scheduled to begin.The Maintenance will not begin before this time.
The timeWindowEnd is automatically calculated based on the maintenanceReason and the instanceAction.
- Parameters:
timeWindowStart
- the value to set- Returns:
- this builder
-
alternativeResolutionAction
public UpdateInstanceMaintenanceEventDetails.Builder alternativeResolutionAction(InstanceMaintenanceAlternativeResolutionActions alternativeResolutionAction)
One of the alternativeResolutionActions that was provided in the InstanceMaintenanceEvent.- Parameters:
alternativeResolutionAction
- the value to set- Returns:
- this builder
-
canDeleteLocalStorage
public UpdateInstanceMaintenanceEventDetails.Builder canDeleteLocalStorage(Boolean canDeleteLocalStorage)
This field is only applicable when setting the alternativeResolutionAction.For Instances that have local storage, this must be set to true to verify that the local storage will be deleted during the migration. For instances without, this parameter has no effect.
In cases where the local storage will be lost, this parameter must be set or the request will fail.
- Parameters:
canDeleteLocalStorage
- the value to set- Returns:
- this builder
-
displayName
public UpdateInstanceMaintenanceEventDetails.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 UpdateInstanceMaintenanceEventDetails.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 UpdateInstanceMaintenanceEventDetails.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
-
build
public UpdateInstanceMaintenanceEventDetails build()
-
copy
public UpdateInstanceMaintenanceEventDetails.Builder copy(UpdateInstanceMaintenanceEventDetails model)
-
-