Interface PollForTaskRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<PollForTaskRequest.Builder,PollForTaskRequest>, DataPipelineRequest.Builder, SdkBuilder<PollForTaskRequest.Builder,PollForTaskRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
PollForTaskRequest

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

    • workerGroup

      PollForTaskRequest.Builder workerGroup(String workerGroup)

      The type of task the task runner is configured to accept and process. The worker group is set as a field on objects in the pipeline when they are created. You can only specify a single value for workerGroup in the call to PollForTask. There are no wildcard values permitted in workerGroup; the string must be an exact, case-sensitive, match.

      Parameters:
      workerGroup - The type of task the task runner is configured to accept and process. The worker group is set as a field on objects in the pipeline when they are created. You can only specify a single value for workerGroup in the call to PollForTask. There are no wildcard values permitted in workerGroup; the string must be an exact, case-sensitive, match.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hostname

      PollForTaskRequest.Builder hostname(String hostname)

      The public DNS name of the calling task runner.

      Parameters:
      hostname - The public DNS name of the calling task runner.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceIdentity

      PollForTaskRequest.Builder instanceIdentity(InstanceIdentity instanceIdentity)

      Identity information for the EC2 instance that is hosting the task runner. You can get this value from the instance using http://169.254.169.254/latest/meta-data/instance-id. For more information, see Instance Metadata in the Amazon Elastic Compute Cloud User Guide. Passing in this value proves that your task runner is running on an EC2 instance, and ensures the proper AWS Data Pipeline service charges are applied to your pipeline.

      Parameters:
      instanceIdentity - Identity information for the EC2 instance that is hosting the task runner. You can get this value from the instance using http://169.254.169.254/latest/meta-data/instance-id. For more information, see Instance Metadata in the Amazon Elastic Compute Cloud User Guide. Passing in this value proves that your task runner is running on an EC2 instance, and ensures the proper AWS Data Pipeline service charges are applied to your pipeline.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceIdentity

      default PollForTaskRequest.Builder instanceIdentity(Consumer<InstanceIdentity.Builder> instanceIdentity)

      Identity information for the EC2 instance that is hosting the task runner. You can get this value from the instance using http://169.254.169.254/latest/meta-data/instance-id. For more information, see Instance Metadata in the Amazon Elastic Compute Cloud User Guide. Passing in this value proves that your task runner is running on an EC2 instance, and ensures the proper AWS Data Pipeline service charges are applied to your pipeline.

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

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

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

      PollForTaskRequest.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.