AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateMethodResponseRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/apigateway/model/PatchOperation.h>
12#include <utility>
13
14namespace Aws
15{
16namespace APIGateway
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_APIGATEWAY_API UpdateMethodResponseRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateMethodResponse"; }
37
38 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
46 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
47 template<typename RestApiIdT = Aws::String>
48 void SetRestApiId(RestApiIdT&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::forward<RestApiIdT>(value); }
49 template<typename RestApiIdT = Aws::String>
50 UpdateMethodResponseRequest& WithRestApiId(RestApiIdT&& value) { SetRestApiId(std::forward<RestApiIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetResourceId() const { return m_resourceId; }
58 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
59 template<typename ResourceIdT = Aws::String>
60 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
61 template<typename ResourceIdT = Aws::String>
62 UpdateMethodResponseRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
64
66
69 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
70 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
71 template<typename HttpMethodT = Aws::String>
72 void SetHttpMethod(HttpMethodT&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::forward<HttpMethodT>(value); }
73 template<typename HttpMethodT = Aws::String>
74 UpdateMethodResponseRequest& WithHttpMethod(HttpMethodT&& value) { SetHttpMethod(std::forward<HttpMethodT>(value)); return *this;}
76
78
81 inline const Aws::String& GetStatusCode() const { return m_statusCode; }
82 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
83 template<typename StatusCodeT = Aws::String>
84 void SetStatusCode(StatusCodeT&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::forward<StatusCodeT>(value); }
85 template<typename StatusCodeT = Aws::String>
86 UpdateMethodResponseRequest& WithStatusCode(StatusCodeT&& value) { SetStatusCode(std::forward<StatusCodeT>(value)); return *this;}
88
90
95 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const { return m_patchOperations; }
96 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
97 template<typename PatchOperationsT = Aws::Vector<PatchOperation>>
98 void SetPatchOperations(PatchOperationsT&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::forward<PatchOperationsT>(value); }
99 template<typename PatchOperationsT = Aws::Vector<PatchOperation>>
100 UpdateMethodResponseRequest& WithPatchOperations(PatchOperationsT&& value) { SetPatchOperations(std::forward<PatchOperationsT>(value)); return *this;}
101 template<typename PatchOperationsT = PatchOperation>
102 UpdateMethodResponseRequest& AddPatchOperations(PatchOperationsT&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.emplace_back(std::forward<PatchOperationsT>(value)); return *this; }
104 private:
105
106 Aws::String m_restApiId;
107 bool m_restApiIdHasBeenSet = false;
108
109 Aws::String m_resourceId;
110 bool m_resourceIdHasBeenSet = false;
111
112 Aws::String m_httpMethod;
113 bool m_httpMethodHasBeenSet = false;
114
115 Aws::String m_statusCode;
116 bool m_statusCodeHasBeenSet = false;
117
118 Aws::Vector<PatchOperation> m_patchOperations;
119 bool m_patchOperationsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace APIGateway
124} // namespace Aws
UpdateMethodResponseRequest & WithHttpMethod(HttpMethodT &&value)
UpdateMethodResponseRequest & WithResourceId(ResourceIdT &&value)
UpdateMethodResponseRequest & AddPatchOperations(PatchOperationsT &&value)
UpdateMethodResponseRequest & WithPatchOperations(PatchOperationsT &&value)
UpdateMethodResponseRequest & WithStatusCode(StatusCodeT &&value)
AWS_APIGATEWAY_API UpdateMethodResponseRequest()=default
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
const Aws::Vector< PatchOperation > & GetPatchOperations() const
UpdateMethodResponseRequest & WithRestApiId(RestApiIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector