AWS SDK for C++  0.14.3
AWS SDK for C++
ListDeploymentsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
22 
23 namespace Aws
24 {
25 namespace CodeDeploy
26 {
27 namespace Model
28 {
29 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
45  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
46 
51  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
52 
57  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
58 
63  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
64 
69  inline ListDeploymentsRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
70 
75  inline ListDeploymentsRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(value); return *this;}
76 
81  inline ListDeploymentsRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
82 
86  inline const Aws::String& GetDeploymentGroupName() const{ return m_deploymentGroupName; }
87 
91  inline void SetDeploymentGroupName(const Aws::String& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = value; }
92 
96  inline void SetDeploymentGroupName(Aws::String&& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = value; }
97 
101  inline void SetDeploymentGroupName(const char* value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName.assign(value); }
102 
106  inline ListDeploymentsRequest& WithDeploymentGroupName(const Aws::String& value) { SetDeploymentGroupName(value); return *this;}
107 
111  inline ListDeploymentsRequest& WithDeploymentGroupName(Aws::String&& value) { SetDeploymentGroupName(value); return *this;}
112 
116  inline ListDeploymentsRequest& WithDeploymentGroupName(const char* value) { SetDeploymentGroupName(value); return *this;}
117 
127  inline const Aws::Vector<DeploymentStatus>& GetIncludeOnlyStatuses() const{ return m_includeOnlyStatuses; }
128 
138  inline void SetIncludeOnlyStatuses(const Aws::Vector<DeploymentStatus>& value) { m_includeOnlyStatusesHasBeenSet = true; m_includeOnlyStatuses = value; }
139 
149  inline void SetIncludeOnlyStatuses(Aws::Vector<DeploymentStatus>&& value) { m_includeOnlyStatusesHasBeenSet = true; m_includeOnlyStatuses = value; }
150 
160  inline ListDeploymentsRequest& WithIncludeOnlyStatuses(const Aws::Vector<DeploymentStatus>& value) { SetIncludeOnlyStatuses(value); return *this;}
161 
171  inline ListDeploymentsRequest& WithIncludeOnlyStatuses(Aws::Vector<DeploymentStatus>&& value) { SetIncludeOnlyStatuses(value); return *this;}
172 
182  inline ListDeploymentsRequest& AddIncludeOnlyStatuses(const DeploymentStatus& value) { m_includeOnlyStatusesHasBeenSet = true; m_includeOnlyStatuses.push_back(value); return *this; }
183 
193  inline ListDeploymentsRequest& AddIncludeOnlyStatuses(DeploymentStatus&& value) { m_includeOnlyStatusesHasBeenSet = true; m_includeOnlyStatuses.push_back(value); return *this; }
194 
199  inline const TimeRange& GetCreateTimeRange() const{ return m_createTimeRange; }
200 
205  inline void SetCreateTimeRange(const TimeRange& value) { m_createTimeRangeHasBeenSet = true; m_createTimeRange = value; }
206 
211  inline void SetCreateTimeRange(TimeRange&& value) { m_createTimeRangeHasBeenSet = true; m_createTimeRange = value; }
212 
217  inline ListDeploymentsRequest& WithCreateTimeRange(const TimeRange& value) { SetCreateTimeRange(value); return *this;}
218 
223  inline ListDeploymentsRequest& WithCreateTimeRange(TimeRange&& value) { SetCreateTimeRange(value); return *this;}
224 
229  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
230 
235  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
236 
241  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
242 
247  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
248 
253  inline ListDeploymentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
254 
259  inline ListDeploymentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
260 
265  inline ListDeploymentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
266 
267  private:
268  Aws::String m_applicationName;
269  bool m_applicationNameHasBeenSet;
270  Aws::String m_deploymentGroupName;
271  bool m_deploymentGroupNameHasBeenSet;
272  Aws::Vector<DeploymentStatus> m_includeOnlyStatuses;
273  bool m_includeOnlyStatusesHasBeenSet;
274  TimeRange m_createTimeRange;
275  bool m_createTimeRangeHasBeenSet;
276  Aws::String m_nextToken;
277  bool m_nextTokenHasBeenSet;
278  };
279 
280 } // namespace Model
281 } // namespace CodeDeploy
282 } // namespace Aws
ListDeploymentsRequest & WithNextToken(Aws::String &&value)
ListDeploymentsRequest & AddIncludeOnlyStatuses(DeploymentStatus &&value)
ListDeploymentsRequest & WithCreateTimeRange(const TimeRange &value)
const Aws::Vector< DeploymentStatus > & GetIncludeOnlyStatuses() const
ListDeploymentsRequest & WithDeploymentGroupName(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
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 SetDeploymentGroupName(const Aws::String &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)
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)
JSON (JavaScript Object Notation).