Interface ThreatModelJobTask.Builder

  • Method Details

    • taskId

      The unique identifier of the task.

      Parameters:
      taskId - The unique identifier of the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • threatModelId

      ThreatModelJobTask.Builder threatModelId(String threatModelId)

      The unique identifier of the threat model associated with the task.

      Parameters:
      threatModelId - The unique identifier of the threat model associated with the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • threatModelJobId

      ThreatModelJobTask.Builder threatModelJobId(String threatModelJobId)

      The unique identifier of the threat model job that contains the task.

      Parameters:
      threatModelJobId - The unique identifier of the threat model job that contains the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentSpaceId

      ThreatModelJobTask.Builder agentSpaceId(String agentSpaceId)

      The unique identifier of the agent space.

      Parameters:
      agentSpaceId - The unique identifier of the agent space.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • title

      The title of the task.

      Parameters:
      title - The title of the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      ThreatModelJobTask.Builder description(String description)

      A description of the task.

      Parameters:
      description - A description of the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • executionStatus

      ThreatModelJobTask.Builder executionStatus(String executionStatus)

      The current execution status of the task.

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

      ThreatModelJobTask.Builder executionStatus(TaskExecutionStatus executionStatus)

      The current execution status of the task.

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

      ThreatModelJobTask.Builder logsLocation(LogLocation logsLocation)

      The location of the task execution logs.

      Parameters:
      logsLocation - The location of the task execution logs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logsLocation

      default ThreatModelJobTask.Builder logsLocation(Consumer<LogLocation.Builder> logsLocation)

      The location of the task execution logs.

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

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

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

      ThreatModelJobTask.Builder createdAt(Instant createdAt)

      The date and time the task was created, in UTC format.

      Parameters:
      createdAt - The date and time the task was created, in UTC format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      ThreatModelJobTask.Builder updatedAt(Instant updatedAt)

      The date and time the task was last updated, in UTC format.

      Parameters:
      updatedAt - The date and time the task was last updated, in UTC format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.