AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ListDeploymentsRequest.h
Go to the documentation of this file.
1
6#pragma once
13#include <utility>
14
15namespace Aws
16{
17namespace CodeDeploy
18{
19namespace Model
20{
21
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "ListDeployments"; }
38
40
42
43
51 inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
52
60 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
61
69 inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
70
78 inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
79
87 inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
88
96 inline ListDeploymentsRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
97
105 inline ListDeploymentsRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
106
114 inline ListDeploymentsRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
115
116
123 inline const Aws::String& GetDeploymentGroupName() const{ return m_deploymentGroupName; }
124
131 inline bool DeploymentGroupNameHasBeenSet() const { return m_deploymentGroupNameHasBeenSet; }
132
139 inline void SetDeploymentGroupName(const Aws::String& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = value; }
140
147 inline void SetDeploymentGroupName(Aws::String&& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = std::move(value); }
148
155 inline void SetDeploymentGroupName(const char* value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName.assign(value); }
156
164
171 inline ListDeploymentsRequest& WithDeploymentGroupName(Aws::String&& value) { SetDeploymentGroupName(std::move(value)); return *this;}
172
179 inline ListDeploymentsRequest& WithDeploymentGroupName(const char* value) { SetDeploymentGroupName(value); return *this;}
180
181
186 inline const Aws::String& GetExternalId() const{ return m_externalId; }
187
192 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
193
198 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
199
204 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
205
210 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
211
216 inline ListDeploymentsRequest& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
217
222 inline ListDeploymentsRequest& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
223
228 inline ListDeploymentsRequest& WithExternalId(const char* value) { SetExternalId(value); return *this;}
229
230
242 inline const Aws::Vector<DeploymentStatus>& GetIncludeOnlyStatuses() const{ return m_includeOnlyStatuses; }
243
255 inline bool IncludeOnlyStatusesHasBeenSet() const { return m_includeOnlyStatusesHasBeenSet; }
256
268 inline void SetIncludeOnlyStatuses(const Aws::Vector<DeploymentStatus>& value) { m_includeOnlyStatusesHasBeenSet = true; m_includeOnlyStatuses = value; }
269
281 inline void SetIncludeOnlyStatuses(Aws::Vector<DeploymentStatus>&& value) { m_includeOnlyStatusesHasBeenSet = true; m_includeOnlyStatuses = std::move(value); }
282
295
308
320 inline ListDeploymentsRequest& AddIncludeOnlyStatuses(const DeploymentStatus& value) { m_includeOnlyStatusesHasBeenSet = true; m_includeOnlyStatuses.push_back(value); return *this; }
321
333 inline ListDeploymentsRequest& AddIncludeOnlyStatuses(DeploymentStatus&& value) { m_includeOnlyStatusesHasBeenSet = true; m_includeOnlyStatuses.push_back(std::move(value)); return *this; }
334
335
340 inline const TimeRange& GetCreateTimeRange() const{ return m_createTimeRange; }
341
346 inline bool CreateTimeRangeHasBeenSet() const { return m_createTimeRangeHasBeenSet; }
347
352 inline void SetCreateTimeRange(const TimeRange& value) { m_createTimeRangeHasBeenSet = true; m_createTimeRange = value; }
353
358 inline void SetCreateTimeRange(TimeRange&& value) { m_createTimeRangeHasBeenSet = true; m_createTimeRange = std::move(value); }
359
364 inline ListDeploymentsRequest& WithCreateTimeRange(const TimeRange& value) { SetCreateTimeRange(value); return *this;}
365
370 inline ListDeploymentsRequest& WithCreateTimeRange(TimeRange&& value) { SetCreateTimeRange(std::move(value)); return *this;}
371
372
377 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
378
383 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
384
389 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
390
395 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
396
401 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
402
407 inline ListDeploymentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
408
413 inline ListDeploymentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
414
419 inline ListDeploymentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
420
421 private:
422
423 Aws::String m_applicationName;
424 bool m_applicationNameHasBeenSet = false;
425
426 Aws::String m_deploymentGroupName;
427 bool m_deploymentGroupNameHasBeenSet = false;
428
429 Aws::String m_externalId;
430 bool m_externalIdHasBeenSet = false;
431
432 Aws::Vector<DeploymentStatus> m_includeOnlyStatuses;
433 bool m_includeOnlyStatusesHasBeenSet = false;
434
435 TimeRange m_createTimeRange;
436 bool m_createTimeRangeHasBeenSet = false;
437
438 Aws::String m_nextToken;
439 bool m_nextTokenHasBeenSet = false;
440 };
441
442} // namespace Model
443} // namespace CodeDeploy
444} // namespace Aws
#define AWS_CODEDEPLOY_API
ListDeploymentsRequest & WithNextToken(const Aws::String &value)
ListDeploymentsRequest & WithNextToken(const char *value)
void SetIncludeOnlyStatuses(Aws::Vector< DeploymentStatus > &&value)
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
ListDeploymentsRequest & WithApplicationName(Aws::String &&value)
ListDeploymentsRequest & WithCreateTimeRange(TimeRange &&value)
ListDeploymentsRequest & WithIncludeOnlyStatuses(const Aws::Vector< DeploymentStatus > &value)
ListDeploymentsRequest & WithApplicationName(const Aws::String &value)
ListDeploymentsRequest & WithDeploymentGroupName(Aws::String &&value)
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< DeploymentStatus > & GetIncludeOnlyStatuses() const
ListDeploymentsRequest & WithNextToken(Aws::String &&value)
ListDeploymentsRequest & WithExternalId(const char *value)
ListDeploymentsRequest & WithDeploymentGroupName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ListDeploymentsRequest & WithExternalId(Aws::String &&value)
ListDeploymentsRequest & AddIncludeOnlyStatuses(DeploymentStatus &&value)
ListDeploymentsRequest & WithExternalId(const Aws::String &value)
ListDeploymentsRequest & WithDeploymentGroupName(const char *value)
ListDeploymentsRequest & WithIncludeOnlyStatuses(Aws::Vector< DeploymentStatus > &&value)
void SetIncludeOnlyStatuses(const Aws::Vector< DeploymentStatus > &value)
ListDeploymentsRequest & AddIncludeOnlyStatuses(const DeploymentStatus &value)
ListDeploymentsRequest & WithCreateTimeRange(const TimeRange &value)
ListDeploymentsRequest & WithApplicationName(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector