AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
UpdateAuthorizerRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/apigateway/model/PatchOperation.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace APIGateway {
17namespace Model {
18
26 public:
27 AWS_APIGATEWAY_API UpdateAuthorizerRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateAuthorizer"; }
34
35 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
42 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
43 template <typename RestApiIdT = Aws::String>
44 void SetRestApiId(RestApiIdT&& value) {
45 m_restApiIdHasBeenSet = true;
46 m_restApiId = std::forward<RestApiIdT>(value);
47 }
48 template <typename RestApiIdT = Aws::String>
50 SetRestApiId(std::forward<RestApiIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAuthorizerId() const { return m_authorizerId; }
60 inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
61 template <typename AuthorizerIdT = Aws::String>
62 void SetAuthorizerId(AuthorizerIdT&& value) {
63 m_authorizerIdHasBeenSet = true;
64 m_authorizerId = std::forward<AuthorizerIdT>(value);
65 }
66 template <typename AuthorizerIdT = Aws::String>
67 UpdateAuthorizerRequest& WithAuthorizerId(AuthorizerIdT&& value) {
68 SetAuthorizerId(std::forward<AuthorizerIdT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const { return m_patchOperations; }
80 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
81 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
82 void SetPatchOperations(PatchOperationsT&& value) {
83 m_patchOperationsHasBeenSet = true;
84 m_patchOperations = std::forward<PatchOperationsT>(value);
85 }
86 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
87 UpdateAuthorizerRequest& WithPatchOperations(PatchOperationsT&& value) {
88 SetPatchOperations(std::forward<PatchOperationsT>(value));
89 return *this;
90 }
91 template <typename PatchOperationsT = PatchOperation>
92 UpdateAuthorizerRequest& AddPatchOperations(PatchOperationsT&& value) {
93 m_patchOperationsHasBeenSet = true;
94 m_patchOperations.emplace_back(std::forward<PatchOperationsT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_restApiId;
100
101 Aws::String m_authorizerId;
102
103 Aws::Vector<PatchOperation> m_patchOperations;
104 bool m_restApiIdHasBeenSet = false;
105 bool m_authorizerIdHasBeenSet = false;
106 bool m_patchOperationsHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace APIGateway
111} // namespace Aws
AWS_APIGATEWAY_API UpdateAuthorizerRequest()=default
UpdateAuthorizerRequest & WithPatchOperations(PatchOperationsT &&value)
UpdateAuthorizerRequest & WithRestApiId(RestApiIdT &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
UpdateAuthorizerRequest & AddPatchOperations(PatchOperationsT &&value)
UpdateAuthorizerRequest & WithAuthorizerId(AuthorizerIdT &&value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector