AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUsagePlanId(const Aws::String& value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId = value; }
48 inline void SetUsagePlanId(Aws::String&& value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId = std::move(value); }
49 inline void SetUsagePlanId(const char* value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId.assign(value); }
50 inline UpdateUsageRequest& WithUsagePlanId(const Aws::String& value) { SetUsagePlanId(value); return *this;}
51 inline UpdateUsageRequest& WithUsagePlanId(Aws::String&& value) { SetUsagePlanId(std::move(value)); return *this;}
52 inline UpdateUsageRequest& WithUsagePlanId(const char* value) { SetUsagePlanId(value); return *this;}
54
56
60 inline const Aws::String& GetKeyId() const{ return m_keyId; }
61 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
62 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
63 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
64 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
65 inline UpdateUsageRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
66 inline UpdateUsageRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
67 inline UpdateUsageRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
69
71
76 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
77 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
78 inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
79 inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::move(value); }
81 inline UpdateUsageRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(std::move(value)); return *this;}
82 inline UpdateUsageRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
83 inline UpdateUsageRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(std::move(value)); return *this; }
85 private:
86
87 Aws::String m_usagePlanId;
88 bool m_usagePlanIdHasBeenSet = false;
89
90 Aws::String m_keyId;
91 bool m_keyIdHasBeenSet = false;
92
93 Aws::Vector<PatchOperation> m_patchOperations;
94 bool m_patchOperationsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace APIGateway
99} // namespace Aws
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
virtual const char * GetServiceRequestName() const override
UpdateUsageRequest & WithUsagePlanId(const char *value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
UpdateUsageRequest & WithKeyId(const char *value)
UpdateUsageRequest & WithKeyId(Aws::String &&value)
UpdateUsageRequest & AddPatchOperations(const PatchOperation &value)
UpdateUsageRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
void SetKeyId(const Aws::String &value)
UpdateUsageRequest & WithKeyId(const Aws::String &value)
UpdateUsageRequest & WithUsagePlanId(const Aws::String &value)
UpdateUsageRequest & WithUsagePlanId(Aws::String &&value)
UpdateUsageRequest & AddPatchOperations(PatchOperation &&value)
UpdateUsageRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
void SetUsagePlanId(const Aws::String &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