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.Builder
actionGroups(List<ActionGroup> actionGroups)
Action Groups associated with the Schedule.SchedulerDefinition.Builder
actionGroupTypes(List<LifeCycleActionGroupType> actionGroupTypes)
All ActionGroup Types that are part of the schedule.SchedulerDefinition.Builder
activityInitiationCutOff(Integer activityInitiationCutOff)
Activity Initiation Cut Off.SchedulerDefinition.Builder
applicationTypes(List<String> applicationTypes)
All application types that are part of the schedule for ENVIRONMENT ActionGroup Type.SchedulerDefinition
build()
SchedulerDefinition.Builder
compartmentId(String compartmentId)
Tenancy OCIDSchedulerDefinition.Builder
copy(SchedulerDefinition model)
SchedulerDefinition.Builder
countOfAffectedActionGroups(Integer countOfAffectedActionGroups)
Count of Action Groups affected by the Schedule.SchedulerDefinition.Builder
countOfAffectedResources(Integer countOfAffectedResources)
Count of Resources affected by the Schedule.SchedulerDefinition.Builder
countOfAffectedTargets(Integer countOfAffectedTargets)
Count of Targets affected by the Schedule.SchedulerDefinition.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.SchedulerDefinition.Builder
description(String description)
A user-friendly description.SchedulerDefinition.Builder
displayName(String displayName)
A user-friendly name.SchedulerDefinition.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.SchedulerDefinition.Builder
id(String id)
The OCID of the resource.SchedulerDefinition.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.SchedulerDefinition.Builder
lifecycleOperations(List<String> lifecycleOperations)
All LifeCycle Operations that are part of the schedule.SchedulerDefinition.Builder
lifecycleState(SchedulerDefinition.LifecycleState lifecycleState)
The current state of the SchedulerDefinition.SchedulerDefinition.Builder
products(List<String> products)
All products that are part of the schedule for PRODUCT ActionGroup Type.SchedulerDefinition.Builder
resourceRegion(String resourceRegion)
Associated regionSchedulerDefinition.Builder
runBooks(List<OperationRunbook> runBooks)
Runbooks.SchedulerDefinition.Builder
schedule(Schedule schedule)
SchedulerDefinition.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.SchedulerDefinition.Builder
timeCreated(Date timeCreated)
The time this resource was created.SchedulerDefinition.Builder
timeOfNextRun(Date timeOfNextRun)
The scheduled date for the next run of the Job.SchedulerDefinition.Builder
timeUpdated(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)
Tenancy 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
-
activityInitiationCutOff
public SchedulerDefinition.Builder activityInitiationCutOff(Integer activityInitiationCutOff)
Activity Initiation Cut Off.- Parameters:
activityInitiationCutOff
- 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
-
actionGroupTypes
public SchedulerDefinition.Builder actionGroupTypes(List<LifeCycleActionGroupType> actionGroupTypes)
All ActionGroup Types that are part of the schedule.- Parameters:
actionGroupTypes
- the value to set- Returns:
- this builder
-
applicationTypes
public SchedulerDefinition.Builder applicationTypes(List<String> applicationTypes)
All application types that are part of the schedule for ENVIRONMENT ActionGroup Type.- Parameters:
applicationTypes
- 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)
-
-