AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
UpdateAccountRequest.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/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace APIGateway {
16namespace Model {
17
25 public:
26 AWS_APIGATEWAY_API UpdateAccountRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateAccount"; }
33
34 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
35
37
42 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const { return m_patchOperations; }
43 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
44 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
45 void SetPatchOperations(PatchOperationsT&& value) {
46 m_patchOperationsHasBeenSet = true;
47 m_patchOperations = std::forward<PatchOperationsT>(value);
48 }
49 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
50 UpdateAccountRequest& WithPatchOperations(PatchOperationsT&& value) {
51 SetPatchOperations(std::forward<PatchOperationsT>(value));
52 return *this;
53 }
54 template <typename PatchOperationsT = PatchOperation>
55 UpdateAccountRequest& AddPatchOperations(PatchOperationsT&& value) {
56 m_patchOperationsHasBeenSet = true;
57 m_patchOperations.emplace_back(std::forward<PatchOperationsT>(value));
58 return *this;
59 }
61 private:
62 Aws::Vector<PatchOperation> m_patchOperations;
63 bool m_patchOperationsHasBeenSet = false;
64};
65
66} // namespace Model
67} // namespace APIGateway
68} // namespace Aws
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
AWS_APIGATEWAY_API UpdateAccountRequest()=default
void SetPatchOperations(PatchOperationsT &&value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
UpdateAccountRequest & AddPatchOperations(PatchOperationsT &&value)
virtual const char * GetServiceRequestName() const override
UpdateAccountRequest & WithPatchOperations(PatchOperationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector