public static class TaskSchedule.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TaskSchedule.Builder |
authMode(TaskSchedule.AuthMode authMode)
The authorization mode for the task.
|
TaskSchedule |
build() |
TaskSchedule.Builder |
configProviderDelegate(ConfigProvider configProviderDelegate) |
TaskSchedule.Builder |
copy(TaskSchedule model) |
TaskSchedule.Builder |
description(String description)
Detailed description for the object.
|
TaskSchedule.Builder |
endTimeMillis(Long endTimeMillis)
The end time in milliseconds.
|
TaskSchedule.Builder |
expectedDuration(Double expectedDuration)
The expected duration of the task execution.
|
TaskSchedule.Builder |
expectedDurationUnit(TaskSchedule.ExpectedDurationUnit expectedDurationUnit)
The expected duration unit of the task execution.
|
TaskSchedule.Builder |
identifier(String identifier)
Value can only contain upper case letters, underscore, and numbers.
|
TaskSchedule.Builder |
isBackfillEnabled(Boolean isBackfillEnabled)
Whether the backfill is enabled
|
TaskSchedule.Builder |
isConcurrentAllowed(Boolean isConcurrentAllowed)
Whether the same task can be executed concurrently.
|
TaskSchedule.Builder |
isEnabled(Boolean isEnabled)
Whether the schedule is enabled.
|
TaskSchedule.Builder |
key(String key)
Generated key that can be used in API calls to identify taskSchedule.
|
TaskSchedule.Builder |
lastRunDetails(LastRunDetails lastRunDetails) |
TaskSchedule.Builder |
metadata(ObjectMetadata metadata) |
TaskSchedule.Builder |
modelType(String modelType)
The type of the object.
|
TaskSchedule.Builder |
modelVersion(String modelVersion)
This is a version number that is used by the service to upgrade objects if needed through
releases of the service.
|
TaskSchedule.Builder |
name(String name)
Free form text without any restriction on permitted characters.
|
TaskSchedule.Builder |
objectStatus(Integer objectStatus)
The status of an object that can be set to value 1 for shallow references across objects,
other values reserved.
|
TaskSchedule.Builder |
objectVersion(Integer objectVersion)
This is used by the service for optimistic locking of the object, to prevent multiple
users from simultaneously updating the object.
|
TaskSchedule.Builder |
parentRef(ParentReference parentRef) |
TaskSchedule.Builder |
retryAttempts(Integer retryAttempts)
The number of retry attempts.
|
TaskSchedule.Builder |
retryDelay(Double retryDelay)
The retry delay, the unit for measurement is in the property retry delay unit.
|
TaskSchedule.Builder |
retryDelayUnit(TaskSchedule.RetryDelayUnit retryDelayUnit)
The unit for the retry delay.
|
TaskSchedule.Builder |
scheduleRef(Schedule scheduleRef) |
TaskSchedule.Builder |
startTimeMillis(Long startTimeMillis)
The start time in milliseconds.
|
public TaskSchedule.Builder key(String key)
Generated key that can be used in API calls to identify taskSchedule. On scenarios where reference to the taskSchedule is needed, a value can be passed in create.
key
- the value to setpublic TaskSchedule.Builder modelVersion(String modelVersion)
This is a version number that is used by the service to upgrade objects if needed through releases of the service.
modelVersion
- the value to setpublic TaskSchedule.Builder modelType(String modelType)
The type of the object.
modelType
- the value to setpublic TaskSchedule.Builder parentRef(ParentReference parentRef)
public TaskSchedule.Builder name(String name)
Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.
name
- the value to setpublic TaskSchedule.Builder description(String description)
Detailed description for the object.
description
- the value to setpublic TaskSchedule.Builder objectVersion(Integer objectVersion)
This is used by the service for optimistic locking of the object, to prevent multiple users from simultaneously updating the object.
objectVersion
- the value to setpublic TaskSchedule.Builder objectStatus(Integer objectStatus)
The status of an object that can be set to value 1 for shallow references across objects, other values reserved.
objectStatus
- the value to setpublic TaskSchedule.Builder identifier(String identifier)
Value can only contain upper case letters, underscore, and numbers. It should begin with upper case letter or underscore. The value can be modified.
identifier
- the value to setpublic TaskSchedule.Builder scheduleRef(Schedule scheduleRef)
public TaskSchedule.Builder configProviderDelegate(ConfigProvider configProviderDelegate)
public TaskSchedule.Builder isEnabled(Boolean isEnabled)
Whether the schedule is enabled.
isEnabled
- the value to setpublic TaskSchedule.Builder retryAttempts(Integer retryAttempts)
The number of retry attempts.
retryAttempts
- the value to setpublic TaskSchedule.Builder retryDelayUnit(TaskSchedule.RetryDelayUnit retryDelayUnit)
The unit for the retry delay.
retryDelayUnit
- the value to setpublic TaskSchedule.Builder retryDelay(Double retryDelay)
The retry delay, the unit for measurement is in the property retry delay unit.
retryDelay
- the value to setpublic TaskSchedule.Builder startTimeMillis(Long startTimeMillis)
The start time in milliseconds.
startTimeMillis
- the value to setpublic TaskSchedule.Builder endTimeMillis(Long endTimeMillis)
The end time in milliseconds.
endTimeMillis
- the value to setpublic TaskSchedule.Builder isConcurrentAllowed(Boolean isConcurrentAllowed)
Whether the same task can be executed concurrently.
isConcurrentAllowed
- the value to setpublic TaskSchedule.Builder isBackfillEnabled(Boolean isBackfillEnabled)
Whether the backfill is enabled
isBackfillEnabled
- the value to setpublic TaskSchedule.Builder authMode(TaskSchedule.AuthMode authMode)
The authorization mode for the task.
authMode
- the value to setpublic TaskSchedule.Builder expectedDuration(Double expectedDuration)
The expected duration of the task execution.
expectedDuration
- the value to setpublic TaskSchedule.Builder expectedDurationUnit(TaskSchedule.ExpectedDurationUnit expectedDurationUnit)
The expected duration unit of the task execution.
expectedDurationUnit
- the value to setpublic TaskSchedule.Builder lastRunDetails(LastRunDetails lastRunDetails)
public TaskSchedule.Builder metadata(ObjectMetadata metadata)
public TaskSchedule build()
public TaskSchedule.Builder copy(TaskSchedule model)
Copyright © 2016–2024. All rights reserved.