AWS SDK for C++  0.14.3
AWS SDK for C++
GetModelRequest.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 GetModelRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
67 
71  inline GetModelRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
72 
76  inline GetModelRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
77 
81  inline const Aws::String& GetModelName() const{ return m_modelName; }
82 
86  inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
87 
91  inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
92 
96  inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
97 
101  inline GetModelRequest& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
102 
106  inline GetModelRequest& WithModelName(Aws::String&& value) { SetModelName(value); return *this;}
107 
111  inline GetModelRequest& WithModelName(const char* value) { SetModelName(value); return *this;}
112 
117  inline bool GetFlatten() const{ return m_flatten; }
118 
123  inline void SetFlatten(bool value) { m_flattenHasBeenSet = true; m_flatten = value; }
124 
129  inline GetModelRequest& WithFlatten(bool value) { SetFlatten(value); return *this;}
130 
131  private:
132  Aws::String m_restApiId;
133  bool m_restApiIdHasBeenSet;
134  Aws::String m_modelName;
135  bool m_modelNameHasBeenSet;
136  bool m_flatten;
137  bool m_flattenHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace APIGateway
142 } // namespace Aws
GetModelRequest & WithRestApiId(const Aws::String &value)
GetModelRequest & WithModelName(Aws::String &&value)
void SetModelName(const Aws::String &value)
void SetRestApiId(const Aws::String &value)
void SetRestApiId(Aws::String &&value)
GetModelRequest & WithRestApiId(Aws::String &&value)
const Aws::String & GetRestApiId() const
GetModelRequest & WithRestApiId(const char *value)
void SetModelName(Aws::String &&value)
GetModelRequest & WithFlatten(bool value)
const Aws::String & GetModelName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
GetModelRequest & WithModelName(const char *value)
GetModelRequest & WithModelName(const Aws::String &value)
JSON (JavaScript Object Notation).