AWS SDK for C++  0.14.3
AWS SDK for C++
GetDeploymentsRequest.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 
47  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
48 
53  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
54 
59  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
60 
65  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
66 
71  inline GetDeploymentsRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
72 
77  inline GetDeploymentsRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
78 
83  inline GetDeploymentsRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
84 
89  inline const Aws::String& GetPosition() const{ return m_position; }
90 
95  inline void SetPosition(const Aws::String& value) { m_positionHasBeenSet = true; m_position = value; }
96 
101  inline void SetPosition(Aws::String&& value) { m_positionHasBeenSet = true; m_position = value; }
102 
107  inline void SetPosition(const char* value) { m_positionHasBeenSet = true; m_position.assign(value); }
108 
113  inline GetDeploymentsRequest& WithPosition(const Aws::String& value) { SetPosition(value); return *this;}
114 
119  inline GetDeploymentsRequest& WithPosition(Aws::String&& value) { SetPosition(value); return *this;}
120 
125  inline GetDeploymentsRequest& WithPosition(const char* value) { SetPosition(value); return *this;}
126 
132  inline int GetLimit() const{ return m_limit; }
133 
139  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
140 
146  inline GetDeploymentsRequest& WithLimit(int value) { SetLimit(value); return *this;}
147 
148  private:
149  Aws::String m_restApiId;
150  bool m_restApiIdHasBeenSet;
151  Aws::String m_position;
152  bool m_positionHasBeenSet;
153  int m_limit;
154  bool m_limitHasBeenSet;
155  };
156 
157 } // namespace Model
158 } // namespace APIGateway
159 } // namespace Aws
GetDeploymentsRequest & WithRestApiId(const Aws::String &value)
GetDeploymentsRequest & WithPosition(Aws::String &&value)
GetDeploymentsRequest & WithRestApiId(Aws::String &&value)
GetDeploymentsRequest & WithLimit(int value)
GetDeploymentsRequest & WithPosition(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
GetDeploymentsRequest & WithRestApiId(const char *value)
GetDeploymentsRequest & WithPosition(const char *value)
JSON (JavaScript Object Notation).