AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateUsageRequest.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
28 {
29 public:
30 AWS_APIGATEWAY_API UpdateUsageRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateUsage"; }
37
38 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetUsagePlanId() const { return m_usagePlanId; }
46 inline bool UsagePlanIdHasBeenSet() const { return m_usagePlanIdHasBeenSet; }
47 template<typename UsagePlanIdT = Aws::String>
48 void SetUsagePlanId(UsagePlanIdT&& value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId = std::forward<UsagePlanIdT>(value); }
49 template<typename UsagePlanIdT = Aws::String>
50 UpdateUsageRequest& WithUsagePlanId(UsagePlanIdT&& value) { SetUsagePlanId(std::forward<UsagePlanIdT>(value)); return *this;}
52
54
58 inline const Aws::String& GetKeyId() const { return m_keyId; }
59 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
60 template<typename KeyIdT = Aws::String>
61 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
62 template<typename KeyIdT = Aws::String>
63 UpdateUsageRequest& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
65
67
72 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const { return m_patchOperations; }
73 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
74 template<typename PatchOperationsT = Aws::Vector<PatchOperation>>
75 void SetPatchOperations(PatchOperationsT&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::forward<PatchOperationsT>(value); }
76 template<typename PatchOperationsT = Aws::Vector<PatchOperation>>
77 UpdateUsageRequest& WithPatchOperations(PatchOperationsT&& value) { SetPatchOperations(std::forward<PatchOperationsT>(value)); return *this;}
78 template<typename PatchOperationsT = PatchOperation>
79 UpdateUsageRequest& AddPatchOperations(PatchOperationsT&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.emplace_back(std::forward<PatchOperationsT>(value)); return *this; }
81 private:
82
83 Aws::String m_usagePlanId;
84 bool m_usagePlanIdHasBeenSet = false;
85
86 Aws::String m_keyId;
87 bool m_keyIdHasBeenSet = false;
88
89 Aws::Vector<PatchOperation> m_patchOperations;
90 bool m_patchOperationsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace APIGateway
95} // 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