Class ScheduledTaskSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.loganalytics.model.ScheduledTaskSummary.Builder
-
- Enclosing class:
- ScheduledTaskSummary
public static class ScheduledTaskSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScheduledTaskSummary
build()
ScheduledTaskSummary.Builder
compartmentId(String compartmentId)
Compartment Identifier [OCID] (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm).ScheduledTaskSummary.Builder
copy(ScheduledTaskSummary model)
ScheduledTaskSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.ScheduledTaskSummary.Builder
displayName(String displayName)
A user-friendly name that is changeable and that does not have to be unique.ScheduledTaskSummary.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.ScheduledTaskSummary.Builder
id(String id)
The OCID of the data plane resource.ScheduledTaskSummary.Builder
lastExecutionStatus(ScheduledTaskSummary.LastExecutionStatus lastExecutionStatus)
The most recent task execution status.ScheduledTaskSummary.Builder
lifecycleState(ScheduledTask.LifecycleState lifecycleState)
The current state of the scheduled task.ScheduledTaskSummary.Builder
pauseReason(ScheduledTask.PauseReason pauseReason)
reason for taskStatus PAUSED.ScheduledTaskSummary.Builder
targetService(String targetService)
Target ServiceScheduledTaskSummary.Builder
taskStatus(ScheduledTaskSummary.TaskStatus taskStatus)
Status of the scheduled task.ScheduledTaskSummary.Builder
taskType(TaskType taskType)
Task type.ScheduledTaskSummary.Builder
timeCreated(Date timeCreated)
The date and time the schedule task was created, in the format defined by RFC3339.ScheduledTaskSummary.Builder
timeLastExecuted(Date timeLastExecuted)
The date and time the scheduled task last executed, in the format defined by RFC3339.ScheduledTaskSummary.Builder
timeUpdated(Date timeUpdated)
The date and time the scheduled task was last updated, in the format defined by RFC3339.ScheduledTaskSummary.Builder
workRequestId(String workRequestId)
most recent Work Request Identifier [OCID] (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.
-
-
-
Method Detail
-
id
public ScheduledTaskSummary.Builder id(String id)
The OCID of the data plane resource.- Parameters:
id
- the value to set- Returns:
- this builder
-
taskType
public ScheduledTaskSummary.Builder taskType(TaskType taskType)
Task type.- Parameters:
taskType
- the value to set- Returns:
- this builder
-
targetService
public ScheduledTaskSummary.Builder targetService(String targetService)
Target Service- Parameters:
targetService
- the value to set- Returns:
- this builder
-
compartmentId
public ScheduledTaskSummary.Builder compartmentId(String compartmentId)
Compartment Identifier [OCID] (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm).- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
timeCreated
public ScheduledTaskSummary.Builder timeCreated(Date timeCreated)
The date and time the schedule task was created, in the format defined by RFC3339.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public ScheduledTaskSummary.Builder timeUpdated(Date timeUpdated)
The date and time the scheduled task was last updated, in the format defined by RFC3339.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
lifecycleState
public ScheduledTaskSummary.Builder lifecycleState(ScheduledTask.LifecycleState lifecycleState)
The current state of the scheduled task.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
taskStatus
public ScheduledTaskSummary.Builder taskStatus(ScheduledTaskSummary.TaskStatus taskStatus)
Status of the scheduled task.- Parameters:
taskStatus
- the value to set- Returns:
- this builder
-
pauseReason
public ScheduledTaskSummary.Builder pauseReason(ScheduledTask.PauseReason pauseReason)
reason for taskStatus PAUSED.- Parameters:
pauseReason
- the value to set- Returns:
- this builder
-
workRequestId
public ScheduledTaskSummary.Builder workRequestId(String workRequestId)
most recent Work Request Identifier [OCID] (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.- Parameters:
workRequestId
- the value to set- Returns:
- this builder
-
displayName
public ScheduledTaskSummary.Builder displayName(String displayName)
A user-friendly name that is changeable and that does not have to be unique.Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
freeformTags
public ScheduledTaskSummary.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 ScheduledTaskSummary.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
-
lastExecutionStatus
public ScheduledTaskSummary.Builder lastExecutionStatus(ScheduledTaskSummary.LastExecutionStatus lastExecutionStatus)
The most recent task execution status.- Parameters:
lastExecutionStatus
- the value to set- Returns:
- this builder
-
timeLastExecuted
public ScheduledTaskSummary.Builder timeLastExecuted(Date timeLastExecuted)
The date and time the scheduled task last executed, in the format defined by RFC3339.- Parameters:
timeLastExecuted
- the value to set- Returns:
- this builder
-
build
public ScheduledTaskSummary build()
-
copy
public ScheduledTaskSummary.Builder copy(ScheduledTaskSummary model)
-
-