Class Statement.Builder

  • Enclosing class:
    Statement

    public static class Statement.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Statement.Builder id​(Long id)
        The statement ID.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • code

        public Statement.Builder code​(String code)
        The statement code to execute.

        Example: println(sc.version)

        Parameters:
        code - the value to set
        Returns:
        this builder
      • lifecycleState

        public Statement.Builder lifecycleState​(StatementLifecycleState lifecycleState)
        The current state of this statement.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • progress

        public Statement.Builder progress​(Double progress)
        The execution progress.
        Parameters:
        progress - the value to set
        Returns:
        this builder
      • runId

        public Statement.Builder runId​(String runId)
        The ID of a run.
        Parameters:
        runId - the value to set
        Returns:
        this builder
      • timeCreated

        public Statement.Builder timeCreated​(Date timeCreated)
        The date and time the resource was created, expressed in RFC 3339 timestamp format.

        Example: 2018-04-03T21:10:29.600Z

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeCompleted

        public Statement.Builder timeCompleted​(Date timeCompleted)
        The date and time a statement execution was completed, expressed in RFC 3339 timestamp format.

        Example: 2022-05-31T21:10:29.600Z

        Parameters:
        timeCompleted - the value to set
        Returns:
        this builder