AWS SDK for C++  1.9.14
AWS SDK for C++
DeleteMethodRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace APIGateway
15 {
16 namespace Model
17 {
18 
26  {
27  public:
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 "DeleteMethod"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
43 
47  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
48 
52  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
53 
57  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
58 
62  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
63 
67  inline DeleteMethodRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
68 
72  inline DeleteMethodRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
73 
77  inline DeleteMethodRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
78 
79 
83  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
84 
88  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
89 
93  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
94 
98  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
99 
103  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
104 
108  inline DeleteMethodRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
109 
113  inline DeleteMethodRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
114 
118  inline DeleteMethodRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
119 
120 
124  inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
125 
129  inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
130 
134  inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
135 
139  inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); }
140 
144  inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
145 
149  inline DeleteMethodRequest& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
150 
154  inline DeleteMethodRequest& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;}
155 
159  inline DeleteMethodRequest& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
160 
161  private:
162 
163  Aws::String m_restApiId;
164  bool m_restApiIdHasBeenSet;
165 
166  Aws::String m_resourceId;
167  bool m_resourceIdHasBeenSet;
168 
169  Aws::String m_httpMethod;
170  bool m_httpMethodHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace APIGateway
175 } // namespace Aws
Aws::APIGateway::Model::DeleteMethodRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: DeleteMethodRequest.h:88
Aws::APIGateway::Model::DeleteMethodRequest::WithHttpMethod
DeleteMethodRequest & WithHttpMethod(const Aws::String &value)
Definition: DeleteMethodRequest.h:149
Aws::APIGateway::Model::DeleteMethodRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: DeleteMethodRequest.h:93
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::DeleteMethodRequest::SetHttpMethod
void SetHttpMethod(const Aws::String &value)
Definition: DeleteMethodRequest.h:134
Aws::APIGateway::Model::DeleteMethodRequest::DeleteMethodRequest
DeleteMethodRequest()
Aws::APIGateway::Model::DeleteMethodRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: DeleteMethodRequest.h:52
APIGateway_EXPORTS.h
Aws::APIGateway::Model::DeleteMethodRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteMethodRequest.h:34
APIGatewayRequest.h
Aws::APIGateway::Model::DeleteMethodRequest::SetHttpMethod
void SetHttpMethod(const char *value)
Definition: DeleteMethodRequest.h:144
Aws::APIGateway::Model::DeleteMethodRequest::HttpMethodHasBeenSet
bool HttpMethodHasBeenSet() const
Definition: DeleteMethodRequest.h:129
Aws::APIGateway::Model::DeleteMethodRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: DeleteMethodRequest.h:57
Aws::APIGateway::Model::DeleteMethodRequest::WithHttpMethod
DeleteMethodRequest & WithHttpMethod(const char *value)
Definition: DeleteMethodRequest.h:159
Aws::APIGateway::Model::DeleteMethodRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: DeleteMethodRequest.h:47
Aws::APIGateway::Model::DeleteMethodRequest::WithResourceId
DeleteMethodRequest & WithResourceId(Aws::String &&value)
Definition: DeleteMethodRequest.h:113
Aws::APIGateway::Model::DeleteMethodRequest::WithResourceId
DeleteMethodRequest & WithResourceId(const char *value)
Definition: DeleteMethodRequest.h:118
Aws::APIGateway::Model::DeleteMethodRequest::GetHttpMethod
const Aws::String & GetHttpMethod() const
Definition: DeleteMethodRequest.h:124
AWSString.h
Aws::APIGateway::Model::DeleteMethodRequest::WithResourceId
DeleteMethodRequest & WithResourceId(const Aws::String &value)
Definition: DeleteMethodRequest.h:108
Aws::APIGateway::Model::DeleteMethodRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: DeleteMethodRequest.h:98
Aws::APIGateway::Model::DeleteMethodRequest
Definition: DeleteMethodRequest.h:26
Aws::APIGateway::Model::DeleteMethodRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: DeleteMethodRequest.h:42
Aws::APIGateway::Model::DeleteMethodRequest::WithHttpMethod
DeleteMethodRequest & WithHttpMethod(Aws::String &&value)
Definition: DeleteMethodRequest.h:154
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::DeleteMethodRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::DeleteMethodRequest::WithRestApiId
DeleteMethodRequest & WithRestApiId(Aws::String &&value)
Definition: DeleteMethodRequest.h:72
Aws::APIGateway::Model::DeleteMethodRequest::SetHttpMethod
void SetHttpMethod(Aws::String &&value)
Definition: DeleteMethodRequest.h:139
Aws::APIGateway::Model::DeleteMethodRequest::SetResourceId
void SetResourceId(const char *value)
Definition: DeleteMethodRequest.h:103
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::DeleteMethodRequest::WithRestApiId
DeleteMethodRequest & WithRestApiId(const char *value)
Definition: DeleteMethodRequest.h:77
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::DeleteMethodRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: DeleteMethodRequest.h:62
Aws::APIGateway::Model::DeleteMethodRequest::WithRestApiId
DeleteMethodRequest & WithRestApiId(const Aws::String &value)
Definition: DeleteMethodRequest.h:67
Aws::APIGateway::Model::DeleteMethodRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: DeleteMethodRequest.h:83