AWS SDK for C++  1.9.129
AWS SDK for C++
ListDeploymentsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace GreengrassV2
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ListDeployments"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
47  inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
48 
54  inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
55 
61  inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
62 
68  inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
69 
75  inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
76 
82  inline ListDeploymentsRequest& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
83 
89  inline ListDeploymentsRequest& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
90 
96  inline ListDeploymentsRequest& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
97 
98 
106  inline const DeploymentHistoryFilter& GetHistoryFilter() const{ return m_historyFilter; }
107 
115  inline bool HistoryFilterHasBeenSet() const { return m_historyFilterHasBeenSet; }
116 
124  inline void SetHistoryFilter(const DeploymentHistoryFilter& value) { m_historyFilterHasBeenSet = true; m_historyFilter = value; }
125 
133  inline void SetHistoryFilter(DeploymentHistoryFilter&& value) { m_historyFilterHasBeenSet = true; m_historyFilter = std::move(value); }
134 
142  inline ListDeploymentsRequest& WithHistoryFilter(const DeploymentHistoryFilter& value) { SetHistoryFilter(value); return *this;}
143 
151  inline ListDeploymentsRequest& WithHistoryFilter(DeploymentHistoryFilter&& value) { SetHistoryFilter(std::move(value)); return *this;}
152 
153 
157  inline int GetMaxResults() const{ return m_maxResults; }
158 
162  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
163 
167  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
168 
172  inline ListDeploymentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
173 
174 
178  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
179 
183  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
184 
188  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
189 
193  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
194 
198  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
199 
203  inline ListDeploymentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
204 
208  inline ListDeploymentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
209 
213  inline ListDeploymentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
214 
215  private:
216 
217  Aws::String m_targetArn;
218  bool m_targetArnHasBeenSet;
219 
220  DeploymentHistoryFilter m_historyFilter;
221  bool m_historyFilterHasBeenSet;
222 
223  int m_maxResults;
224  bool m_maxResultsHasBeenSet;
225 
226  Aws::String m_nextToken;
227  bool m_nextTokenHasBeenSet;
228  };
229 
230 } // namespace Model
231 } // namespace GreengrassV2
232 } // namespace Aws
DeploymentHistoryFilter.h
Aws::GreengrassV2::Model::DeploymentHistoryFilter
DeploymentHistoryFilter
Definition: DeploymentHistoryFilter.h:17
Aws::Http::URI
Definition: URI.h:32
Aws::GreengrassV2::Model::ListDeploymentsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::GreengrassV2::Model::ListDeploymentsRequest::SetTargetArn
void SetTargetArn(const char *value)
Definition: ListDeploymentsRequest.h:75
Aws::GreengrassV2::Model::ListDeploymentsRequest::WithTargetArn
ListDeploymentsRequest & WithTargetArn(Aws::String &&value)
Definition: ListDeploymentsRequest.h:89
Aws::GreengrassV2::Model::ListDeploymentsRequest::WithHistoryFilter
ListDeploymentsRequest & WithHistoryFilter(const DeploymentHistoryFilter &value)
Definition: ListDeploymentsRequest.h:142
Aws::GreengrassV2::Model::ListDeploymentsRequest::HistoryFilterHasBeenSet
bool HistoryFilterHasBeenSet() const
Definition: ListDeploymentsRequest.h:115
Aws::GreengrassV2::Model::ListDeploymentsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListDeploymentsRequest.h:188
Aws::GreengrassV2::Model::ListDeploymentsRequest::SetTargetArn
void SetTargetArn(const Aws::String &value)
Definition: ListDeploymentsRequest.h:61
GreengrassV2Request.h
Aws::GreengrassV2::Model::ListDeploymentsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListDeploymentsRequest.h:178
Aws::GreengrassV2::Model::ListDeploymentsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListDeploymentsRequest.h:193
Aws::GreengrassV2::Model::ListDeploymentsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListDeploymentsRequest.h:167
Aws::GreengrassV2::Model::ListDeploymentsRequest::WithHistoryFilter
ListDeploymentsRequest & WithHistoryFilter(DeploymentHistoryFilter &&value)
Definition: ListDeploymentsRequest.h:151
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::ListDeploymentsRequest::SetHistoryFilter
void SetHistoryFilter(const DeploymentHistoryFilter &value)
Definition: ListDeploymentsRequest.h:124
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::ListDeploymentsRequest::TargetArnHasBeenSet
bool TargetArnHasBeenSet() const
Definition: ListDeploymentsRequest.h:54
Aws::GreengrassV2::Model::ListDeploymentsRequest::WithTargetArn
ListDeploymentsRequest & WithTargetArn(const char *value)
Definition: ListDeploymentsRequest.h:96
Aws::GreengrassV2::Model::ListDeploymentsRequest::SetHistoryFilter
void SetHistoryFilter(DeploymentHistoryFilter &&value)
Definition: ListDeploymentsRequest.h:133
Aws::GreengrassV2::Model::ListDeploymentsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListDeploymentsRequest.h:198
Aws::GreengrassV2::Model::ListDeploymentsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListDeploymentsRequest.h:183
Aws::GreengrassV2::Model::ListDeploymentsRequest::GetHistoryFilter
const DeploymentHistoryFilter & GetHistoryFilter() const
Definition: ListDeploymentsRequest.h:106
Aws::GreengrassV2::Model::ListDeploymentsRequest::ListDeploymentsRequest
ListDeploymentsRequest()
Aws::GreengrassV2::GreengrassV2Request
Definition: GreengrassV2Request.h:17
Aws::GreengrassV2::Model::ListDeploymentsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListDeploymentsRequest.h:35
Aws::GreengrassV2::Model::ListDeploymentsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListDeploymentsRequest.h:157
AWSString.h
Aws::GreengrassV2::Model::ListDeploymentsRequest::SetTargetArn
void SetTargetArn(Aws::String &&value)
Definition: ListDeploymentsRequest.h:68
Aws::GreengrassV2::Model::ListDeploymentsRequest::WithNextToken
ListDeploymentsRequest & WithNextToken(const char *value)
Definition: ListDeploymentsRequest.h:213
Aws::GreengrassV2::Model::ListDeploymentsRequest::WithMaxResults
ListDeploymentsRequest & WithMaxResults(int value)
Definition: ListDeploymentsRequest.h:172
Aws::GreengrassV2::Model::ListDeploymentsRequest::WithNextToken
ListDeploymentsRequest & WithNextToken(Aws::String &&value)
Definition: ListDeploymentsRequest.h:208
Aws::GreengrassV2::Model::ListDeploymentsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GreengrassV2::Model::ListDeploymentsRequest::GetTargetArn
const Aws::String & GetTargetArn() const
Definition: ListDeploymentsRequest.h:47
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::ListDeploymentsRequest::WithNextToken
ListDeploymentsRequest & WithNextToken(const Aws::String &value)
Definition: ListDeploymentsRequest.h:203
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::ListDeploymentsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListDeploymentsRequest.h:162
Aws::GreengrassV2::Model::ListDeploymentsRequest::WithTargetArn
ListDeploymentsRequest & WithTargetArn(const Aws::String &value)
Definition: ListDeploymentsRequest.h:82
Aws::GreengrassV2::Model::ListDeploymentsRequest
Definition: ListDeploymentsRequest.h:27