AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ListDeploymentsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/greengrassv2/GreengrassV2Request.h>
9#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
10#include <aws/greengrassv2/model/DeploymentHistoryFilter.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace GreengrassV2 {
19namespace Model {
20
24 public:
25 AWS_GREENGRASSV2_API ListDeploymentsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListDeployments"; }
32
33 AWS_GREENGRASSV2_API Aws::String SerializePayload() const override;
34
35 AWS_GREENGRASSV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
43 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
44 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
45 template <typename TargetArnT = Aws::String>
46 void SetTargetArn(TargetArnT&& value) {
47 m_targetArnHasBeenSet = true;
48 m_targetArn = std::forward<TargetArnT>(value);
49 }
50 template <typename TargetArnT = Aws::String>
52 SetTargetArn(std::forward<TargetArnT>(value));
53 return *this;
54 }
56
58
65 inline DeploymentHistoryFilter GetHistoryFilter() const { return m_historyFilter; }
66 inline bool HistoryFilterHasBeenSet() const { return m_historyFilterHasBeenSet; }
68 m_historyFilterHasBeenSet = true;
69 m_historyFilter = value;
70 }
72 SetHistoryFilter(value);
73 return *this;
74 }
76
78
83 inline const Aws::String& GetParentTargetArn() const { return m_parentTargetArn; }
84 inline bool ParentTargetArnHasBeenSet() const { return m_parentTargetArnHasBeenSet; }
85 template <typename ParentTargetArnT = Aws::String>
86 void SetParentTargetArn(ParentTargetArnT&& value) {
87 m_parentTargetArnHasBeenSet = true;
88 m_parentTargetArn = std::forward<ParentTargetArnT>(value);
89 }
90 template <typename ParentTargetArnT = Aws::String>
91 ListDeploymentsRequest& WithParentTargetArn(ParentTargetArnT&& value) {
92 SetParentTargetArn(std::forward<ParentTargetArnT>(value));
93 return *this;
94 }
96
98
102 inline int GetMaxResults() const { return m_maxResults; }
103 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
104 inline void SetMaxResults(int value) {
105 m_maxResultsHasBeenSet = true;
106 m_maxResults = value;
107 }
109 SetMaxResults(value);
110 return *this;
111 }
113
115
118 inline const Aws::String& GetNextToken() const { return m_nextToken; }
119 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
120 template <typename NextTokenT = Aws::String>
121 void SetNextToken(NextTokenT&& value) {
122 m_nextTokenHasBeenSet = true;
123 m_nextToken = std::forward<NextTokenT>(value);
124 }
125 template <typename NextTokenT = Aws::String>
127 SetNextToken(std::forward<NextTokenT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_targetArn;
133
135
136 Aws::String m_parentTargetArn;
137
138 int m_maxResults{0};
139
140 Aws::String m_nextToken;
141 bool m_targetArnHasBeenSet = false;
142 bool m_historyFilterHasBeenSet = false;
143 bool m_parentTargetArnHasBeenSet = false;
144 bool m_maxResultsHasBeenSet = false;
145 bool m_nextTokenHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace GreengrassV2
150} // namespace Aws
ListDeploymentsRequest & WithHistoryFilter(DeploymentHistoryFilter value)
AWS_GREENGRASSV2_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListDeploymentsRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
ListDeploymentsRequest & WithParentTargetArn(ParentTargetArnT &&value)
ListDeploymentsRequest & WithTargetArn(TargetArnT &&value)
AWS_GREENGRASSV2_API ListDeploymentsRequest()=default
void SetHistoryFilter(DeploymentHistoryFilter value)
AWS_GREENGRASSV2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String