Package com.oracle.bmc.usageapi.model
Class Schedule.Builder
- java.lang.Object
-
- com.oracle.bmc.usageapi.model.Schedule.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Schedule
build()
Schedule.Builder
compartmentId(String compartmentId)
The customer tenancy.Schedule.Builder
copy(Schedule model)
Schedule.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Schedule.Builder
description(String description)
The description of the schedule.Schedule.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Schedule.Builder
id(String id)
The OCID representing a unique shedule.Schedule.Builder
lifecycleState(Schedule.LifecycleState lifecycleState)
The schedule lifecycle state.Schedule.Builder
name(String name)
The unique name of the schedule created by the user.Schedule.Builder
outputFileFormat(Schedule.OutputFileFormat outputFileFormat)
Specifies the supported output file format.Schedule.Builder
queryProperties(QueryProperties queryProperties)
Schedule.Builder
resultLocation(ResultLocation resultLocation)
Schedule.Builder
savedReportId(String savedReportId)
The saved report ID which can also be used to generate a query.Schedule.Builder
scheduleRecurrences(String scheduleRecurrences)
Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10.Schedule.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.Schedule.Builder
timeCreated(Date timeCreated)
The date and time the schedule was created.Schedule.Builder
timeNextRun(Date timeNextRun)
The date and time of the next job execution.Schedule.Builder
timeScheduled(Date timeScheduled)
The date and time of the first time job execution.
-
-
-
Method Detail
-
id
public Schedule.Builder id(String id)
The OCID representing a unique shedule.- Parameters:
id
- the value to set- Returns:
- this builder
-
name
public Schedule.Builder name(String name)
The unique name of the schedule created by the user.- Parameters:
name
- the value to set- Returns:
- this builder
-
compartmentId
public Schedule.Builder compartmentId(String compartmentId)
The customer tenancy.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
resultLocation
public Schedule.Builder resultLocation(ResultLocation resultLocation)
-
description
public Schedule.Builder description(String description)
The description of the schedule.- Parameters:
description
- the value to set- Returns:
- this builder
-
timeNextRun
public Schedule.Builder timeNextRun(Date timeNextRun)
The date and time of the next job execution.- Parameters:
timeNextRun
- the value to set- Returns:
- this builder
-
outputFileFormat
public Schedule.Builder outputFileFormat(Schedule.OutputFileFormat outputFileFormat)
Specifies the supported output file format.- Parameters:
outputFileFormat
- the value to set- Returns:
- this builder
-
savedReportId
public Schedule.Builder savedReportId(String savedReportId)
The saved report ID which can also be used to generate a query.- Parameters:
savedReportId
- the value to set- Returns:
- this builder
-
scheduleRecurrences
public Schedule.Builder scheduleRecurrences(String scheduleRecurrences)
Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10.Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
- Parameters:
scheduleRecurrences
- the value to set- Returns:
- this builder
-
timeScheduled
public Schedule.Builder timeScheduled(Date timeScheduled)
The date and time of the first time job execution.- Parameters:
timeScheduled
- the value to set- Returns:
- this builder
-
queryProperties
public Schedule.Builder queryProperties(QueryProperties queryProperties)
-
timeCreated
public Schedule.Builder timeCreated(Date timeCreated)
The date and time the schedule was created.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
lifecycleState
public Schedule.Builder lifecycleState(Schedule.LifecycleState lifecycleState)
The schedule lifecycle state.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
freeformTags
public Schedule.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. See Resource Tags. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public Schedule.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. See Resource Tags. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public Schedule.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. See Resource Tags. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public Schedule build()
-
copy
public Schedule.Builder copy(Schedule model)
-
-