AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PollForTaskRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datapipeline/DataPipelineRequest.h>
9#include <aws/datapipeline/DataPipeline_EXPORTS.h>
10#include <aws/datapipeline/model/InstanceIdentity.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DataPipeline {
16namespace Model {
17
24 public:
25 AWS_DATAPIPELINE_API PollForTaskRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PollForTask"; }
32
33 AWS_DATAPIPELINE_API Aws::String SerializePayload() const override;
34
35 AWS_DATAPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
46 inline const Aws::String& GetWorkerGroup() const { return m_workerGroup; }
47 inline bool WorkerGroupHasBeenSet() const { return m_workerGroupHasBeenSet; }
48 template <typename WorkerGroupT = Aws::String>
49 void SetWorkerGroup(WorkerGroupT&& value) {
50 m_workerGroupHasBeenSet = true;
51 m_workerGroup = std::forward<WorkerGroupT>(value);
52 }
53 template <typename WorkerGroupT = Aws::String>
54 PollForTaskRequest& WithWorkerGroup(WorkerGroupT&& value) {
55 SetWorkerGroup(std::forward<WorkerGroupT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetHostname() const { return m_hostname; }
65 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
66 template <typename HostnameT = Aws::String>
67 void SetHostname(HostnameT&& value) {
68 m_hostnameHasBeenSet = true;
69 m_hostname = std::forward<HostnameT>(value);
70 }
71 template <typename HostnameT = Aws::String>
72 PollForTaskRequest& WithHostname(HostnameT&& value) {
73 SetHostname(std::forward<HostnameT>(value));
74 return *this;
75 }
77
79
90 inline const InstanceIdentity& GetInstanceIdentity() const { return m_instanceIdentity; }
91 inline bool InstanceIdentityHasBeenSet() const { return m_instanceIdentityHasBeenSet; }
92 template <typename InstanceIdentityT = InstanceIdentity>
93 void SetInstanceIdentity(InstanceIdentityT&& value) {
94 m_instanceIdentityHasBeenSet = true;
95 m_instanceIdentity = std::forward<InstanceIdentityT>(value);
96 }
97 template <typename InstanceIdentityT = InstanceIdentity>
98 PollForTaskRequest& WithInstanceIdentity(InstanceIdentityT&& value) {
99 SetInstanceIdentity(std::forward<InstanceIdentityT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_workerGroup;
105
106 Aws::String m_hostname;
107
108 InstanceIdentity m_instanceIdentity;
109 bool m_workerGroupHasBeenSet = false;
110 bool m_hostnameHasBeenSet = false;
111 bool m_instanceIdentityHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace DataPipeline
116} // 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