Package com.uber.cadence.internal.common
Class StartWorkflowExecutionParameters
- java.lang.Object
-
- com.uber.cadence.internal.common.StartWorkflowExecutionParameters
-
public final class StartWorkflowExecutionParameters extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StartWorkflowExecutionParameters()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static StartWorkflowExecutionParameters
fromWorkflowOptions(WorkflowOptions options)
java.util.Map<java.lang.String,byte[]>
getContext()
java.lang.String
getCronSchedule()
java.time.Duration
getDelayStart()
long
getExecutionStartToCloseTimeoutSeconds()
Returns the value of the StartToCloseTimeout property for this object.byte[]
getInput()
Returns the value of the Input property for this object.java.util.Map<java.lang.String,byte[]>
getMemo()
RetryParameters
getRetryParameters()
java.util.Map<java.lang.String,byte[]>
getSearchAttributes()
java.lang.String
getTaskList()
Returns the value of the TaskList property for this object.long
getTaskStartToCloseTimeoutSeconds()
java.lang.String
getWorkflowId()
Returns the value of the WorkflowId property for this object.WorkflowIdReusePolicy
getWorkflowIdReusePolicy()
WorkflowType
getWorkflowType()
Returns the value of the WorkflowType property for this object.int
hashCode()
void
setContext(java.util.Map<java.lang.String,byte[]> context)
void
setCronSchedule(java.lang.String cronSchedule)
void
setDelayStart(java.time.Duration delayStart)
void
setExecutionStartToCloseTimeoutSeconds(long executionStartToCloseTimeoutSeconds)
Sets the value of the StartToCloseTimeout property for this object.void
setInput(byte[] input)
Sets the value of the Input property for this object.void
setMemo(java.util.Map<java.lang.String,byte[]> memo)
void
setRetryParameters(RetryParameters retryParameters)
void
setSearchAttributes(java.util.Map<java.lang.String,byte[]> searchAttributes)
void
setTaskList(java.lang.String taskList)
Sets the value of the TaskList property for this object.void
setTaskStartToCloseTimeoutSeconds(long taskStartToCloseTimeoutSeconds)
void
setWorkflowId(java.lang.String workflowId)
Sets the value of the WorkflowId property for this object.void
setWorkflowIdReusePolicy(WorkflowIdReusePolicy workflowIdReusePolicy)
void
setWorkflowType(WorkflowType workflowType)
Sets the value of the WorkflowType property for this object.java.lang.String
toString()
StartWorkflowExecutionParameters
withExecutionStartToCloseTimeoutSeconds(long executionStartToCloseTimeoutSeconds)
Sets the value of the StartToCloseTimeout property for this object.StartWorkflowExecutionParameters
withInput(byte[] input)
Sets the value of the Input property for this object.StartWorkflowExecutionParameters
withRetryParameters(RetryParameters retryParameters)
StartWorkflowExecutionParameters
withTaskList(java.lang.String taskList)
Sets the value of the TaskList property for this object.StartWorkflowExecutionParameters
withTaskStartToCloseTimeoutSeconds(int taskStartToCloseTimeoutSeconds)
StartWorkflowExecutionParameters
withWorkflowId(java.lang.String workflowId)
Sets the value of the WorkflowId property for this object.StartWorkflowExecutionParameters
withWorkflowIdReusePolicy(WorkflowIdReusePolicy workflowIdReusePolicy)
StartWorkflowExecutionParameters
withWorkflowType(WorkflowType workflowType)
Sets the value of the WorkflowType property for this object.
-
-
-
Method Detail
-
getWorkflowId
public java.lang.String getWorkflowId()
Returns the value of the WorkflowId property for this object.Constraints:
Length: 1 - 64- Returns:
- The value of the WorkflowId property for this object.
-
setWorkflowId
public void setWorkflowId(java.lang.String workflowId)
Sets the value of the WorkflowId property for this object.Constraints:
Length: 1 - 64- Parameters:
workflowId
- The new value for the WorkflowId property for this object.
-
withWorkflowId
public StartWorkflowExecutionParameters withWorkflowId(java.lang.String workflowId)
Sets the value of the WorkflowId property for this object.Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64- Parameters:
workflowId
- The new value for the WorkflowId property for this object.- Returns:
- A reference to this updated object so that method calls can be chained together.
-
getWorkflowType
public WorkflowType getWorkflowType()
Returns the value of the WorkflowType property for this object.- Returns:
- The value of the WorkflowType property for this object.
-
setWorkflowType
public void setWorkflowType(WorkflowType workflowType)
Sets the value of the WorkflowType property for this object.- Parameters:
workflowType
- The new value for the WorkflowType property for this object.
-
withWorkflowType
public StartWorkflowExecutionParameters withWorkflowType(WorkflowType workflowType)
Sets the value of the WorkflowType property for this object.Returns a reference to this object so that method calls can be chained together.
- Parameters:
workflowType
- The new value for the WorkflowType property for this object.- Returns:
- A reference to this updated object so that method calls can be chained together.
-
getWorkflowIdReusePolicy
public WorkflowIdReusePolicy getWorkflowIdReusePolicy()
-
setWorkflowIdReusePolicy
public void setWorkflowIdReusePolicy(WorkflowIdReusePolicy workflowIdReusePolicy)
-
withWorkflowIdReusePolicy
public StartWorkflowExecutionParameters withWorkflowIdReusePolicy(WorkflowIdReusePolicy workflowIdReusePolicy)
-
getTaskList
public java.lang.String getTaskList()
Returns the value of the TaskList property for this object.- Returns:
- The value of the TaskList property for this object.
-
setTaskList
public void setTaskList(java.lang.String taskList)
Sets the value of the TaskList property for this object.- Parameters:
taskList
- The new value for the TaskList property for this object.
-
withTaskList
public StartWorkflowExecutionParameters withTaskList(java.lang.String taskList)
Sets the value of the TaskList property for this object.Returns a reference to this object so that method calls can be chained together.
- Parameters:
taskList
- The new value for the TaskList property for this object.- Returns:
- A reference to this updated object so that method calls can be chained together.
-
getInput
public byte[] getInput()
Returns the value of the Input property for this object.Constraints:
Length: 0 - 100000- Returns:
- The value of the Input property for this object.
-
setInput
public void setInput(byte[] input)
Sets the value of the Input property for this object.Constraints:
Length: 0 - 100000- Parameters:
input
- The new value for the Input property for this object.
-
withInput
public StartWorkflowExecutionParameters withInput(byte[] input)
Sets the value of the Input property for this object.Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100000- Parameters:
input
- The new value for the Input property for this object.- Returns:
- A reference to this updated object so that method calls can be chained together.
-
getExecutionStartToCloseTimeoutSeconds
public long getExecutionStartToCloseTimeoutSeconds()
Returns the value of the StartToCloseTimeout property for this object.Constraints:
Length: 0 - 64- Returns:
- The value of the StartToCloseTimeout property for this object.
-
setExecutionStartToCloseTimeoutSeconds
public void setExecutionStartToCloseTimeoutSeconds(long executionStartToCloseTimeoutSeconds)
Sets the value of the StartToCloseTimeout property for this object.Constraints:
Length: 0 - 64- Parameters:
executionStartToCloseTimeoutSeconds
- The new value for the StartToCloseTimeout property for this object.
-
withExecutionStartToCloseTimeoutSeconds
public StartWorkflowExecutionParameters withExecutionStartToCloseTimeoutSeconds(long executionStartToCloseTimeoutSeconds)
Sets the value of the StartToCloseTimeout property for this object.Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 64- Parameters:
executionStartToCloseTimeoutSeconds
- The new value for the StartToCloseTimeout property for this object.- Returns:
- A reference to this updated object so that method calls can be chained together.
-
getTaskStartToCloseTimeoutSeconds
public long getTaskStartToCloseTimeoutSeconds()
-
setTaskStartToCloseTimeoutSeconds
public void setTaskStartToCloseTimeoutSeconds(long taskStartToCloseTimeoutSeconds)
-
withTaskStartToCloseTimeoutSeconds
public StartWorkflowExecutionParameters withTaskStartToCloseTimeoutSeconds(int taskStartToCloseTimeoutSeconds)
-
getRetryParameters
public RetryParameters getRetryParameters()
-
setRetryParameters
public void setRetryParameters(RetryParameters retryParameters)
-
getCronSchedule
public java.lang.String getCronSchedule()
-
setCronSchedule
public void setCronSchedule(java.lang.String cronSchedule)
-
getMemo
public java.util.Map<java.lang.String,byte[]> getMemo()
-
setMemo
public void setMemo(java.util.Map<java.lang.String,byte[]> memo)
-
getSearchAttributes
public java.util.Map<java.lang.String,byte[]> getSearchAttributes()
-
setSearchAttributes
public void setSearchAttributes(java.util.Map<java.lang.String,byte[]> searchAttributes)
-
getContext
public java.util.Map<java.lang.String,byte[]> getContext()
-
setContext
public void setContext(java.util.Map<java.lang.String,byte[]> context)
-
setDelayStart
public void setDelayStart(java.time.Duration delayStart)
-
getDelayStart
public java.time.Duration getDelayStart()
-
withRetryParameters
public StartWorkflowExecutionParameters withRetryParameters(RetryParameters retryParameters)
-
fromWorkflowOptions
public static StartWorkflowExecutionParameters fromWorkflowOptions(WorkflowOptions options)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-