AWS SDK for C++  1.9.20
AWS SDK for C++
UpdateUsagePlanRequest.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 "UpdateUsagePlan"; }
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 UpdateUsagePlanRequest& WithUsagePlanId(const Aws::String& value) { SetUsagePlanId(value); return *this;}
70 
74  inline UpdateUsagePlanRequest& WithUsagePlanId(Aws::String&& value) { SetUsagePlanId(std::move(value)); return *this;}
75 
79  inline UpdateUsagePlanRequest& WithUsagePlanId(const char* value) { SetUsagePlanId(value); return *this;}
80 
81 
86  inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
87 
92  inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
93 
98  inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
99 
104  inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::move(value); }
105 
110  inline UpdateUsagePlanRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
111 
116  inline UpdateUsagePlanRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(std::move(value)); return *this;}
117 
122  inline UpdateUsagePlanRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
123 
128  inline UpdateUsagePlanRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(std::move(value)); return *this; }
129 
130  private:
131 
132  Aws::String m_usagePlanId;
133  bool m_usagePlanIdHasBeenSet;
134 
135  Aws::Vector<PatchOperation> m_patchOperations;
136  bool m_patchOperationsHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace APIGateway
141 } // namespace Aws
Aws::APIGateway::Model::UpdateUsagePlanRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::UpdateUsagePlanRequest::UpdateUsagePlanRequest
UpdateUsagePlanRequest()
Aws::APIGateway::Model::UpdateUsagePlanRequest::WithPatchOperations
UpdateUsagePlanRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateUsagePlanRequest.h:110
Aws::APIGateway::Model::UpdateUsagePlanRequest::GetUsagePlanId
const Aws::String & GetUsagePlanId() const
Definition: UpdateUsagePlanRequest.h:44
Aws::APIGateway::Model::UpdateUsagePlanRequest::WithUsagePlanId
UpdateUsagePlanRequest & WithUsagePlanId(const char *value)
Definition: UpdateUsagePlanRequest.h:79
Aws::APIGateway::Model::UpdateUsagePlanRequest::WithUsagePlanId
UpdateUsagePlanRequest & WithUsagePlanId(const Aws::String &value)
Definition: UpdateUsagePlanRequest.h:69
APIGateway_EXPORTS.h
Aws::APIGateway::Model::UpdateUsagePlanRequest::AddPatchOperations
UpdateUsagePlanRequest & AddPatchOperations(const PatchOperation &value)
Definition: UpdateUsagePlanRequest.h:122
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
APIGatewayRequest.h
Aws::APIGateway::Model::UpdateUsagePlanRequest::WithUsagePlanId
UpdateUsagePlanRequest & WithUsagePlanId(Aws::String &&value)
Definition: UpdateUsagePlanRequest.h:74
Aws::APIGateway::Model::UpdateUsagePlanRequest::SetPatchOperations
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateUsagePlanRequest.h:98
Aws::APIGateway::Model::UpdateUsagePlanRequest::SetUsagePlanId
void SetUsagePlanId(Aws::String &&value)
Definition: UpdateUsagePlanRequest.h:59
Aws::APIGateway::Model::UpdateUsagePlanRequest::SetPatchOperations
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateUsagePlanRequest.h:104
AWSString.h
Aws::APIGateway::Model::UpdateUsagePlanRequest::AddPatchOperations
UpdateUsagePlanRequest & AddPatchOperations(PatchOperation &&value)
Definition: UpdateUsagePlanRequest.h:128
Aws::APIGateway::Model::UpdateUsagePlanRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateUsagePlanRequest.h:36
Aws::APIGateway::Model::UpdateUsagePlanRequest
Definition: UpdateUsagePlanRequest.h:28
Aws
Definition: AccessManagementClient.h:15
PatchOperation.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::UpdateUsagePlanRequest::GetPatchOperations
const Aws::Vector< PatchOperation > & GetPatchOperations() const
Definition: UpdateUsagePlanRequest.h:86
Aws::APIGateway::Model::PatchOperation
Definition: PatchOperation.h:35
Aws::APIGateway::Model::UpdateUsagePlanRequest::WithPatchOperations
UpdateUsagePlanRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateUsagePlanRequest.h:116
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::UpdateUsagePlanRequest::SetUsagePlanId
void SetUsagePlanId(const Aws::String &value)
Definition: UpdateUsagePlanRequest.h:54
Aws::APIGateway::Model::UpdateUsagePlanRequest::SetUsagePlanId
void SetUsagePlanId(const char *value)
Definition: UpdateUsagePlanRequest.h:64
Aws::APIGateway::Model::UpdateUsagePlanRequest::PatchOperationsHasBeenSet
bool PatchOperationsHasBeenSet() const
Definition: UpdateUsagePlanRequest.h:92
Aws::APIGateway::Model::UpdateUsagePlanRequest::UsagePlanIdHasBeenSet
bool UsagePlanIdHasBeenSet() const
Definition: UpdateUsagePlanRequest.h:49