AWS SDK for C++  1.9.14
AWS SDK for C++
UpdateUsageRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace APIGateway
17 {
18 namespace Model
19 {
20 
28  {
29  public:
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::String SerializePayload() const override;
39 
40 
44  inline const Aws::String& GetUsagePlanId() const{ return m_usagePlanId; }
45 
49  inline bool UsagePlanIdHasBeenSet() const { return m_usagePlanIdHasBeenSet; }
50 
54  inline void SetUsagePlanId(const Aws::String& value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId = value; }
55 
59  inline void SetUsagePlanId(Aws::String&& value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId = std::move(value); }
60 
64  inline void SetUsagePlanId(const char* value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId.assign(value); }
65 
69  inline UpdateUsageRequest& WithUsagePlanId(const Aws::String& value) { SetUsagePlanId(value); return *this;}
70 
74  inline UpdateUsageRequest& WithUsagePlanId(Aws::String&& value) { SetUsagePlanId(std::move(value)); return *this;}
75 
79  inline UpdateUsageRequest& WithUsagePlanId(const char* value) { SetUsagePlanId(value); return *this;}
80 
81 
86  inline const Aws::String& GetKeyId() const{ return m_keyId; }
87 
92  inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
93 
98  inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
99 
104  inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
105 
110  inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
111 
116  inline UpdateUsageRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
117 
122  inline UpdateUsageRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
123 
128  inline UpdateUsageRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
129 
130 
135  inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
136 
141  inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
142 
147  inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
148 
153  inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::move(value); }
154 
159  inline UpdateUsageRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
160 
165  inline UpdateUsageRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(std::move(value)); return *this;}
166 
171  inline UpdateUsageRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
172 
177  inline UpdateUsageRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(std::move(value)); return *this; }
178 
179  private:
180 
181  Aws::String m_usagePlanId;
182  bool m_usagePlanIdHasBeenSet;
183 
184  Aws::String m_keyId;
185  bool m_keyIdHasBeenSet;
186 
187  Aws::Vector<PatchOperation> m_patchOperations;
188  bool m_patchOperationsHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace APIGateway
193 } // namespace Aws
Aws::APIGateway::Model::UpdateUsageRequest::SetKeyId
void SetKeyId(const char *value)
Definition: UpdateUsageRequest.h:110
Aws::APIGateway::Model::UpdateUsageRequest::WithKeyId
UpdateUsageRequest & WithKeyId(const Aws::String &value)
Definition: UpdateUsageRequest.h:116
Aws::APIGateway::Model::UpdateUsageRequest::SetKeyId
void SetKeyId(const Aws::String &value)
Definition: UpdateUsageRequest.h:98
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::UpdateUsageRequest::WithUsagePlanId
UpdateUsageRequest & WithUsagePlanId(Aws::String &&value)
Definition: UpdateUsageRequest.h:74
Aws::APIGateway::Model::UpdateUsageRequest::GetPatchOperations
const Aws::Vector< PatchOperation > & GetPatchOperations() const
Definition: UpdateUsageRequest.h:135
APIGateway_EXPORTS.h
Aws::APIGateway::Model::UpdateUsageRequest::GetKeyId
const Aws::String & GetKeyId() const
Definition: UpdateUsageRequest.h:86
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::APIGateway::Model::UpdateUsageRequest::PatchOperationsHasBeenSet
bool PatchOperationsHasBeenSet() const
Definition: UpdateUsageRequest.h:141
Aws::APIGateway::Model::UpdateUsageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateUsageRequest.h:36
AWSVector.h
Aws::APIGateway::Model::UpdateUsageRequest::WithPatchOperations
UpdateUsageRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateUsageRequest.h:165
Aws::APIGateway::Model::UpdateUsageRequest::SetPatchOperations
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateUsageRequest.h:147
Aws::APIGateway::Model::UpdateUsageRequest::SetUsagePlanId
void SetUsagePlanId(const Aws::String &value)
Definition: UpdateUsageRequest.h:54
APIGatewayRequest.h
Aws::APIGateway::Model::UpdateUsageRequest::KeyIdHasBeenSet
bool KeyIdHasBeenSet() const
Definition: UpdateUsageRequest.h:92
Aws::APIGateway::Model::UpdateUsageRequest::WithUsagePlanId
UpdateUsageRequest & WithUsagePlanId(const char *value)
Definition: UpdateUsageRequest.h:79
Aws::APIGateway::Model::UpdateUsageRequest::WithPatchOperations
UpdateUsageRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateUsageRequest.h:159
Aws::APIGateway::Model::UpdateUsageRequest::AddPatchOperations
UpdateUsageRequest & AddPatchOperations(const PatchOperation &value)
Definition: UpdateUsageRequest.h:171
Aws::APIGateway::Model::UpdateUsageRequest::WithKeyId
UpdateUsageRequest & WithKeyId(Aws::String &&value)
Definition: UpdateUsageRequest.h:122
Aws::APIGateway::Model::UpdateUsageRequest::UpdateUsageRequest
UpdateUsageRequest()
Aws::APIGateway::Model::UpdateUsageRequest
Definition: UpdateUsageRequest.h:28
AWSString.h
Aws::APIGateway::Model::UpdateUsageRequest::AddPatchOperations
UpdateUsageRequest & AddPatchOperations(PatchOperation &&value)
Definition: UpdateUsageRequest.h:177
Aws::APIGateway::Model::UpdateUsageRequest::UsagePlanIdHasBeenSet
bool UsagePlanIdHasBeenSet() const
Definition: UpdateUsageRequest.h:49
Aws::APIGateway::Model::UpdateUsageRequest::GetUsagePlanId
const Aws::String & GetUsagePlanId() const
Definition: UpdateUsageRequest.h:44
Aws::APIGateway::Model::UpdateUsageRequest::SetUsagePlanId
void SetUsagePlanId(Aws::String &&value)
Definition: UpdateUsageRequest.h:59
Aws::APIGateway::Model::UpdateUsageRequest::SetUsagePlanId
void SetUsagePlanId(const char *value)
Definition: UpdateUsageRequest.h:64
Aws::APIGateway::Model::UpdateUsageRequest::WithKeyId
UpdateUsageRequest & WithKeyId(const char *value)
Definition: UpdateUsageRequest.h:128
Aws::APIGateway::Model::UpdateUsageRequest::WithUsagePlanId
UpdateUsageRequest & WithUsagePlanId(const Aws::String &value)
Definition: UpdateUsageRequest.h:69
Aws::APIGateway::Model::UpdateUsageRequest::SetPatchOperations
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateUsageRequest.h:153
Aws
Definition: AccessManagementClient.h:15
PatchOperation.h
Aws::APIGateway::Model::UpdateUsageRequest::SetKeyId
void SetKeyId(Aws::String &&value)
Definition: UpdateUsageRequest.h:104
Aws::APIGateway::Model::UpdateUsageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::PatchOperation
Definition: PatchOperation.h:35
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18