AWS SDK for C++  1.8.71
AWS SDK for C++
ListDeploymentsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace CodeDeploy
18 {
19 namespace 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 
39  Aws::String SerializePayload() const override;
40 
41  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42 
43 
50  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
51 
58  inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
59 
66  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
67 
74  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
75 
82  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
83 
90  inline ListDeploymentsRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
91 
98  inline ListDeploymentsRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
99 
106  inline ListDeploymentsRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
107 
108 
115  inline const Aws::String& GetDeploymentGroupName() const{ return m_deploymentGroupName; }
116 
123  inline bool DeploymentGroupNameHasBeenSet() const { return m_deploymentGroupNameHasBeenSet; }
124 
131  inline void SetDeploymentGroupName(const Aws::String& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = value; }
132 
139  inline void SetDeploymentGroupName(Aws::String&& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = std::move(value); }
140 
147  inline void SetDeploymentGroupName(const char* value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName.assign(value); }
148 
155  inline ListDeploymentsRequest& WithDeploymentGroupName(const Aws::String& value) { SetDeploymentGroupName(value); return *this;}
156 
163  inline ListDeploymentsRequest& WithDeploymentGroupName(Aws::String&& value) { SetDeploymentGroupName(std::move(value)); return *this;}
164 
171  inline ListDeploymentsRequest& WithDeploymentGroupName(const char* value) { SetDeploymentGroupName(value); return *this;}
172 
173 
178  inline const Aws::String& GetExternalId() const{ return m_externalId; }
179 
184  inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
185 
190  inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
191 
196  inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
197 
202  inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
203 
208  inline ListDeploymentsRequest& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
209 
214  inline ListDeploymentsRequest& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
215 
220  inline ListDeploymentsRequest& WithExternalId(const char* value) { SetExternalId(value); return *this;}
221 
222 
234  inline const Aws::Vector<DeploymentStatus>& GetIncludeOnlyStatuses() const{ return m_includeOnlyStatuses; }
235 
247  inline bool IncludeOnlyStatusesHasBeenSet() const { return m_includeOnlyStatusesHasBeenSet; }
248 
260  inline void SetIncludeOnlyStatuses(const Aws::Vector<DeploymentStatus>& value) { m_includeOnlyStatusesHasBeenSet = true; m_includeOnlyStatuses = value; }
261 
273  inline void SetIncludeOnlyStatuses(Aws::Vector<DeploymentStatus>&& value) { m_includeOnlyStatusesHasBeenSet = true; m_includeOnlyStatuses = std::move(value); }
274 
286  inline ListDeploymentsRequest& WithIncludeOnlyStatuses(const Aws::Vector<DeploymentStatus>& value) { SetIncludeOnlyStatuses(value); return *this;}
287 
299  inline ListDeploymentsRequest& WithIncludeOnlyStatuses(Aws::Vector<DeploymentStatus>&& value) { SetIncludeOnlyStatuses(std::move(value)); return *this;}
300 
312  inline ListDeploymentsRequest& AddIncludeOnlyStatuses(const DeploymentStatus& value) { m_includeOnlyStatusesHasBeenSet = true; m_includeOnlyStatuses.push_back(value); return *this; }
313 
325  inline ListDeploymentsRequest& AddIncludeOnlyStatuses(DeploymentStatus&& value) { m_includeOnlyStatusesHasBeenSet = true; m_includeOnlyStatuses.push_back(std::move(value)); return *this; }
326 
327 
332  inline const TimeRange& GetCreateTimeRange() const{ return m_createTimeRange; }
333 
338  inline bool CreateTimeRangeHasBeenSet() const { return m_createTimeRangeHasBeenSet; }
339 
344  inline void SetCreateTimeRange(const TimeRange& value) { m_createTimeRangeHasBeenSet = true; m_createTimeRange = value; }
345 
350  inline void SetCreateTimeRange(TimeRange&& value) { m_createTimeRangeHasBeenSet = true; m_createTimeRange = std::move(value); }
351 
356  inline ListDeploymentsRequest& WithCreateTimeRange(const TimeRange& value) { SetCreateTimeRange(value); return *this;}
357 
362  inline ListDeploymentsRequest& WithCreateTimeRange(TimeRange&& value) { SetCreateTimeRange(std::move(value)); return *this;}
363 
364 
369  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
370 
375  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
376 
381  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
382 
387  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
388 
393  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
394 
399  inline ListDeploymentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
400 
405  inline ListDeploymentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
406 
411  inline ListDeploymentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
412 
413  private:
414 
415  Aws::String m_applicationName;
416  bool m_applicationNameHasBeenSet;
417 
418  Aws::String m_deploymentGroupName;
419  bool m_deploymentGroupNameHasBeenSet;
420 
421  Aws::String m_externalId;
422  bool m_externalIdHasBeenSet;
423 
424  Aws::Vector<DeploymentStatus> m_includeOnlyStatuses;
425  bool m_includeOnlyStatusesHasBeenSet;
426 
427  TimeRange m_createTimeRange;
428  bool m_createTimeRangeHasBeenSet;
429 
430  Aws::String m_nextToken;
431  bool m_nextTokenHasBeenSet;
432  };
433 
434 } // namespace Model
435 } // namespace CodeDeploy
436 } // namespace Aws
ListDeploymentsRequest & WithExternalId(Aws::String &&value)
ListDeploymentsRequest & WithNextToken(Aws::String &&value)
ListDeploymentsRequest & AddIncludeOnlyStatuses(DeploymentStatus &&value)
ListDeploymentsRequest & WithCreateTimeRange(const TimeRange &value)
ListDeploymentsRequest & WithExternalId(const Aws::String &value)
ListDeploymentsRequest & WithDeploymentGroupName(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
ListDeploymentsRequest & WithExternalId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ListDeploymentsRequest & WithNextToken(const Aws::String &value)
ListDeploymentsRequest & WithIncludeOnlyStatuses(Aws::Vector< DeploymentStatus > &&value)
#define AWS_CODEDEPLOY_API
ListDeploymentsRequest & WithApplicationName(const Aws::String &value)
ListDeploymentsRequest & WithCreateTimeRange(TimeRange &&value)
void SetIncludeOnlyStatuses(Aws::Vector< DeploymentStatus > &&value)
ListDeploymentsRequest & WithDeploymentGroupName(Aws::String &&value)
ListDeploymentsRequest & WithDeploymentGroupName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListDeploymentsRequest & WithIncludeOnlyStatuses(const Aws::Vector< DeploymentStatus > &value)
const Aws::Vector< DeploymentStatus > & GetIncludeOnlyStatuses() const
void SetIncludeOnlyStatuses(const Aws::Vector< DeploymentStatus > &value)
ListDeploymentsRequest & AddIncludeOnlyStatuses(const DeploymentStatus &value)
ListDeploymentsRequest & WithApplicationName(const char *value)
ListDeploymentsRequest & WithApplicationName(Aws::String &&value)
ListDeploymentsRequest & WithNextToken(const char *value)
virtual const char * GetServiceRequestName() const override