AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListDeploymentsRequest.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeployRequest.h>
8#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
9#include <aws/codedeploy/model/DeploymentStatus.h>
10#include <aws/codedeploy/model/TimeRange.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CodeDeploy {
18namespace Model {
19
27 public:
28 AWS_CODEDEPLOY_API ListDeploymentsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ListDeployments"; }
35
36 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
37
39
41
47 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
48 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
49 template <typename ApplicationNameT = Aws::String>
50 void SetApplicationName(ApplicationNameT&& value) {
51 m_applicationNameHasBeenSet = true;
52 m_applicationName = std::forward<ApplicationNameT>(value);
53 }
54 template <typename ApplicationNameT = Aws::String>
55 ListDeploymentsRequest& WithApplicationName(ApplicationNameT&& value) {
56 SetApplicationName(std::forward<ApplicationNameT>(value));
57 return *this;
58 }
60
62
68 inline const Aws::String& GetDeploymentGroupName() const { return m_deploymentGroupName; }
69 inline bool DeploymentGroupNameHasBeenSet() const { return m_deploymentGroupNameHasBeenSet; }
70 template <typename DeploymentGroupNameT = Aws::String>
71 void SetDeploymentGroupName(DeploymentGroupNameT&& value) {
72 m_deploymentGroupNameHasBeenSet = true;
73 m_deploymentGroupName = std::forward<DeploymentGroupNameT>(value);
74 }
75 template <typename DeploymentGroupNameT = Aws::String>
76 ListDeploymentsRequest& WithDeploymentGroupName(DeploymentGroupNameT&& value) {
77 SetDeploymentGroupName(std::forward<DeploymentGroupNameT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::String& GetExternalId() const { return m_externalId; }
88 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
89 template <typename ExternalIdT = Aws::String>
90 void SetExternalId(ExternalIdT&& value) {
91 m_externalIdHasBeenSet = true;
92 m_externalId = std::forward<ExternalIdT>(value);
93 }
94 template <typename ExternalIdT = Aws::String>
95 ListDeploymentsRequest& WithExternalId(ExternalIdT&& value) {
96 SetExternalId(std::forward<ExternalIdT>(value));
97 return *this;
98 }
100
102
113 inline const Aws::Vector<DeploymentStatus>& GetIncludeOnlyStatuses() const { return m_includeOnlyStatuses; }
114 inline bool IncludeOnlyStatusesHasBeenSet() const { return m_includeOnlyStatusesHasBeenSet; }
115 template <typename IncludeOnlyStatusesT = Aws::Vector<DeploymentStatus>>
116 void SetIncludeOnlyStatuses(IncludeOnlyStatusesT&& value) {
117 m_includeOnlyStatusesHasBeenSet = true;
118 m_includeOnlyStatuses = std::forward<IncludeOnlyStatusesT>(value);
119 }
120 template <typename IncludeOnlyStatusesT = Aws::Vector<DeploymentStatus>>
121 ListDeploymentsRequest& WithIncludeOnlyStatuses(IncludeOnlyStatusesT&& value) {
122 SetIncludeOnlyStatuses(std::forward<IncludeOnlyStatusesT>(value));
123 return *this;
124 }
126 m_includeOnlyStatusesHasBeenSet = true;
127 m_includeOnlyStatuses.push_back(value);
128 return *this;
129 }
131
133
137 inline const TimeRange& GetCreateTimeRange() const { return m_createTimeRange; }
138 inline bool CreateTimeRangeHasBeenSet() const { return m_createTimeRangeHasBeenSet; }
139 template <typename CreateTimeRangeT = TimeRange>
140 void SetCreateTimeRange(CreateTimeRangeT&& value) {
141 m_createTimeRangeHasBeenSet = true;
142 m_createTimeRange = std::forward<CreateTimeRangeT>(value);
143 }
144 template <typename CreateTimeRangeT = TimeRange>
145 ListDeploymentsRequest& WithCreateTimeRange(CreateTimeRangeT&& value) {
146 SetCreateTimeRange(std::forward<CreateTimeRangeT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::String& GetNextToken() const { return m_nextToken; }
157 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
158 template <typename NextTokenT = Aws::String>
159 void SetNextToken(NextTokenT&& value) {
160 m_nextTokenHasBeenSet = true;
161 m_nextToken = std::forward<NextTokenT>(value);
162 }
163 template <typename NextTokenT = Aws::String>
165 SetNextToken(std::forward<NextTokenT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_applicationName;
171
172 Aws::String m_deploymentGroupName;
173
174 Aws::String m_externalId;
175
176 Aws::Vector<DeploymentStatus> m_includeOnlyStatuses;
177
178 TimeRange m_createTimeRange;
179
180 Aws::String m_nextToken;
181 bool m_applicationNameHasBeenSet = false;
182 bool m_deploymentGroupNameHasBeenSet = false;
183 bool m_externalIdHasBeenSet = false;
184 bool m_includeOnlyStatusesHasBeenSet = false;
185 bool m_createTimeRangeHasBeenSet = false;
186 bool m_nextTokenHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace CodeDeploy
191} // namespace Aws
ListDeploymentsRequest & WithDeploymentGroupName(DeploymentGroupNameT &&value)
void SetDeploymentGroupName(DeploymentGroupNameT &&value)
ListDeploymentsRequest & WithIncludeOnlyStatuses(IncludeOnlyStatusesT &&value)
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
ListDeploymentsRequest & WithNextToken(NextTokenT &&value)
ListDeploymentsRequest & WithApplicationName(ApplicationNameT &&value)
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< DeploymentStatus > & GetIncludeOnlyStatuses() const
virtual const char * GetServiceRequestName() const override
AWS_CODEDEPLOY_API ListDeploymentsRequest()=default
ListDeploymentsRequest & WithCreateTimeRange(CreateTimeRangeT &&value)
ListDeploymentsRequest & AddIncludeOnlyStatuses(DeploymentStatus value)
void SetIncludeOnlyStatuses(IncludeOnlyStatusesT &&value)
ListDeploymentsRequest & WithExternalId(ExternalIdT &&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