AWS SDK for C++  0.12.9
AWS SDK for C++
ListContainerInstancesRequest.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
16 #include <aws/ecs/ECS_EXPORTS.h>
17 #include <aws/ecs/ECSRequest.h>
19 
20 namespace Aws
21 {
22 namespace ECS
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
42  inline const Aws::String& GetCluster() const{ return m_cluster; }
43 
49  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
50 
56  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = value; }
57 
63  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
64 
70  inline ListContainerInstancesRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
71 
77  inline ListContainerInstancesRequest& WithCluster(Aws::String&& value) { SetCluster(value); return *this;}
78 
84  inline ListContainerInstancesRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
85 
96  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
97 
108  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
109 
120  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
121 
132  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
133 
144  inline ListContainerInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
145 
156  inline ListContainerInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
157 
168  inline ListContainerInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
169 
181  inline long GetMaxResults() const{ return m_maxResults; }
182 
194  inline void SetMaxResults(long value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
195 
207  inline ListContainerInstancesRequest& WithMaxResults(long value) { SetMaxResults(value); return *this;}
208 
209  private:
210  Aws::String m_cluster;
211  bool m_clusterHasBeenSet;
212  Aws::String m_nextToken;
213  bool m_nextTokenHasBeenSet;
214  long m_maxResults;
215  bool m_maxResultsHasBeenSet;
216  };
217 
218 } // namespace Model
219 } // namespace ECS
220 } // namespace Aws
ListContainerInstancesRequest & WithCluster(Aws::String &&value)
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:34
ListContainerInstancesRequest & WithNextToken(const char *value)
ListContainerInstancesRequest & WithNextToken(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
ListContainerInstancesRequest & WithMaxResults(long value)
ListContainerInstancesRequest & WithNextToken(Aws::String &&value)
ListContainerInstancesRequest & WithCluster(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListContainerInstancesRequest & WithCluster(const Aws::String &value)
JSON (JavaScript Object Notation).