AWS SDK for C++  0.12.9
AWS SDK for C++
DescribeEcsClustersRequest.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
20 
21 namespace Aws
22 {
23 namespace OpsWorks
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
41  inline const Aws::Vector<Aws::String>& GetEcsClusterArns() const{ return m_ecsClusterArns; }
42 
46  inline void SetEcsClusterArns(const Aws::Vector<Aws::String>& value) { m_ecsClusterArnsHasBeenSet = true; m_ecsClusterArns = value; }
47 
51  inline void SetEcsClusterArns(Aws::Vector<Aws::String>&& value) { m_ecsClusterArnsHasBeenSet = true; m_ecsClusterArns = value; }
52 
56  inline DescribeEcsClustersRequest& WithEcsClusterArns(const Aws::Vector<Aws::String>& value) { SetEcsClusterArns(value); return *this;}
57 
61  inline DescribeEcsClustersRequest& WithEcsClusterArns(Aws::Vector<Aws::String>&& value) { SetEcsClusterArns(value); return *this;}
62 
66  inline DescribeEcsClustersRequest& AddEcsClusterArns(const Aws::String& value) { m_ecsClusterArnsHasBeenSet = true; m_ecsClusterArns.push_back(value); return *this; }
67 
71  inline DescribeEcsClustersRequest& AddEcsClusterArns(Aws::String&& value) { m_ecsClusterArnsHasBeenSet = true; m_ecsClusterArns.push_back(value); return *this; }
72 
76  inline DescribeEcsClustersRequest& AddEcsClusterArns(const char* value) { m_ecsClusterArnsHasBeenSet = true; m_ecsClusterArns.push_back(value); return *this; }
77 
82  inline const Aws::String& GetStackId() const{ return m_stackId; }
83 
88  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
89 
94  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
95 
100  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
101 
106  inline DescribeEcsClustersRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
107 
112  inline DescribeEcsClustersRequest& WithStackId(Aws::String&& value) { SetStackId(value); return *this;}
113 
118  inline DescribeEcsClustersRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
119 
129  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
130 
140  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
141 
151  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
152 
162  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
163 
173  inline DescribeEcsClustersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
174 
184  inline DescribeEcsClustersRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
185 
195  inline DescribeEcsClustersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
196 
204  inline long GetMaxResults() const{ return m_maxResults; }
205 
213  inline void SetMaxResults(long value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
214 
222  inline DescribeEcsClustersRequest& WithMaxResults(long value) { SetMaxResults(value); return *this;}
223 
224  private:
225  Aws::Vector<Aws::String> m_ecsClusterArns;
226  bool m_ecsClusterArnsHasBeenSet;
227  Aws::String m_stackId;
228  bool m_stackIdHasBeenSet;
229  Aws::String m_nextToken;
230  bool m_nextTokenHasBeenSet;
231  long m_maxResults;
232  bool m_maxResultsHasBeenSet;
233  };
234 
235 } // namespace Model
236 } // namespace OpsWorks
237 } // namespace Aws
DescribeEcsClustersRequest & WithNextToken(Aws::String &&value)
DescribeEcsClustersRequest & AddEcsClusterArns(const char *value)
DescribeEcsClustersRequest & AddEcsClusterArns(Aws::String &&value)
DescribeEcsClustersRequest & WithEcsClusterArns(Aws::Vector< Aws::String > &&value)
DescribeEcsClustersRequest & WithStackId(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
DescribeEcsClustersRequest & WithNextToken(const Aws::String &value)
void SetEcsClusterArns(Aws::Vector< Aws::String > &&value)
DescribeEcsClustersRequest & WithEcsClusterArns(const Aws::Vector< Aws::String > &value)
void SetEcsClusterArns(const Aws::Vector< Aws::String > &value)
DescribeEcsClustersRequest & WithStackId(Aws::String &&value)
const Aws::Vector< Aws::String > & GetEcsClusterArns() const
DescribeEcsClustersRequest & WithStackId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
DescribeEcsClustersRequest & WithNextToken(const char *value)
DescribeEcsClustersRequest & AddEcsClusterArns(const Aws::String &value)
DescribeEcsClustersRequest & WithMaxResults(long value)
JSON (JavaScript Object Notation).