Class CreateScheduleDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.resourcescheduler.model.CreateScheduleDetails.Builder
-
- Enclosing class:
- CreateScheduleDetails
public static class CreateScheduleDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateScheduleDetails.Builder
action(CreateScheduleDetails.Action action)
This is the action that will be executed by the schedule.CreateScheduleDetails
build()
CreateScheduleDetails.Builder
compartmentId(String compartmentId)
The OCID of the compartment in which the schedule is createdCreateScheduleDetails.Builder
copy(CreateScheduleDetails model)
CreateScheduleDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
These are defined tags for this resource.CreateScheduleDetails.Builder
description(String description)
This is the description of the schedule.CreateScheduleDetails.Builder
displayName(String displayName)
This is a user-friendly name for the schedule.CreateScheduleDetails.Builder
freeformTags(Map<String,String> freeformTags)
These are free-form tags for this resource.CreateScheduleDetails.Builder
recurrenceDetails(String recurrenceDetails)
This is the frequency of recurrence of a schedule.CreateScheduleDetails.Builder
recurrenceType(CreateScheduleDetails.RecurrenceType recurrenceType)
Type of recurrence of a scheduleCreateScheduleDetails.Builder
resourceFilters(List<ResourceFilter> resourceFilters)
This is a list of resources filters.CreateScheduleDetails.Builder
resources(List<Resource> resources)
This is the list of resources to which the scheduled operation is applied.CreateScheduleDetails.Builder
timeEnds(Date timeEnds)
This is the date and time the schedule ends, in the format defined by RFC 3339CreateScheduleDetails.Builder
timeStarts(Date timeStarts)
This is the date and time the schedule starts, in the format defined by RFC 3339
-
-
-
Method Detail
-
compartmentId
public CreateScheduleDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment in which the schedule is created- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
displayName
public CreateScheduleDetails.Builder displayName(String displayName)
This is a user-friendly name for the schedule.It does not have to be unique, and it’s changeable.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public CreateScheduleDetails.Builder description(String description)
This is the description of the schedule.- Parameters:
description
- the value to set- Returns:
- this builder
-
action
public CreateScheduleDetails.Builder action(CreateScheduleDetails.Action action)
This is the action that will be executed by the schedule.- Parameters:
action
- the value to set- Returns:
- this builder
-
recurrenceDetails
public CreateScheduleDetails.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.
- Parameters:
recurrenceDetails
- the value to set- Returns:
- this builder
-
recurrenceType
public CreateScheduleDetails.Builder recurrenceType(CreateScheduleDetails.RecurrenceType recurrenceType)
Type of recurrence of a schedule- Parameters:
recurrenceType
- the value to set- Returns:
- this builder
-
resourceFilters
public CreateScheduleDetails.Builder resourceFilters(List<ResourceFilter> resourceFilters)
This is a list of resources filters.The schedule will be applied to resources matching all of them.
- Parameters:
resourceFilters
- the value to set- Returns:
- this builder
-
resources
public CreateScheduleDetails.Builder resources(List<Resource> resources)
This is the list of resources to which the scheduled operation is applied.- Parameters:
resources
- the value to set- Returns:
- this builder
-
timeStarts
public CreateScheduleDetails.Builder timeStarts(Date timeStarts)
This is the date and time the schedule starts, in the format defined by RFC 3339Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeStarts
- the value to set- Returns:
- this builder
-
timeEnds
public CreateScheduleDetails.Builder timeEnds(Date timeEnds)
This is the date and time the schedule ends, in the format defined by RFC 3339Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeEnds
- the value to set- Returns:
- this builder
-
freeformTags
public CreateScheduleDetails.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"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public CreateScheduleDetails.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"}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
build
public CreateScheduleDetails build()
-
copy
public CreateScheduleDetails.Builder copy(CreateScheduleDetails model)
-
-