AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetModelRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace APIGateway
19{
20namespace Model
21{
22
30 {
31 public:
32 AWS_APIGATEWAY_API GetModelRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "GetModel"; }
39
40 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
41
42 AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
49 inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
50 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
51 inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
52 inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
53 inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
54 inline GetModelRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
55 inline GetModelRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
56 inline GetModelRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
58
60
63 inline const Aws::String& GetModelName() const{ return m_modelName; }
64 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
65 inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
66 inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); }
67 inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
68 inline GetModelRequest& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
69 inline GetModelRequest& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;}
70 inline GetModelRequest& WithModelName(const char* value) { SetModelName(value); return *this;}
72
74
79 inline bool GetFlatten() const{ return m_flatten; }
80 inline bool FlattenHasBeenSet() const { return m_flattenHasBeenSet; }
81 inline void SetFlatten(bool value) { m_flattenHasBeenSet = true; m_flatten = value; }
82 inline GetModelRequest& WithFlatten(bool value) { SetFlatten(value); return *this;}
84 private:
85
86 Aws::String m_restApiId;
87 bool m_restApiIdHasBeenSet = false;
88
89 Aws::String m_modelName;
90 bool m_modelNameHasBeenSet = false;
91
92 bool m_flatten;
93 bool m_flattenHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace APIGateway
98} // namespace Aws
const Aws::String & GetModelName() const
GetModelRequest & WithModelName(Aws::String &&value)
GetModelRequest & WithModelName(const char *value)
GetModelRequest & WithRestApiId(const char *value)
void SetRestApiId(Aws::String &&value)
GetModelRequest & WithRestApiId(Aws::String &&value)
void SetModelName(const Aws::String &value)
void SetRestApiId(const Aws::String &value)
GetModelRequest & WithFlatten(bool value)
AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetModelRequest & WithRestApiId(const Aws::String &value)
GetModelRequest & WithModelName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetRestApiId() const
void SetModelName(Aws::String &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String