AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetWorkerGroup(const Aws::String& value) { m_workerGroupHasBeenSet = true; m_workerGroup = value; }
53 inline void SetWorkerGroup(Aws::String&& value) { m_workerGroupHasBeenSet = true; m_workerGroup = std::move(value); }
54 inline void SetWorkerGroup(const char* value) { m_workerGroupHasBeenSet = true; m_workerGroup.assign(value); }
55 inline PollForTaskRequest& WithWorkerGroup(const Aws::String& value) { SetWorkerGroup(value); return *this;}
56 inline PollForTaskRequest& WithWorkerGroup(Aws::String&& value) { SetWorkerGroup(std::move(value)); return *this;}
57 inline PollForTaskRequest& WithWorkerGroup(const char* value) { SetWorkerGroup(value); return *this;}
59
61
64 inline const Aws::String& GetHostname() const{ return m_hostname; }
65 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
66 inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
67 inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
68 inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
69 inline PollForTaskRequest& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
70 inline PollForTaskRequest& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;}
71 inline PollForTaskRequest& WithHostname(const char* value) { SetHostname(value); return *this;}
73
75
86 inline const InstanceIdentity& GetInstanceIdentity() const{ return m_instanceIdentity; }
87 inline bool InstanceIdentityHasBeenSet() const { return m_instanceIdentityHasBeenSet; }
88 inline void SetInstanceIdentity(const InstanceIdentity& value) { m_instanceIdentityHasBeenSet = true; m_instanceIdentity = value; }
89 inline void SetInstanceIdentity(InstanceIdentity&& value) { m_instanceIdentityHasBeenSet = true; m_instanceIdentity = std::move(value); }
90 inline PollForTaskRequest& WithInstanceIdentity(const InstanceIdentity& value) { SetInstanceIdentity(value); return *this;}
91 inline PollForTaskRequest& WithInstanceIdentity(InstanceIdentity&& value) { SetInstanceIdentity(std::move(value)); return *this;}
93 private:
94
95 Aws::String m_workerGroup;
96 bool m_workerGroupHasBeenSet = false;
97
98 Aws::String m_hostname;
99 bool m_hostnameHasBeenSet = false;
100
101 InstanceIdentity m_instanceIdentity;
102 bool m_instanceIdentityHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace DataPipeline
107} // namespace Aws
void SetWorkerGroup(const Aws::String &value)
PollForTaskRequest & WithHostname(const Aws::String &value)
void SetInstanceIdentity(const InstanceIdentity &value)
PollForTaskRequest & WithWorkerGroup(const Aws::String &value)
PollForTaskRequest & WithHostname(Aws::String &&value)
PollForTaskRequest & WithInstanceIdentity(InstanceIdentity &&value)
AWS_DATAPIPELINE_API Aws::String SerializePayload() const override
PollForTaskRequest & WithHostname(const char *value)
AWS_DATAPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PollForTaskRequest & WithInstanceIdentity(const InstanceIdentity &value)
void SetInstanceIdentity(InstanceIdentity &&value)
virtual const char * GetServiceRequestName() const override
PollForTaskRequest & WithWorkerGroup(const char *value)
PollForTaskRequest & WithWorkerGroup(Aws::String &&value)
const InstanceIdentity & GetInstanceIdentity() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String