AWS SDK for C++

AWS SDK for C++ Version 1.11.767

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