AWS SDK for C++  1.8.71
AWS SDK for C++
PollForJobsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CodePipeline
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "PollForJobs"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41 
42 
46  inline const ActionTypeId& GetActionTypeId() const{ return m_actionTypeId; }
47 
51  inline bool ActionTypeIdHasBeenSet() const { return m_actionTypeIdHasBeenSet; }
52 
56  inline void SetActionTypeId(const ActionTypeId& value) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = value; }
57 
61  inline void SetActionTypeId(ActionTypeId&& value) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = std::move(value); }
62 
66  inline PollForJobsRequest& WithActionTypeId(const ActionTypeId& value) { SetActionTypeId(value); return *this;}
67 
71  inline PollForJobsRequest& WithActionTypeId(ActionTypeId&& value) { SetActionTypeId(std::move(value)); return *this;}
72 
73 
77  inline int GetMaxBatchSize() const{ return m_maxBatchSize; }
78 
82  inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
83 
87  inline void SetMaxBatchSize(int value) { m_maxBatchSizeHasBeenSet = true; m_maxBatchSize = value; }
88 
92  inline PollForJobsRequest& WithMaxBatchSize(int value) { SetMaxBatchSize(value); return *this;}
93 
94 
101  inline const Aws::Map<Aws::String, Aws::String>& GetQueryParam() const{ return m_queryParam; }
102 
109  inline bool QueryParamHasBeenSet() const { return m_queryParamHasBeenSet; }
110 
117  inline void SetQueryParam(const Aws::Map<Aws::String, Aws::String>& value) { m_queryParamHasBeenSet = true; m_queryParam = value; }
118 
125  inline void SetQueryParam(Aws::Map<Aws::String, Aws::String>&& value) { m_queryParamHasBeenSet = true; m_queryParam = std::move(value); }
126 
133  inline PollForJobsRequest& WithQueryParam(const Aws::Map<Aws::String, Aws::String>& value) { SetQueryParam(value); return *this;}
134 
141  inline PollForJobsRequest& WithQueryParam(Aws::Map<Aws::String, Aws::String>&& value) { SetQueryParam(std::move(value)); return *this;}
142 
149  inline PollForJobsRequest& AddQueryParam(const Aws::String& key, const Aws::String& value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(key, value); return *this; }
150 
157  inline PollForJobsRequest& AddQueryParam(Aws::String&& key, const Aws::String& value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(std::move(key), value); return *this; }
158 
165  inline PollForJobsRequest& AddQueryParam(const Aws::String& key, Aws::String&& value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(key, std::move(value)); return *this; }
166 
173  inline PollForJobsRequest& AddQueryParam(Aws::String&& key, Aws::String&& value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(std::move(key), std::move(value)); return *this; }
174 
181  inline PollForJobsRequest& AddQueryParam(const char* key, Aws::String&& value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(key, std::move(value)); return *this; }
182 
189  inline PollForJobsRequest& AddQueryParam(Aws::String&& key, const char* value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(std::move(key), value); return *this; }
190 
197  inline PollForJobsRequest& AddQueryParam(const char* key, const char* value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(key, value); return *this; }
198 
199  private:
200 
201  ActionTypeId m_actionTypeId;
202  bool m_actionTypeIdHasBeenSet;
203 
204  int m_maxBatchSize;
205  bool m_maxBatchSizeHasBeenSet;
206 
208  bool m_queryParamHasBeenSet;
209  };
210 
211 } // namespace Model
212 } // namespace CodePipeline
213 } // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetActionTypeId(const ActionTypeId &value)
PollForJobsRequest & AddQueryParam(const Aws::String &key, const Aws::String &value)
void SetQueryParam(const Aws::Map< Aws::String, Aws::String > &value)
const ActionTypeId & GetActionTypeId() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
PollForJobsRequest & AddQueryParam(Aws::String &&key, const Aws::String &value)
PollForJobsRequest & WithQueryParam(const Aws::Map< Aws::String, Aws::String > &value)
PollForJobsRequest & AddQueryParam(Aws::String &&key, Aws::String &&value)
#define AWS_CODEPIPELINE_API
PollForJobsRequest & AddQueryParam(const char *key, Aws::String &&value)
PollForJobsRequest & WithActionTypeId(const ActionTypeId &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PollForJobsRequest & WithQueryParam(Aws::Map< Aws::String, Aws::String > &&value)
PollForJobsRequest & AddQueryParam(const Aws::String &key, Aws::String &&value)
PollForJobsRequest & WithMaxBatchSize(int value)
void SetQueryParam(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetQueryParam() const
PollForJobsRequest & AddQueryParam(const char *key, const char *value)
PollForJobsRequest & WithActionTypeId(ActionTypeId &&value)
PollForJobsRequest & AddQueryParam(Aws::String &&key, const char *value)