AWS SDK for C++  1.9.14
AWS SDK for C++
GetUsagePlanKeyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace APIGateway
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "GetUsagePlanKey"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
44  inline const Aws::String& GetUsagePlanId() const{ return m_usagePlanId; }
45 
51  inline bool UsagePlanIdHasBeenSet() const { return m_usagePlanIdHasBeenSet; }
52 
58  inline void SetUsagePlanId(const Aws::String& value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId = value; }
59 
65  inline void SetUsagePlanId(Aws::String&& value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId = std::move(value); }
66 
72  inline void SetUsagePlanId(const char* value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId.assign(value); }
73 
79  inline GetUsagePlanKeyRequest& WithUsagePlanId(const Aws::String& value) { SetUsagePlanId(value); return *this;}
80 
86  inline GetUsagePlanKeyRequest& WithUsagePlanId(Aws::String&& value) { SetUsagePlanId(std::move(value)); return *this;}
87 
93  inline GetUsagePlanKeyRequest& WithUsagePlanId(const char* value) { SetUsagePlanId(value); return *this;}
94 
95 
100  inline const Aws::String& GetKeyId() const{ return m_keyId; }
101 
106  inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
107 
112  inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
113 
118  inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
119 
124  inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
125 
130  inline GetUsagePlanKeyRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
131 
136  inline GetUsagePlanKeyRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
137 
142  inline GetUsagePlanKeyRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
143 
144  private:
145 
146  Aws::String m_usagePlanId;
147  bool m_usagePlanIdHasBeenSet;
148 
149  Aws::String m_keyId;
150  bool m_keyIdHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace APIGateway
155 } // namespace Aws
Aws::APIGateway::Model::GetUsagePlanKeyRequest::SetKeyId
void SetKeyId(Aws::String &&value)
Definition: GetUsagePlanKeyRequest.h:118
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::GetUsagePlanKeyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::GetUsagePlanKeyRequest::WithUsagePlanId
GetUsagePlanKeyRequest & WithUsagePlanId(Aws::String &&value)
Definition: GetUsagePlanKeyRequest.h:86
Aws::APIGateway::Model::GetUsagePlanKeyRequest::GetUsagePlanKeyRequest
GetUsagePlanKeyRequest()
Aws::APIGateway::Model::GetUsagePlanKeyRequest::SetUsagePlanId
void SetUsagePlanId(const Aws::String &value)
Definition: GetUsagePlanKeyRequest.h:58
APIGateway_EXPORTS.h
Aws::APIGateway::Model::GetUsagePlanKeyRequest::GetKeyId
const Aws::String & GetKeyId() const
Definition: GetUsagePlanKeyRequest.h:100
Aws::APIGateway::Model::GetUsagePlanKeyRequest::KeyIdHasBeenSet
bool KeyIdHasBeenSet() const
Definition: GetUsagePlanKeyRequest.h:106
APIGatewayRequest.h
Aws::APIGateway::Model::GetUsagePlanKeyRequest::WithUsagePlanId
GetUsagePlanKeyRequest & WithUsagePlanId(const char *value)
Definition: GetUsagePlanKeyRequest.h:93
Aws::APIGateway::Model::GetUsagePlanKeyRequest::WithKeyId
GetUsagePlanKeyRequest & WithKeyId(const char *value)
Definition: GetUsagePlanKeyRequest.h:142
Aws::APIGateway::Model::GetUsagePlanKeyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetUsagePlanKeyRequest.h:34
AWSString.h
Aws::APIGateway::Model::GetUsagePlanKeyRequest::WithKeyId
GetUsagePlanKeyRequest & WithKeyId(Aws::String &&value)
Definition: GetUsagePlanKeyRequest.h:136
Aws::APIGateway::Model::GetUsagePlanKeyRequest::UsagePlanIdHasBeenSet
bool UsagePlanIdHasBeenSet() const
Definition: GetUsagePlanKeyRequest.h:51
Aws::APIGateway::Model::GetUsagePlanKeyRequest::SetUsagePlanId
void SetUsagePlanId(Aws::String &&value)
Definition: GetUsagePlanKeyRequest.h:65
Aws::APIGateway::Model::GetUsagePlanKeyRequest::SetKeyId
void SetKeyId(const Aws::String &value)
Definition: GetUsagePlanKeyRequest.h:112
Aws::APIGateway::Model::GetUsagePlanKeyRequest::SetKeyId
void SetKeyId(const char *value)
Definition: GetUsagePlanKeyRequest.h:124
Aws::APIGateway::Model::GetUsagePlanKeyRequest::GetUsagePlanId
const Aws::String & GetUsagePlanId() const
Definition: GetUsagePlanKeyRequest.h:44
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::GetUsagePlanKeyRequest
Definition: GetUsagePlanKeyRequest.h:26
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::GetUsagePlanKeyRequest::SetUsagePlanId
void SetUsagePlanId(const char *value)
Definition: GetUsagePlanKeyRequest.h:72
Aws::APIGateway::Model::GetUsagePlanKeyRequest::WithKeyId
GetUsagePlanKeyRequest & WithKeyId(const Aws::String &value)
Definition: GetUsagePlanKeyRequest.h:130
Aws::APIGateway::Model::GetUsagePlanKeyRequest::WithUsagePlanId
GetUsagePlanKeyRequest & WithUsagePlanId(const Aws::String &value)
Definition: GetUsagePlanKeyRequest.h:79
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18