Package com.microsoft.durabletask
Class NewOrchestrationInstanceOptions
- java.lang.Object
-
- com.microsoft.durabletask.NewOrchestrationInstanceOptions
-
public final class NewOrchestrationInstanceOptions extends java.lang.ObjectOptions for starting a new instance of an orchestration.
-
-
Constructor Summary
Constructors Constructor Description NewOrchestrationInstanceOptions()Default constructor for theNewOrchestrationInstanceOptionsclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetInput()Gets the input of the new orchestration.java.lang.StringgetInstanceId()Gets the instance ID of the new orchestration.java.time.InstantgetStartTime()Gets the configured start time of the new orchestration instance.java.lang.StringgetVersion()Gets the user-specified version of the new orchestration.NewOrchestrationInstanceOptionssetInput(java.lang.Object input)Sets the input of the orchestration to start.NewOrchestrationInstanceOptionssetInstanceId(java.lang.String instanceId)Sets the instance ID of the orchestration to start.NewOrchestrationInstanceOptionssetStartTime(java.time.Instant startTime)Sets the start time of the new orchestration instance.NewOrchestrationInstanceOptionssetVersion(java.lang.String version)Sets the version of the orchestration to start.
-
-
-
Constructor Detail
-
NewOrchestrationInstanceOptions
public NewOrchestrationInstanceOptions()
Default constructor for theNewOrchestrationInstanceOptionsclass.
-
-
Method Detail
-
setVersion
public NewOrchestrationInstanceOptions setVersion(java.lang.String version)
Sets the version of the orchestration to start.- Parameters:
version- the user-defined version of the orchestration- Returns:
- this
NewOrchestrationInstanceOptionsobject
-
setInstanceId
public NewOrchestrationInstanceOptions setInstanceId(java.lang.String instanceId)
Sets the instance ID of the orchestration to start.If no instance ID is configured, the orchestration will be created with a randomly generated instance ID.
- Parameters:
instanceId- the ID of the new orchestration instance- Returns:
- this
NewOrchestrationInstanceOptionsobject
-
setInput
public NewOrchestrationInstanceOptions setInput(java.lang.Object input)
Sets the input of the orchestration to start.There are no restrictions on the type of inputs that can be used except that they must be serializable using the
DataConverterthat was configured for theDurableTaskClientat creation time.- Parameters:
input- the input of the new orchestration instance- Returns:
- this
NewOrchestrationInstanceOptionsobject
-
setStartTime
public NewOrchestrationInstanceOptions setStartTime(java.time.Instant startTime)
Sets the start time of the new orchestration instance.By default, new orchestration instances start executing immediately. This method can be used to start them at a specific time in the future.
- Parameters:
startTime- the start time of the new orchestration instance- Returns:
- this
NewOrchestrationInstanceOptionsobject
-
getVersion
public java.lang.String getVersion()
Gets the user-specified version of the new orchestration.- Returns:
- the user-specified version of the new orchestration.
-
getInstanceId
public java.lang.String getInstanceId()
Gets the instance ID of the new orchestration.- Returns:
- the instance ID of the new orchestration.
-
getInput
public java.lang.Object getInput()
Gets the input of the new orchestration.- Returns:
- the input of the new orchestration.
-
getStartTime
public java.time.Instant getStartTime()
Gets the configured start time of the new orchestration instance.- Returns:
- the configured start time of the new orchestration instance.
-
-