AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ActionTypeIdT = ActionTypeId>
50 void SetActionTypeId(ActionTypeIdT&& value) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = std::forward<ActionTypeIdT>(value); }
51 template<typename ActionTypeIdT = ActionTypeId>
52 PollForJobsRequest& WithActionTypeId(ActionTypeIdT&& value) { SetActionTypeId(std::forward<ActionTypeIdT>(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 template<typename QueryParamT = Aws::Map<Aws::String, Aws::String>>
75 void SetQueryParam(QueryParamT&& value) { m_queryParamHasBeenSet = true; m_queryParam = std::forward<QueryParamT>(value); }
76 template<typename QueryParamT = Aws::Map<Aws::String, Aws::String>>
77 PollForJobsRequest& WithQueryParam(QueryParamT&& value) { SetQueryParam(std::forward<QueryParamT>(value)); return *this;}
78 template<typename QueryParamKeyT = Aws::String, typename QueryParamValueT = Aws::String>
79 PollForJobsRequest& AddQueryParam(QueryParamKeyT&& key, QueryParamValueT&& value) {
80 m_queryParamHasBeenSet = true; m_queryParam.emplace(std::forward<QueryParamKeyT>(key), std::forward<QueryParamValueT>(value)); return *this;
81 }
83 private:
84
85 ActionTypeId m_actionTypeId;
86 bool m_actionTypeIdHasBeenSet = false;
87
88 int m_maxBatchSize{0};
89 bool m_maxBatchSizeHasBeenSet = false;
90
92 bool m_queryParamHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CodePipeline
97} // 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