AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
UpdateUsageRequest.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 UpdateUsageRequest() = 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 "UpdateUsage"; }
34
35 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetUsagePlanId() const { return m_usagePlanId; }
42 inline bool UsagePlanIdHasBeenSet() const { return m_usagePlanIdHasBeenSet; }
43 template <typename UsagePlanIdT = Aws::String>
44 void SetUsagePlanId(UsagePlanIdT&& value) {
45 m_usagePlanIdHasBeenSet = true;
46 m_usagePlanId = std::forward<UsagePlanIdT>(value);
47 }
48 template <typename UsagePlanIdT = Aws::String>
49 UpdateUsageRequest& WithUsagePlanId(UsagePlanIdT&& value) {
50 SetUsagePlanId(std::forward<UsagePlanIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetKeyId() const { return m_keyId; }
61 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
62 template <typename KeyIdT = Aws::String>
63 void SetKeyId(KeyIdT&& value) {
64 m_keyIdHasBeenSet = true;
65 m_keyId = std::forward<KeyIdT>(value);
66 }
67 template <typename KeyIdT = Aws::String>
68 UpdateUsageRequest& WithKeyId(KeyIdT&& value) {
69 SetKeyId(std::forward<KeyIdT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const { return m_patchOperations; }
81 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
82 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
83 void SetPatchOperations(PatchOperationsT&& value) {
84 m_patchOperationsHasBeenSet = true;
85 m_patchOperations = std::forward<PatchOperationsT>(value);
86 }
87 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
88 UpdateUsageRequest& WithPatchOperations(PatchOperationsT&& value) {
89 SetPatchOperations(std::forward<PatchOperationsT>(value));
90 return *this;
91 }
92 template <typename PatchOperationsT = PatchOperation>
93 UpdateUsageRequest& AddPatchOperations(PatchOperationsT&& value) {
94 m_patchOperationsHasBeenSet = true;
95 m_patchOperations.emplace_back(std::forward<PatchOperationsT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_usagePlanId;
101
102 Aws::String m_keyId;
103
104 Aws::Vector<PatchOperation> m_patchOperations;
105 bool m_usagePlanIdHasBeenSet = false;
106 bool m_keyIdHasBeenSet = false;
107 bool m_patchOperationsHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace APIGateway
112} // namespace Aws
void SetPatchOperations(PatchOperationsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< PatchOperation > & GetPatchOperations() const
UpdateUsageRequest & WithUsagePlanId(UsagePlanIdT &&value)
UpdateUsageRequest & WithKeyId(KeyIdT &&value)
UpdateUsageRequest & AddPatchOperations(PatchOperationsT &&value)
AWS_APIGATEWAY_API UpdateUsageRequest()=default
UpdateUsageRequest & WithPatchOperations(PatchOperationsT &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector