AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PollForTaskRequest.h
1
6#pragma once
7#include <aws/datapipeline/DataPipeline_EXPORTS.h>
8#include <aws/datapipeline/DataPipelineRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datapipeline/model/InstanceIdentity.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DataPipeline
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_DATAPIPELINE_API PollForTaskRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "PollForTask"; }
35
36 AWS_DATAPIPELINE_API Aws::String SerializePayload() const override;
37
38 AWS_DATAPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
50 inline const Aws::String& GetWorkerGroup() const { return m_workerGroup; }
51 inline bool WorkerGroupHasBeenSet() const { return m_workerGroupHasBeenSet; }
52 template<typename WorkerGroupT = Aws::String>
53 void SetWorkerGroup(WorkerGroupT&& value) { m_workerGroupHasBeenSet = true; m_workerGroup = std::forward<WorkerGroupT>(value); }
54 template<typename WorkerGroupT = Aws::String>
55 PollForTaskRequest& WithWorkerGroup(WorkerGroupT&& value) { SetWorkerGroup(std::forward<WorkerGroupT>(value)); return *this;}
57
59
62 inline const Aws::String& GetHostname() const { return m_hostname; }
63 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
64 template<typename HostnameT = Aws::String>
65 void SetHostname(HostnameT&& value) { m_hostnameHasBeenSet = true; m_hostname = std::forward<HostnameT>(value); }
66 template<typename HostnameT = Aws::String>
67 PollForTaskRequest& WithHostname(HostnameT&& value) { SetHostname(std::forward<HostnameT>(value)); return *this;}
69
71
82 inline const InstanceIdentity& GetInstanceIdentity() const { return m_instanceIdentity; }
83 inline bool InstanceIdentityHasBeenSet() const { return m_instanceIdentityHasBeenSet; }
84 template<typename InstanceIdentityT = InstanceIdentity>
85 void SetInstanceIdentity(InstanceIdentityT&& value) { m_instanceIdentityHasBeenSet = true; m_instanceIdentity = std::forward<InstanceIdentityT>(value); }
86 template<typename InstanceIdentityT = InstanceIdentity>
87 PollForTaskRequest& WithInstanceIdentity(InstanceIdentityT&& value) { SetInstanceIdentity(std::forward<InstanceIdentityT>(value)); return *this;}
89 private:
90
91 Aws::String m_workerGroup;
92 bool m_workerGroupHasBeenSet = false;
93
94 Aws::String m_hostname;
95 bool m_hostnameHasBeenSet = false;
96
97 InstanceIdentity m_instanceIdentity;
98 bool m_instanceIdentityHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace DataPipeline
103} // namespace Aws
PollForTaskRequest & WithInstanceIdentity(InstanceIdentityT &&value)
PollForTaskRequest & WithWorkerGroup(WorkerGroupT &&value)
void SetInstanceIdentity(InstanceIdentityT &&value)
AWS_DATAPIPELINE_API Aws::String SerializePayload() const override
AWS_DATAPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_DATAPIPELINE_API PollForTaskRequest()=default
PollForTaskRequest & WithHostname(HostnameT &&value)
const InstanceIdentity & GetInstanceIdentity() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String