AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
DeleteMethodRequest.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 APIGateway {
15namespace Model {
16
23 public:
24 AWS_APIGATEWAY_API DeleteMethodRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DeleteMethod"; }
31
32 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
39 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
40 template <typename RestApiIdT = Aws::String>
41 void SetRestApiId(RestApiIdT&& value) {
42 m_restApiIdHasBeenSet = true;
43 m_restApiId = std::forward<RestApiIdT>(value);
44 }
45 template <typename RestApiIdT = Aws::String>
46 DeleteMethodRequest& WithRestApiId(RestApiIdT&& value) {
47 SetRestApiId(std::forward<RestApiIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetResourceId() const { return m_resourceId; }
57 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
58 template <typename ResourceIdT = Aws::String>
59 void SetResourceId(ResourceIdT&& value) {
60 m_resourceIdHasBeenSet = true;
61 m_resourceId = std::forward<ResourceIdT>(value);
62 }
63 template <typename ResourceIdT = Aws::String>
64 DeleteMethodRequest& WithResourceId(ResourceIdT&& value) {
65 SetResourceId(std::forward<ResourceIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
75 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
76 template <typename HttpMethodT = Aws::String>
77 void SetHttpMethod(HttpMethodT&& value) {
78 m_httpMethodHasBeenSet = true;
79 m_httpMethod = std::forward<HttpMethodT>(value);
80 }
81 template <typename HttpMethodT = Aws::String>
82 DeleteMethodRequest& WithHttpMethod(HttpMethodT&& value) {
83 SetHttpMethod(std::forward<HttpMethodT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_restApiId;
89
90 Aws::String m_resourceId;
91
92 Aws::String m_httpMethod;
93 bool m_restApiIdHasBeenSet = false;
94 bool m_resourceIdHasBeenSet = false;
95 bool m_httpMethodHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace APIGateway
100} // namespace Aws
AWS_APIGATEWAY_API DeleteMethodRequest()=default
DeleteMethodRequest & WithResourceId(ResourceIdT &&value)
DeleteMethodRequest & WithHttpMethod(HttpMethodT &&value)
virtual const char * GetServiceRequestName() const override
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
DeleteMethodRequest & WithRestApiId(RestApiIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String