Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Schedule.Builder |
action(Schedule.Action action)
This is the action that will be executed by the schedule.
|
Schedule |
build() |
Schedule.Builder |
compartmentId(String compartmentId)
The OCID
of the compartment in which the schedule is created
|
Schedule.Builder |
copy(Schedule model) |
Schedule.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
These are defined tags for this resource.
|
Schedule.Builder |
description(String description)
This is the description of the schedule.
|
Schedule.Builder |
displayName(String displayName)
This is a user-friendly name for the schedule.
|
Schedule.Builder |
freeformTags(Map<String,String> freeformTags)
These are free-form tags for this resource.
|
Schedule.Builder |
id(String id)
The OCID
of the schedule
|
Schedule.Builder |
lifecycleState(Schedule.LifecycleState lifecycleState)
This is the current state of a schedule.
|
Schedule.Builder |
recurrenceDetails(String recurrenceDetails)
This is the frequency of recurrence of a schedule.
|
Schedule.Builder |
recurrenceType(Schedule.RecurrenceType recurrenceType)
Type of recurrence of a schedule
|
Schedule.Builder |
resourceFilters(List<ResourceFilter> resourceFilters)
This is a list of resources filters.
|
Schedule.Builder |
resources(List<Resource> resources)
This is the list of resources to which the scheduled operation is applied.
|
Schedule.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
These are system tags for this resource.
|
Schedule.Builder |
timeCreated(Date timeCreated)
This is the date and time the schedule was created, in the format defined by RFC
3339.
|
Schedule.Builder |
timeEnds(Date timeEnds)
This is the date and time the schedule ends, in the format defined by RFC
3339
|
Schedule.Builder |
timeLastRun(Date timeLastRun)
This is the date and time the schedule runs last time, in the format defined by RFC
3339.
|
Schedule.Builder |
timeNextRun(Date timeNextRun)
This is the date and time the schedule run the next time, in the format defined by RFC
3339.
|
Schedule.Builder |
timeStarts(Date timeStarts)
This is the date and time the schedule starts, in the format defined by RFC
3339
|
Schedule.Builder |
timeUpdated(Date timeUpdated)
This is the date and time the schedule was updated, in the format defined by RFC
3339.
|
public Schedule.Builder id(String id)
The OCID of the schedule
id
- the value to setpublic Schedule.Builder compartmentId(String compartmentId)
The OCID of the compartment in which the schedule is created
compartmentId
- the value to setpublic Schedule.Builder displayName(String displayName)
This is a user-friendly name for the schedule. It does not have to be unique, and it’s changeable.
displayName
- the value to setpublic Schedule.Builder description(String description)
This is the description of the schedule.
description
- the value to setpublic Schedule.Builder action(Schedule.Action action)
This is the action that will be executed by the schedule.
action
- the value to setpublic Schedule.Builder recurrenceDetails(String recurrenceDetails)
This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
recurrenceDetails
- the value to setpublic Schedule.Builder recurrenceType(Schedule.RecurrenceType recurrenceType)
Type of recurrence of a schedule
recurrenceType
- the value to setpublic Schedule.Builder resourceFilters(List<ResourceFilter> resourceFilters)
This is a list of resources filters. The schedule will be applied to resources matching all of them.
resourceFilters
- the value to setpublic Schedule.Builder resources(List<Resource> resources)
This is the list of resources to which the scheduled operation is applied.
resources
- the value to setpublic Schedule.Builder timeStarts(Date timeStarts)
This is the date and time the schedule starts, in the format defined by RFC 3339
Example: 2016-08-25T21:10:29.600Z
timeStarts
- the value to setpublic Schedule.Builder timeEnds(Date timeEnds)
This is the date and time the schedule ends, in the format defined by RFC 3339
Example: 2016-08-25T21:10:29.600Z
timeEnds
- the value to setpublic Schedule.Builder timeCreated(Date timeCreated)
This is the date and time the schedule was created, in the format defined by RFC 3339.
Example: 2016-08-25T21:10:29.600Z
timeCreated
- the value to setpublic Schedule.Builder timeUpdated(Date timeUpdated)
This is the date and time the schedule was updated, in the format defined by RFC 3339.
Example: 2016-08-25T21:10:29.600Z
timeUpdated
- the value to setpublic Schedule.Builder timeLastRun(Date timeLastRun)
This is the date and time the schedule runs last time, in the format defined by RFC 3339.
Example: 2016-08-25T21:10:29.600Z
timeLastRun
- the value to setpublic Schedule.Builder timeNextRun(Date timeNextRun)
This is the date and time the schedule run the next time, in the format defined by RFC 3339.
Example: 2016-08-25T21:10:29.600Z
timeNextRun
- the value to setpublic Schedule.Builder lifecycleState(Schedule.LifecycleState lifecycleState)
This is the current state of a schedule.
lifecycleState
- the value to setpublic Schedule.Builder freeformTags(Map<String,String> freeformTags)
These are 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"}
freeformTags
- the value to setpublic Schedule.Builder definedTags(Map<String,Map<String,Object>> definedTags)
These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
definedTags
- the value to setpublic Schedule.Builder systemTags(Map<String,Map<String,Object>> systemTags)
These are system tags for this resource. Each key is predefined and scoped to a namespace.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
systemTags
- the value to setpublic Schedule build()
public Schedule.Builder copy(Schedule model)
Copyright © 2016–2024. All rights reserved.