AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PollForJobsRequest.h
1
6#pragma once
7#include <aws/codepipeline/CodePipelineRequest.h>
8#include <aws/codepipeline/CodePipeline_EXPORTS.h>
9#include <aws/codepipeline/model/ActionTypeId.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CodePipeline {
17namespace Model {
18
26 public:
27 AWS_CODEPIPELINE_API PollForJobsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PollForJobs"; }
34
35 AWS_CODEPIPELINE_API Aws::String SerializePayload() const override;
36
37 AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
43 inline const ActionTypeId& GetActionTypeId() const { return m_actionTypeId; }
44 inline bool ActionTypeIdHasBeenSet() const { return m_actionTypeIdHasBeenSet; }
45 template <typename ActionTypeIdT = ActionTypeId>
46 void SetActionTypeId(ActionTypeIdT&& value) {
47 m_actionTypeIdHasBeenSet = true;
48 m_actionTypeId = std::forward<ActionTypeIdT>(value);
49 }
50 template <typename ActionTypeIdT = ActionTypeId>
51 PollForJobsRequest& WithActionTypeId(ActionTypeIdT&& value) {
52 SetActionTypeId(std::forward<ActionTypeIdT>(value));
53 return *this;
54 }
56
58
61 inline int GetMaxBatchSize() const { return m_maxBatchSize; }
62 inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
63 inline void SetMaxBatchSize(int value) {
64 m_maxBatchSizeHasBeenSet = true;
65 m_maxBatchSize = value;
66 }
68 SetMaxBatchSize(value);
69 return *this;
70 }
72
74
80 inline const Aws::Map<Aws::String, Aws::String>& GetQueryParam() const { return m_queryParam; }
81 inline bool QueryParamHasBeenSet() const { return m_queryParamHasBeenSet; }
82 template <typename QueryParamT = Aws::Map<Aws::String, Aws::String>>
83 void SetQueryParam(QueryParamT&& value) {
84 m_queryParamHasBeenSet = true;
85 m_queryParam = std::forward<QueryParamT>(value);
86 }
87 template <typename QueryParamT = Aws::Map<Aws::String, Aws::String>>
88 PollForJobsRequest& WithQueryParam(QueryParamT&& value) {
89 SetQueryParam(std::forward<QueryParamT>(value));
90 return *this;
91 }
92 template <typename QueryParamKeyT = Aws::String, typename QueryParamValueT = Aws::String>
93 PollForJobsRequest& AddQueryParam(QueryParamKeyT&& key, QueryParamValueT&& value) {
94 m_queryParamHasBeenSet = true;
95 m_queryParam.emplace(std::forward<QueryParamKeyT>(key), std::forward<QueryParamValueT>(value));
96 return *this;
97 }
99 private:
100 ActionTypeId m_actionTypeId;
101
102 int m_maxBatchSize{0};
103
105 bool m_actionTypeIdHasBeenSet = false;
106 bool m_maxBatchSizeHasBeenSet = false;
107 bool m_queryParamHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace CodePipeline
112} // namespace Aws
PollForJobsRequest & AddQueryParam(QueryParamKeyT &&key, QueryParamValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetQueryParam() const
virtual const char * GetServiceRequestName() const override
AWS_CODEPIPELINE_API PollForJobsRequest()=default
AWS_CODEPIPELINE_API Aws::String SerializePayload() const override
PollForJobsRequest & WithQueryParam(QueryParamT &&value)
AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PollForJobsRequest & WithActionTypeId(ActionTypeIdT &&value)
PollForJobsRequest & WithMaxBatchSize(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String