Package com.oracle.bmc.database.model
Class SchedulingPlan.Builder
- java.lang.Object
-
- com.oracle.bmc.database.model.SchedulingPlan.Builder
-
- Enclosing class:
- SchedulingPlan
public static class SchedulingPlan.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchedulingPlan
build()
SchedulingPlan.Builder
compartmentId(String compartmentId)
The OCID of the compartment.SchedulingPlan.Builder
copy(SchedulingPlan model)
SchedulingPlan.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.SchedulingPlan.Builder
displayName(String displayName)
The display name of the Scheduling Plan.SchedulingPlan.Builder
estimatedTimeInMins(Integer estimatedTimeInMins)
The estimated time for the Scheduling Plan.SchedulingPlan.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.SchedulingPlan.Builder
id(String id)
The OCID of the Scheduling Plan.SchedulingPlan.Builder
isUsingRecommendedScheduledActions(Boolean isUsingRecommendedScheduledActions)
If true, recommended scheduled actions will be generated for the scheduling plan.SchedulingPlan.Builder
lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state.SchedulingPlan.Builder
lifecycleState(SchedulingPlan.LifecycleState lifecycleState)
The current state of the Scheduling Plan.SchedulingPlan.Builder
planIntent(SchedulingPlan.PlanIntent planIntent)
The current intent the Scheduling Plan.SchedulingPlan.Builder
resourceId(String resourceId)
The OCID of the resource.SchedulingPlan.Builder
schedulingPolicyId(String schedulingPolicyId)
The OCID of the Scheduling Policy.SchedulingPlan.Builder
serviceType(SchedulingPlan.ServiceType serviceType)
The service type of the Scheduling Plan.SchedulingPlan.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.SchedulingPlan.Builder
timeCreated(Date timeCreated)
The date and time the Scheduling Plan Resource was created.SchedulingPlan.Builder
timeUpdated(Date timeUpdated)
The date and time the Scheduling Plan Resource was updated.
-
-
-
Method Detail
-
id
public SchedulingPlan.Builder id(String id)
The OCID of the Scheduling Plan.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public SchedulingPlan.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
schedulingPolicyId
public SchedulingPlan.Builder schedulingPolicyId(String schedulingPolicyId)
The OCID of the Scheduling Policy.- Parameters:
schedulingPolicyId
- the value to set- Returns:
- this builder
-
resourceId
public SchedulingPlan.Builder resourceId(String resourceId)
The OCID of the resource.- Parameters:
resourceId
- the value to set- Returns:
- this builder
-
displayName
public SchedulingPlan.Builder displayName(String displayName)
The display name of the Scheduling Plan.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
lifecycleState
public SchedulingPlan.Builder lifecycleState(SchedulingPlan.LifecycleState lifecycleState)
The current state of the Scheduling Plan.Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public SchedulingPlan.Builder lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
isUsingRecommendedScheduledActions
public SchedulingPlan.Builder isUsingRecommendedScheduledActions(Boolean isUsingRecommendedScheduledActions)
If true, recommended scheduled actions will be generated for the scheduling plan.- Parameters:
isUsingRecommendedScheduledActions
- the value to set- Returns:
- this builder
-
planIntent
public SchedulingPlan.Builder planIntent(SchedulingPlan.PlanIntent planIntent)
The current intent the Scheduling Plan.Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE.
- Parameters:
planIntent
- the value to set- Returns:
- this builder
-
estimatedTimeInMins
public SchedulingPlan.Builder estimatedTimeInMins(Integer estimatedTimeInMins)
The estimated time for the Scheduling Plan.- Parameters:
estimatedTimeInMins
- the value to set- Returns:
- this builder
-
serviceType
public SchedulingPlan.Builder serviceType(SchedulingPlan.ServiceType serviceType)
The service type of the Scheduling Plan.- Parameters:
serviceType
- the value to set- Returns:
- this builder
-
timeCreated
public SchedulingPlan.Builder timeCreated(Date timeCreated)
The date and time the Scheduling Plan Resource was created.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public SchedulingPlan.Builder timeUpdated(Date timeUpdated)
The date and time the Scheduling Plan Resource was updated.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
freeformTags
public SchedulingPlan.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
-
definedTags
public SchedulingPlan.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.
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public SchedulingPlan.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public SchedulingPlan build()
-
copy
public SchedulingPlan.Builder copy(SchedulingPlan model)
-
-