/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace DataPipeline { namespace Model { /** *

Contains the parameters for PollForTask.

See Also:

AWS * API Reference

*/ class PollForTaskRequest : public DataPipelineRequest { public: AWS_DATAPIPELINE_API PollForTaskRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PollForTask"; } AWS_DATAPIPELINE_API Aws::String SerializePayload() const override; AWS_DATAPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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.

*/ inline const Aws::String& GetWorkerGroup() const{ return m_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.

*/ inline bool WorkerGroupHasBeenSet() const { return m_workerGroupHasBeenSet; } /** *

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.

*/ inline void SetWorkerGroup(const Aws::String& value) { m_workerGroupHasBeenSet = true; m_workerGroup = value; } /** *

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.

*/ inline void SetWorkerGroup(Aws::String&& value) { m_workerGroupHasBeenSet = true; m_workerGroup = std::move(value); } /** *

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.

*/ inline void SetWorkerGroup(const char* value) { m_workerGroupHasBeenSet = true; m_workerGroup.assign(value); } /** *

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.

*/ inline PollForTaskRequest& WithWorkerGroup(const Aws::String& value) { SetWorkerGroup(value); return *this;} /** *

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.

*/ inline PollForTaskRequest& WithWorkerGroup(Aws::String&& value) { SetWorkerGroup(std::move(value)); return *this;} /** *

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.

*/ inline PollForTaskRequest& WithWorkerGroup(const char* value) { SetWorkerGroup(value); return *this;} /** *

The public DNS name of the calling task runner.

*/ inline const Aws::String& GetHostname() const{ return m_hostname; } /** *

The public DNS name of the calling task runner.

*/ inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; } /** *

The public DNS name of the calling task runner.

*/ inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; } /** *

The public DNS name of the calling task runner.

*/ inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); } /** *

The public DNS name of the calling task runner.

*/ inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); } /** *

The public DNS name of the calling task runner.

*/ inline PollForTaskRequest& WithHostname(const Aws::String& value) { SetHostname(value); return *this;} /** *

The public DNS name of the calling task runner.

*/ inline PollForTaskRequest& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;} /** *

The public DNS name of the calling task runner.

*/ inline PollForTaskRequest& WithHostname(const char* value) { SetHostname(value); return *this;} /** *

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.

*/ inline const InstanceIdentity& GetInstanceIdentity() const{ return m_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.

*/ inline bool InstanceIdentityHasBeenSet() const { return m_instanceIdentityHasBeenSet; } /** *

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.

*/ inline void SetInstanceIdentity(const InstanceIdentity& value) { m_instanceIdentityHasBeenSet = true; m_instanceIdentity = value; } /** *

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.

*/ inline void SetInstanceIdentity(InstanceIdentity&& value) { m_instanceIdentityHasBeenSet = true; m_instanceIdentity = std::move(value); } /** *

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.

*/ inline PollForTaskRequest& WithInstanceIdentity(const InstanceIdentity& value) { SetInstanceIdentity(value); return *this;} /** *

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.

*/ inline PollForTaskRequest& WithInstanceIdentity(InstanceIdentity&& value) { SetInstanceIdentity(std::move(value)); return *this;} private: Aws::String m_workerGroup; bool m_workerGroupHasBeenSet = false; Aws::String m_hostname; bool m_hostnameHasBeenSet = false; InstanceIdentity m_instanceIdentity; bool m_instanceIdentityHasBeenSet = false; }; } // namespace Model } // namespace DataPipeline } // namespace Aws