AWS SDK for C++  0.12.9
AWS SDK for C++
GetRestApisResult.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 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace APIGateway
34 {
35 namespace Model
36 {
42  {
43  public:
47 
48 
49  inline const Aws::String& GetPosition() const{ return m_position; }
50 
51 
52  inline void SetPosition(const Aws::String& value) { m_position = value; }
53 
54 
55  inline void SetPosition(Aws::String&& value) { m_position = value; }
56 
57 
58  inline void SetPosition(const char* value) { m_position.assign(value); }
59 
60 
61  inline GetRestApisResult& WithPosition(const Aws::String& value) { SetPosition(value); return *this;}
62 
63 
64  inline GetRestApisResult& WithPosition(Aws::String&& value) { SetPosition(value); return *this;}
65 
66 
67  inline GetRestApisResult& WithPosition(const char* value) { SetPosition(value); return *this;}
68 
72  inline const Aws::Vector<RestApi>& GetItems() const{ return m_items; }
73 
77  inline void SetItems(const Aws::Vector<RestApi>& value) { m_items = value; }
78 
82  inline void SetItems(Aws::Vector<RestApi>&& value) { m_items = value; }
83 
87  inline GetRestApisResult& WithItems(const Aws::Vector<RestApi>& value) { SetItems(value); return *this;}
88 
92  inline GetRestApisResult& WithItems(Aws::Vector<RestApi>&& value) { SetItems(value); return *this;}
93 
97  inline GetRestApisResult& AddItems(const RestApi& value) { m_items.push_back(value); return *this; }
98 
102  inline GetRestApisResult& AddItems(RestApi&& value) { m_items.push_back(value); return *this; }
103 
104  private:
105  Aws::String m_position;
106  Aws::Vector<RestApi> m_items;
107  };
108 
109 } // namespace Model
110 } // namespace APIGateway
111 } // namespace Aws
GetRestApisResult & AddItems(const RestApi &value)
const Aws::Vector< RestApi > & GetItems() const
void SetPosition(const Aws::String &value)
void SetItems(Aws::Vector< RestApi > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
GetRestApisResult & WithPosition(const Aws::String &value)
const Aws::String & GetPosition() const
void SetItems(const Aws::Vector< RestApi > &value)
GetRestApisResult & WithItems(Aws::Vector< RestApi > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetRestApisResult & WithPosition(Aws::String &&value)
#define AWS_APIGATEWAY_API
GetRestApisResult & AddItems(RestApi &&value)
JSON (JavaScript Object Notation).
GetRestApisResult & WithPosition(const char *value)
GetRestApisResult & WithItems(const Aws::Vector< RestApi > &value)