Class SchedulerJob.Builder
- java.lang.Object
-
- com.oracle.bmc.fleetappsmanagement.model.SchedulerJob.Builder
-
- Enclosing class:
- SchedulerJob
public static class SchedulerJob.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchedulerJob.Builder
actionGroups(List<ActionGroupDetails> actionGroups)
Action Groups associated with the Schedule.SchedulerJob.Builder
actionGroupTypes(List<LifeCycleActionGroupType> actionGroupTypes)
All Action Group types are part of the schedule.SchedulerJob.Builder
applicationTypes(List<String> applicationTypes)
All application types that are part of the schedule for an ENVIRONMENT action group Type.SchedulerJob.Builder
associatedScheduleDefinition(AssociatedSchedulerDefinition associatedScheduleDefinition)
SchedulerJob
build()
SchedulerJob.Builder
compartmentId(String compartmentId)
Tenancy OCIDSchedulerJob.Builder
copy(SchedulerJob model)
SchedulerJob.Builder
countOfAffectedActionGroups(Integer countOfAffectedActionGroups)
Count of Action Groups affected by the Schedule.SchedulerJob.Builder
countOfAffectedResources(Integer countOfAffectedResources)
Count of resources affected by the schedule.SchedulerJob.Builder
countOfAffectedTargets(Integer countOfAffectedTargets)
Count of targets affected by the schedule.SchedulerJob.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.SchedulerJob.Builder
displayName(String displayName)
A user-friendly name.SchedulerJob.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.SchedulerJob.Builder
id(String id)
The OCID of the resource.SchedulerJob.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.SchedulerJob.Builder
lifecycleOperations(List<String> lifecycleOperations)
All LifeCycle Operations that are part of the schedule.SchedulerJob.Builder
lifecycleState(SchedulerJob.LifecycleState lifecycleState)
The current state of the SchedulerJob.SchedulerJob.Builder
products(List<String> products)
All products that are part of the schedule for a PRODUCT action group type.SchedulerJob.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.SchedulerJob.Builder
timeCreated(Date timeCreated)
The time this resource was created.SchedulerJob.Builder
timeEnded(Date timeEnded)
Actual end date and time for the Job.SchedulerJob.Builder
timeScheduled(Date timeScheduled)
The scheduled date and time for the Job.SchedulerJob.Builder
timeStarted(Date timeStarted)
Actual start date and time for the Job.SchedulerJob.Builder
timeUpdated(Date timeUpdated)
The time this resource was last updated.
-
-
-
Method Detail
-
id
public SchedulerJob.Builder id(String id)
The OCID of the resource.- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public SchedulerJob.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
-
compartmentId
public SchedulerJob.Builder compartmentId(String compartmentId)
Tenancy OCID- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
timeCreated
public SchedulerJob.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 SchedulerJob.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
-
timeScheduled
public SchedulerJob.Builder timeScheduled(Date timeScheduled)
The scheduled date and time for the Job.- Parameters:
timeScheduled
- the value to set- Returns:
- this builder
-
timeStarted
public SchedulerJob.Builder timeStarted(Date timeStarted)
Actual start date and time for the Job.- Parameters:
timeStarted
- the value to set- Returns:
- this builder
-
timeEnded
public SchedulerJob.Builder timeEnded(Date timeEnded)
Actual end date and time for the Job.- Parameters:
timeEnded
- the value to set- Returns:
- this builder
-
countOfAffectedActionGroups
public SchedulerJob.Builder countOfAffectedActionGroups(Integer countOfAffectedActionGroups)
Count of Action Groups affected by the Schedule.An action group is a group of entities grouped for a lifecycle activity. Example - A Fleet will be considered an Action Group for any lifecycle activity.
- Parameters:
countOfAffectedActionGroups
- the value to set- Returns:
- this builder
-
countOfAffectedResources
public SchedulerJob.Builder countOfAffectedResources(Integer countOfAffectedResources)
Count of resources affected by the schedule.- Parameters:
countOfAffectedResources
- the value to set- Returns:
- this builder
-
countOfAffectedTargets
public SchedulerJob.Builder countOfAffectedTargets(Integer countOfAffectedTargets)
Count of targets affected by the schedule.- Parameters:
countOfAffectedTargets
- the value to set- Returns:
- this builder
-
actionGroupTypes
public SchedulerJob.Builder actionGroupTypes(List<LifeCycleActionGroupType> actionGroupTypes)
All Action Group types are part of the schedule.- Parameters:
actionGroupTypes
- the value to set- Returns:
- this builder
-
applicationTypes
public SchedulerJob.Builder applicationTypes(List<String> applicationTypes)
All application types that are part of the schedule for an ENVIRONMENT action group Type.- Parameters:
applicationTypes
- the value to set- Returns:
- this builder
-
products
public SchedulerJob.Builder products(List<String> products)
All products that are part of the schedule for a PRODUCT action group type.- Parameters:
products
- the value to set- Returns:
- this builder
-
lifecycleOperations
public SchedulerJob.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 SchedulerJob.Builder actionGroups(List<ActionGroupDetails> actionGroups)
Action Groups associated with the Schedule.- Parameters:
actionGroups
- the value to set- Returns:
- this builder
-
associatedScheduleDefinition
public SchedulerJob.Builder associatedScheduleDefinition(AssociatedSchedulerDefinition associatedScheduleDefinition)
-
lifecycleState
public SchedulerJob.Builder lifecycleState(SchedulerJob.LifecycleState lifecycleState)
The current state of the SchedulerJob.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public SchedulerJob.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 SchedulerJob.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 SchedulerJob.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 SchedulerJob.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 SchedulerJob build()
-
copy
public SchedulerJob.Builder copy(SchedulerJob model)
-
-