AWS SDK for C++  0.14.3
AWS SDK for C++
GetModelsRequest.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 namespace Http
23 {
24  class URI;
25 } //namespace Http
26 namespace APIGateway
27 {
28 namespace Model
29 {
30 
36  {
37  public:
39  Aws::String SerializePayload() const override;
40 
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42 
46  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
47 
51  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
52 
56  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
57 
61  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
62 
66  inline GetModelsRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
67 
71  inline GetModelsRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
72 
76  inline GetModelsRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
77 
82  inline const Aws::String& GetPosition() const{ return m_position; }
83 
88  inline void SetPosition(const Aws::String& value) { m_positionHasBeenSet = true; m_position = value; }
89 
94  inline void SetPosition(Aws::String&& value) { m_positionHasBeenSet = true; m_position = value; }
95 
100  inline void SetPosition(const char* value) { m_positionHasBeenSet = true; m_position.assign(value); }
101 
106  inline GetModelsRequest& WithPosition(const Aws::String& value) { SetPosition(value); return *this;}
107 
112  inline GetModelsRequest& WithPosition(Aws::String&& value) { SetPosition(value); return *this;}
113 
118  inline GetModelsRequest& WithPosition(const char* value) { SetPosition(value); return *this;}
119 
124  inline int GetLimit() const{ return m_limit; }
125 
130  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
131 
136  inline GetModelsRequest& WithLimit(int value) { SetLimit(value); return *this;}
137 
138  private:
139  Aws::String m_restApiId;
140  bool m_restApiIdHasBeenSet;
141  Aws::String m_position;
142  bool m_positionHasBeenSet;
143  int m_limit;
144  bool m_limitHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace APIGateway
149 } // namespace Aws
GetModelsRequest & WithPosition(const Aws::String &value)
const Aws::String & GetRestApiId() const
void SetPosition(const Aws::String &value)
const Aws::String & GetPosition() const
void SetRestApiId(Aws::String &&value)
void SetRestApiId(const Aws::String &value)
GetModelsRequest & WithRestApiId(const char *value)
GetModelsRequest & WithRestApiId(const Aws::String &value)
GetModelsRequest & WithRestApiId(Aws::String &&value)
GetModelsRequest & WithLimit(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetModelsRequest & WithPosition(Aws::String &&value)
#define AWS_APIGATEWAY_API
GetModelsRequest & WithPosition(const char *value)
JSON (JavaScript Object Notation).