AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeFleetCapacityRequest.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 GameLift
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
44  inline const Aws::Vector<Aws::String>& GetFleetIds() const{ return m_fleetIds; }
45 
51  inline void SetFleetIds(const Aws::Vector<Aws::String>& value) { m_fleetIdsHasBeenSet = true; m_fleetIds = value; }
52 
58  inline void SetFleetIds(Aws::Vector<Aws::String>&& value) { m_fleetIdsHasBeenSet = true; m_fleetIds = value; }
59 
65  inline DescribeFleetCapacityRequest& WithFleetIds(const Aws::Vector<Aws::String>& value) { SetFleetIds(value); return *this;}
66 
72  inline DescribeFleetCapacityRequest& WithFleetIds(Aws::Vector<Aws::String>&& value) { SetFleetIds(value); return *this;}
73 
79  inline DescribeFleetCapacityRequest& AddFleetIds(const Aws::String& value) { m_fleetIdsHasBeenSet = true; m_fleetIds.push_back(value); return *this; }
80 
86  inline DescribeFleetCapacityRequest& AddFleetIds(Aws::String&& value) { m_fleetIdsHasBeenSet = true; m_fleetIds.push_back(value); return *this; }
87 
93  inline DescribeFleetCapacityRequest& AddFleetIds(const char* value) { m_fleetIdsHasBeenSet = true; m_fleetIds.push_back(value); return *this; }
94 
100  inline int GetLimit() const{ return m_limit; }
101 
107  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
108 
114  inline DescribeFleetCapacityRequest& WithLimit(int value) { SetLimit(value); return *this;}
115 
122  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
123 
130  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
131 
138  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
139 
146  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
147 
154  inline DescribeFleetCapacityRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
155 
162  inline DescribeFleetCapacityRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
163 
170  inline DescribeFleetCapacityRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
171 
172  private:
173  Aws::Vector<Aws::String> m_fleetIds;
174  bool m_fleetIdsHasBeenSet;
175  int m_limit;
176  bool m_limitHasBeenSet;
177  Aws::String m_nextToken;
178  bool m_nextTokenHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace GameLift
183 } // namespace Aws
DescribeFleetCapacityRequest & WithFleetIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetFleetIds() const
void SetFleetIds(Aws::Vector< Aws::String > &&value)
DescribeFleetCapacityRequest & WithFleetIds(Aws::Vector< Aws::String > &&value)
#define AWS_GAMELIFT_API
DescribeFleetCapacityRequest & AddFleetIds(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
DescribeFleetCapacityRequest & AddFleetIds(const char *value)
DescribeFleetCapacityRequest & WithNextToken(const Aws::String &value)
DescribeFleetCapacityRequest & AddFleetIds(Aws::String &&value)
DescribeFleetCapacityRequest & WithNextToken(const char *value)
DescribeFleetCapacityRequest & WithNextToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetFleetIds(const Aws::Vector< Aws::String > &value)
JSON (JavaScript Object Notation).