AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PollForJobsRequest.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/CodePipelineRequest.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#include <utility>
13
14namespace Aws
15{
16namespace CodePipeline
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_CODEPIPELINE_API PollForJobsRequest();
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_CODEPIPELINE_API Aws::String SerializePayload() const override;
39
40 AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
47 inline const ActionTypeId& GetActionTypeId() const{ return m_actionTypeId; }
48 inline bool ActionTypeIdHasBeenSet() const { return m_actionTypeIdHasBeenSet; }
49 inline void SetActionTypeId(const ActionTypeId& value) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = value; }
50 inline void SetActionTypeId(ActionTypeId&& value) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = std::move(value); }
51 inline PollForJobsRequest& WithActionTypeId(const ActionTypeId& value) { SetActionTypeId(value); return *this;}
52 inline PollForJobsRequest& WithActionTypeId(ActionTypeId&& value) { SetActionTypeId(std::move(value)); return *this;}
54
56
59 inline int GetMaxBatchSize() const{ return m_maxBatchSize; }
60 inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
61 inline void SetMaxBatchSize(int value) { m_maxBatchSizeHasBeenSet = true; m_maxBatchSize = value; }
62 inline PollForJobsRequest& WithMaxBatchSize(int value) { SetMaxBatchSize(value); return *this;}
64
66
72 inline const Aws::Map<Aws::String, Aws::String>& GetQueryParam() const{ return m_queryParam; }
73 inline bool QueryParamHasBeenSet() const { return m_queryParamHasBeenSet; }
74 inline void SetQueryParam(const Aws::Map<Aws::String, Aws::String>& value) { m_queryParamHasBeenSet = true; m_queryParam = value; }
75 inline void SetQueryParam(Aws::Map<Aws::String, Aws::String>&& value) { m_queryParamHasBeenSet = true; m_queryParam = std::move(value); }
77 inline PollForJobsRequest& WithQueryParam(Aws::Map<Aws::String, Aws::String>&& value) { SetQueryParam(std::move(value)); return *this;}
78 inline PollForJobsRequest& AddQueryParam(const Aws::String& key, const Aws::String& value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(key, value); return *this; }
79 inline PollForJobsRequest& AddQueryParam(Aws::String&& key, const Aws::String& value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(std::move(key), value); return *this; }
80 inline PollForJobsRequest& AddQueryParam(const Aws::String& key, Aws::String&& value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(key, std::move(value)); return *this; }
81 inline PollForJobsRequest& AddQueryParam(Aws::String&& key, Aws::String&& value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(std::move(key), std::move(value)); return *this; }
82 inline PollForJobsRequest& AddQueryParam(const char* key, Aws::String&& value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(key, std::move(value)); return *this; }
83 inline PollForJobsRequest& AddQueryParam(Aws::String&& key, const char* value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(std::move(key), value); return *this; }
84 inline PollForJobsRequest& AddQueryParam(const char* key, const char* value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(key, value); return *this; }
86 private:
87
88 ActionTypeId m_actionTypeId;
89 bool m_actionTypeIdHasBeenSet = false;
90
91 int m_maxBatchSize;
92 bool m_maxBatchSizeHasBeenSet = false;
93
95 bool m_queryParamHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace CodePipeline
100} // namespace Aws
PollForJobsRequest & AddQueryParam(const char *key, Aws::String &&value)
PollForJobsRequest & WithQueryParam(Aws::Map< Aws::String, Aws::String > &&value)
PollForJobsRequest & WithQueryParam(const Aws::Map< Aws::String, Aws::String > &value)
PollForJobsRequest & AddQueryParam(const Aws::String &key, const Aws::String &value)
PollForJobsRequest & AddQueryParam(Aws::String &&key, const char *value)
PollForJobsRequest & WithActionTypeId(ActionTypeId &&value)
void SetActionTypeId(const ActionTypeId &value)
const Aws::Map< Aws::String, Aws::String > & GetQueryParam() const
PollForJobsRequest & AddQueryParam(Aws::String &&key, Aws::String &&value)
PollForJobsRequest & AddQueryParam(const Aws::String &key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetQueryParam(const Aws::Map< Aws::String, Aws::String > &value)
AWS_CODEPIPELINE_API Aws::String SerializePayload() const override
PollForJobsRequest & AddQueryParam(const char *key, const char *value)
void SetQueryParam(Aws::Map< Aws::String, Aws::String > &&value)
AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PollForJobsRequest & WithMaxBatchSize(int value)
PollForJobsRequest & WithActionTypeId(const ActionTypeId &value)
PollForJobsRequest & AddQueryParam(Aws::String &&key, const Aws::String &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