Interface StartTaskRequest.Builder

  • Method Details

    • agentContextId

      StartTaskRequest.Builder agentContextId(String agentContextId)

      The agent context, as an ID or ARN.

      Parameters:
      agentContextId - The agent context, as an ID or ARN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientToken

      StartTaskRequest.Builder clientToken(String clientToken)

      A unique, case-sensitive identifier that you provide to ensure that the request completes no more than one time. The token is scoped to your account and the agent context. If you reuse a token on the same agent context with different parameters, the request fails with ValidationException.

      Parameters:
      clientToken - A unique, case-sensitive identifier that you provide to ensure that the request completes no more than one time. The token is scoped to your account and the agent context. If you reuse a token on the same agent context with different parameters, the request fails with ValidationException.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      StartTaskRequest.Builder description(String description)

      A description of the task. Up to 1,024 characters, with no control characters.

      Parameters:
      description - A description of the task. Up to 1,024 characters, with no control characters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inputConfiguration

      StartTaskRequest.Builder inputConfiguration(TaskInputConfiguration inputConfiguration)

      What the task imports. Set exactly one member. The member that you set determines the task's type.

      Parameters:
      inputConfiguration - What the task imports. Set exactly one member. The member that you set determines the task's type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inputConfiguration

      default StartTaskRequest.Builder inputConfiguration(Consumer<TaskInputConfiguration.Builder> inputConfiguration)

      What the task imports. Set exactly one member. The member that you set determines the task's type.

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

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

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

      StartTaskRequest.Builder accessControlConfig(AccessControlConfig accessControlConfig)

      Who can see the content that the task adds to the agent context. AWS Context supports only one entry: ALLOW with principalId *, so that every reader of the agent context can see it. If you omit it or send no entries, AWS Context uses that entry. If you name any other principal, include a DENY entry, or send more than one entry, the request fails with ValidationException, and no task is started.

      Parameters:
      accessControlConfig - Who can see the content that the task adds to the agent context. AWS Context supports only one entry: ALLOW with principalId *, so that every reader of the agent context can see it. If you omit it or send no entries, AWS Context uses that entry. If you name any other principal, include a DENY entry, or send more than one entry, the request fails with ValidationException, and no task is started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accessControlConfig

      default StartTaskRequest.Builder accessControlConfig(Consumer<AccessControlConfig.Builder> accessControlConfig)

      Who can see the content that the task adds to the agent context. AWS Context supports only one entry: ALLOW with principalId *, so that every reader of the agent context can see it. If you omit it or send no entries, AWS Context uses that entry. If you name any other principal, include a DENY entry, or send more than one entry, the request fails with ValidationException, and no task is started.

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

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

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

      StartTaskRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.