AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateMethodRequest.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
27 {
28 public:
29 AWS_APIGATEWAY_API UpdateMethodRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateMethod"; }
36
37 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
45 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
46 inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
47 inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
48 inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
49 inline UpdateMethodRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
50 inline UpdateMethodRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
51 inline UpdateMethodRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
53
55
58 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
59 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
60 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
61 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
62 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
63 inline UpdateMethodRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
64 inline UpdateMethodRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
65 inline UpdateMethodRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
67
69
72 inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
73 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
74 inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
75 inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); }
76 inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
77 inline UpdateMethodRequest& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
78 inline UpdateMethodRequest& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;}
79 inline UpdateMethodRequest& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
81
83
88 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
89 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
90 inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
91 inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::move(value); }
94 inline UpdateMethodRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
95 inline UpdateMethodRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(std::move(value)); return *this; }
97 private:
98
99 Aws::String m_restApiId;
100 bool m_restApiIdHasBeenSet = false;
101
102 Aws::String m_resourceId;
103 bool m_resourceIdHasBeenSet = false;
104
105 Aws::String m_httpMethod;
106 bool m_httpMethodHasBeenSet = false;
107
108 Aws::Vector<PatchOperation> m_patchOperations;
109 bool m_patchOperationsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace APIGateway
114} // namespace Aws
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
UpdateMethodRequest & AddPatchOperations(PatchOperation &&value)
UpdateMethodRequest & WithResourceId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateMethodRequest & WithRestApiId(const char *value)
UpdateMethodRequest & WithRestApiId(const Aws::String &value)
void SetHttpMethod(const Aws::String &value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
UpdateMethodRequest & WithResourceId(const char *value)
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
UpdateMethodRequest & AddPatchOperations(const PatchOperation &value)
void SetResourceId(const Aws::String &value)
UpdateMethodRequest & WithResourceId(Aws::String &&value)
UpdateMethodRequest & WithHttpMethod(const Aws::String &value)
UpdateMethodRequest & WithHttpMethod(Aws::String &&value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
UpdateMethodRequest & WithHttpMethod(const char *value)
UpdateMethodRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
UpdateMethodRequest & WithRestApiId(Aws::String &&value)
void SetRestApiId(const Aws::String &value)
UpdateMethodRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector