AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListDeploymentsRequest.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/CodeDeployRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codedeploy/model/TimeRange.h>
12#include <aws/codedeploy/model/DeploymentStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CodeDeploy
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_CODEDEPLOY_API ListDeploymentsRequest();
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_CODEDEPLOY_API Aws::String SerializePayload() const override;
40
42
43
45
51 inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
52 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
53 inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
54 inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
55 inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
56 inline ListDeploymentsRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
57 inline ListDeploymentsRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
58 inline ListDeploymentsRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
60
62
68 inline const Aws::String& GetDeploymentGroupName() const{ return m_deploymentGroupName; }
69 inline bool DeploymentGroupNameHasBeenSet() const { return m_deploymentGroupNameHasBeenSet; }
70 inline void SetDeploymentGroupName(const Aws::String& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = value; }
71 inline void SetDeploymentGroupName(Aws::String&& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = std::move(value); }
72 inline void SetDeploymentGroupName(const char* value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName.assign(value); }
74 inline ListDeploymentsRequest& WithDeploymentGroupName(Aws::String&& value) { SetDeploymentGroupName(std::move(value)); return *this;}
75 inline ListDeploymentsRequest& WithDeploymentGroupName(const char* value) { SetDeploymentGroupName(value); return *this;}
77
79
83 inline const Aws::String& GetExternalId() const{ return m_externalId; }
84 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
85 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
86 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
87 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
88 inline ListDeploymentsRequest& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
89 inline ListDeploymentsRequest& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
90 inline ListDeploymentsRequest& WithExternalId(const char* value) { SetExternalId(value); return *this;}
92
94
105 inline const Aws::Vector<DeploymentStatus>& GetIncludeOnlyStatuses() const{ return m_includeOnlyStatuses; }
106 inline bool IncludeOnlyStatusesHasBeenSet() const { return m_includeOnlyStatusesHasBeenSet; }
107 inline void SetIncludeOnlyStatuses(const Aws::Vector<DeploymentStatus>& value) { m_includeOnlyStatusesHasBeenSet = true; m_includeOnlyStatuses = value; }
108 inline void SetIncludeOnlyStatuses(Aws::Vector<DeploymentStatus>&& value) { m_includeOnlyStatusesHasBeenSet = true; m_includeOnlyStatuses = std::move(value); }
111 inline ListDeploymentsRequest& AddIncludeOnlyStatuses(const DeploymentStatus& value) { m_includeOnlyStatusesHasBeenSet = true; m_includeOnlyStatuses.push_back(value); return *this; }
112 inline ListDeploymentsRequest& AddIncludeOnlyStatuses(DeploymentStatus&& value) { m_includeOnlyStatusesHasBeenSet = true; m_includeOnlyStatuses.push_back(std::move(value)); return *this; }
114
116
120 inline const TimeRange& GetCreateTimeRange() const{ return m_createTimeRange; }
121 inline bool CreateTimeRangeHasBeenSet() const { return m_createTimeRangeHasBeenSet; }
122 inline void SetCreateTimeRange(const TimeRange& value) { m_createTimeRangeHasBeenSet = true; m_createTimeRange = value; }
123 inline void SetCreateTimeRange(TimeRange&& value) { m_createTimeRangeHasBeenSet = true; m_createTimeRange = std::move(value); }
124 inline ListDeploymentsRequest& WithCreateTimeRange(const TimeRange& value) { SetCreateTimeRange(value); return *this;}
125 inline ListDeploymentsRequest& WithCreateTimeRange(TimeRange&& value) { SetCreateTimeRange(std::move(value)); return *this;}
127
129
133 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
134 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
135 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
136 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
137 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
138 inline ListDeploymentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
139 inline ListDeploymentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
140 inline ListDeploymentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
142 private:
143
144 Aws::String m_applicationName;
145 bool m_applicationNameHasBeenSet = false;
146
147 Aws::String m_deploymentGroupName;
148 bool m_deploymentGroupNameHasBeenSet = false;
149
150 Aws::String m_externalId;
151 bool m_externalIdHasBeenSet = false;
152
153 Aws::Vector<DeploymentStatus> m_includeOnlyStatuses;
154 bool m_includeOnlyStatusesHasBeenSet = false;
155
156 TimeRange m_createTimeRange;
157 bool m_createTimeRangeHasBeenSet = false;
158
159 Aws::String m_nextToken;
160 bool m_nextTokenHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace CodeDeploy
165} // namespace Aws
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