AWS SDK for C++  0.14.3
AWS SDK for C++
ListFleetsResult.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
19 
20 namespace Aws
21 {
22 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace GameLift
33 {
34 namespace Model
35 {
40  {
41  public:
45 
52  inline const Aws::Vector<Aws::String>& GetFleetIds() const{ return m_fleetIds; }
53 
60  inline void SetFleetIds(const Aws::Vector<Aws::String>& value) { m_fleetIds = value; }
61 
68  inline void SetFleetIds(Aws::Vector<Aws::String>&& value) { m_fleetIds = value; }
69 
76  inline ListFleetsResult& WithFleetIds(const Aws::Vector<Aws::String>& value) { SetFleetIds(value); return *this;}
77 
84  inline ListFleetsResult& WithFleetIds(Aws::Vector<Aws::String>&& value) { SetFleetIds(value); return *this;}
85 
92  inline ListFleetsResult& AddFleetIds(const Aws::String& value) { m_fleetIds.push_back(value); return *this; }
93 
100  inline ListFleetsResult& AddFleetIds(Aws::String&& value) { m_fleetIds.push_back(value); return *this; }
101 
108  inline ListFleetsResult& AddFleetIds(const char* value) { m_fleetIds.push_back(value); return *this; }
109 
117  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
118 
126  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
127 
135  inline void SetNextToken(Aws::String&& value) { m_nextToken = value; }
136 
144  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
145 
153  inline ListFleetsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
154 
162  inline ListFleetsResult& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
163 
171  inline ListFleetsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
172 
173  private:
174  Aws::Vector<Aws::String> m_fleetIds;
175  Aws::String m_nextToken;
176  };
177 
178 } // namespace Model
179 } // namespace GameLift
180 } // namespace Aws
#define AWS_GAMELIFT_API
const Aws::String & GetNextToken() const
ListFleetsResult & AddFleetIds(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< Aws::String > & GetFleetIds() const
void SetFleetIds(const Aws::Vector< Aws::String > &value)
void SetFleetIds(Aws::Vector< Aws::String > &&value)
ListFleetsResult & WithNextToken(Aws::String &&value)
void SetNextToken(const Aws::String &value)
ListFleetsResult & AddFleetIds(const Aws::String &value)
ListFleetsResult & WithNextToken(const char *value)
ListFleetsResult & WithNextToken(const Aws::String &value)
ListFleetsResult & AddFleetIds(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListFleetsResult & WithFleetIds(Aws::Vector< Aws::String > &&value)
ListFleetsResult & WithFleetIds(const Aws::Vector< Aws::String > &value)
void SetNextToken(Aws::String &&value)
JSON (JavaScript Object Notation).