Interface WorkflowTypeInfo.Builder

All Superinterfaces:
Buildable, CopyableBuilder<WorkflowTypeInfo.Builder,WorkflowTypeInfo>, SdkBuilder<WorkflowTypeInfo.Builder,WorkflowTypeInfo>, SdkPojo
Enclosing class:
WorkflowTypeInfo

public static interface WorkflowTypeInfo.Builder extends SdkPojo, CopyableBuilder<WorkflowTypeInfo.Builder,WorkflowTypeInfo>
  • Method Details

    • workflowType

      WorkflowTypeInfo.Builder workflowType(WorkflowType workflowType)

      The workflow type this information is about.

      Parameters:
      workflowType - The workflow type this information is about.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workflowType

      default WorkflowTypeInfo.Builder workflowType(Consumer<WorkflowType.Builder> workflowType)

      The workflow type this information is about.

      This is a convenience method that creates an instance of the WorkflowType.Builder avoiding the need to create one manually via WorkflowType.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to workflowType(WorkflowType).

      Parameters:
      workflowType - a consumer that will call methods on WorkflowType.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current status of the workflow type.

      Parameters:
      status - The current status of the workflow type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current status of the workflow type.

      Parameters:
      status - The current status of the workflow type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • description

      WorkflowTypeInfo.Builder description(String description)

      The description of the type registered through RegisterWorkflowType.

      Parameters:
      description - The description of the type registered through RegisterWorkflowType.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creationDate

      WorkflowTypeInfo.Builder creationDate(Instant creationDate)

      The date when this type was registered.

      Parameters:
      creationDate - The date when this type was registered.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deprecationDate

      WorkflowTypeInfo.Builder deprecationDate(Instant deprecationDate)

      If the type is in deprecated state, then it is set to the date when the type was deprecated.

      Parameters:
      deprecationDate - If the type is in deprecated state, then it is set to the date when the type was deprecated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.