Class SchedulerDefinition.Builder
- java.lang.Object
-
- com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition.Builder
-
- Enclosing class:
- SchedulerDefinition
public static class SchedulerDefinition.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchedulerDefinition.BuilderactionGroups(List<ActionGroup> actionGroups)Action Groups associated with the Schedule.SchedulerDefinitionbuild()SchedulerDefinition.BuildercompartmentId(String compartmentId)Compartment OCIDSchedulerDefinition.Buildercopy(SchedulerDefinition model)SchedulerDefinition.BuildercountOfAffectedActionGroups(Integer countOfAffectedActionGroups)Count of Action Groups affected by the Schedule.SchedulerDefinition.BuildercountOfAffectedResources(Integer countOfAffectedResources)Count of Resources affected by the Schedule.SchedulerDefinition.BuildercountOfAffectedTargets(Integer countOfAffectedTargets)Count of Targets affected by the Schedule.SchedulerDefinition.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.SchedulerDefinition.Builderdescription(String description)A user-friendly description.SchedulerDefinition.BuilderdisplayName(String displayName)A user-friendly name.SchedulerDefinition.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.SchedulerDefinition.Builderid(String id)The OCID of the resource.SchedulerDefinition.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail.SchedulerDefinition.BuilderlifecycleOperations(List<String> lifecycleOperations)All LifeCycle Operations that are part of the schedule.SchedulerDefinition.BuilderlifecycleState(SchedulerDefinition.LifecycleState lifecycleState)The current state of the SchedulerDefinition.SchedulerDefinition.Builderproducts(List<String> products)All products that are part of the schedule for PRODUCT ActionGroup Type.SchedulerDefinition.BuilderresourceRegion(String resourceRegion)Associated regionSchedulerDefinition.BuilderrunBooks(List<OperationRunbook> runBooks)Runbooks.SchedulerDefinition.Builderschedule(Schedule schedule)SchedulerDefinition.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.SchedulerDefinition.BuildertimeCreated(Date timeCreated)The time this resource was created.SchedulerDefinition.BuildertimeOfNextRun(Date timeOfNextRun)The scheduled date for the next run of the Job.SchedulerDefinition.BuildertimeUpdated(Date timeUpdated)The time this resource was last updated.
-
-
-
Method Detail
-
id
public SchedulerDefinition.Builder id(String id)
The OCID of the resource.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public SchedulerDefinition.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
Example: My new resource
- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public SchedulerDefinition.Builder description(String description)
A user-friendly description.To provide some insight about the resource. Avoid entering confidential information.
- Parameters:
description- the value to set- Returns:
- this builder
-
compartmentId
public SchedulerDefinition.Builder compartmentId(String compartmentId)
Compartment OCID- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
resourceRegion
public SchedulerDefinition.Builder resourceRegion(String resourceRegion)
Associated region- Parameters:
resourceRegion- the value to set- Returns:
- this builder
-
timeCreated
public SchedulerDefinition.Builder timeCreated(Date timeCreated)
The time this resource was created.An RFC3339 formatted datetime string.
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public SchedulerDefinition.Builder timeUpdated(Date timeUpdated)
The time this resource was last updated.An RFC3339 formatted datetime string.
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
timeOfNextRun
public SchedulerDefinition.Builder timeOfNextRun(Date timeOfNextRun)
The scheduled date for the next run of the Job.- Parameters:
timeOfNextRun- the value to set- Returns:
- this builder
-
schedule
public SchedulerDefinition.Builder schedule(Schedule schedule)
-
countOfAffectedActionGroups
public SchedulerDefinition.Builder countOfAffectedActionGroups(Integer countOfAffectedActionGroups)
Count of Action Groups affected by the Schedule.- Parameters:
countOfAffectedActionGroups- the value to set- Returns:
- this builder
-
countOfAffectedResources
public SchedulerDefinition.Builder countOfAffectedResources(Integer countOfAffectedResources)
Count of Resources affected by the Schedule.- Parameters:
countOfAffectedResources- the value to set- Returns:
- this builder
-
countOfAffectedTargets
public SchedulerDefinition.Builder countOfAffectedTargets(Integer countOfAffectedTargets)
Count of Targets affected by the Schedule.- Parameters:
countOfAffectedTargets- the value to set- Returns:
- this builder
-
products
public SchedulerDefinition.Builder products(List<String> products)
All products that are part of the schedule for PRODUCT ActionGroup Type.- Parameters:
products- the value to set- Returns:
- this builder
-
lifecycleOperations
public SchedulerDefinition.Builder lifecycleOperations(List<String> lifecycleOperations)
All LifeCycle Operations that are part of the schedule.- Parameters:
lifecycleOperations- the value to set- Returns:
- this builder
-
actionGroups
public SchedulerDefinition.Builder actionGroups(List<ActionGroup> actionGroups)
Action Groups associated with the Schedule.- Parameters:
actionGroups- the value to set- Returns:
- this builder
-
runBooks
public SchedulerDefinition.Builder runBooks(List<OperationRunbook> runBooks)
Runbooks.- Parameters:
runBooks- the value to set- Returns:
- this builder
-
lifecycleState
public SchedulerDefinition.Builder lifecycleState(SchedulerDefinition.LifecycleState lifecycleState)
The current state of the SchedulerDefinition.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public SchedulerDefinition.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.For example, can be used to provide actionable information for a resource in Failed state.
- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
freeformTags
public SchedulerDefinition.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public SchedulerDefinition.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
-
systemTags
public SchedulerDefinition.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public SchedulerDefinition build()
-
copy
public SchedulerDefinition.Builder copy(SchedulerDefinition model)
-
-