AWS SDK for C++  1.9.20
AWS SDK for C++
CreateUsagePlanKeyRequest.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 "CreateUsagePlanKey"; }
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 CreateUsagePlanKeyRequest& WithUsagePlanId(const Aws::String& value) { SetUsagePlanId(value); return *this;}
80 
86  inline CreateUsagePlanKeyRequest& WithUsagePlanId(Aws::String&& value) { SetUsagePlanId(std::move(value)); return *this;}
87 
93  inline CreateUsagePlanKeyRequest& 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 CreateUsagePlanKeyRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
131 
136  inline CreateUsagePlanKeyRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
137 
142  inline CreateUsagePlanKeyRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
143 
144 
149  inline const Aws::String& GetKeyType() const{ return m_keyType; }
150 
155  inline bool KeyTypeHasBeenSet() const { return m_keyTypeHasBeenSet; }
156 
161  inline void SetKeyType(const Aws::String& value) { m_keyTypeHasBeenSet = true; m_keyType = value; }
162 
167  inline void SetKeyType(Aws::String&& value) { m_keyTypeHasBeenSet = true; m_keyType = std::move(value); }
168 
173  inline void SetKeyType(const char* value) { m_keyTypeHasBeenSet = true; m_keyType.assign(value); }
174 
179  inline CreateUsagePlanKeyRequest& WithKeyType(const Aws::String& value) { SetKeyType(value); return *this;}
180 
185  inline CreateUsagePlanKeyRequest& WithKeyType(Aws::String&& value) { SetKeyType(std::move(value)); return *this;}
186 
191  inline CreateUsagePlanKeyRequest& WithKeyType(const char* value) { SetKeyType(value); return *this;}
192 
193  private:
194 
195  Aws::String m_usagePlanId;
196  bool m_usagePlanIdHasBeenSet;
197 
198  Aws::String m_keyId;
199  bool m_keyIdHasBeenSet;
200 
201  Aws::String m_keyType;
202  bool m_keyTypeHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace APIGateway
207 } // namespace Aws
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::GetKeyType
const Aws::String & GetKeyType() const
Definition: CreateUsagePlanKeyRequest.h:149
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::SetUsagePlanId
void SetUsagePlanId(Aws::String &&value)
Definition: CreateUsagePlanKeyRequest.h:65
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::CreateUsagePlanKeyRequest
CreateUsagePlanKeyRequest()
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::SetKeyId
void SetKeyId(const char *value)
Definition: CreateUsagePlanKeyRequest.h:124
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::SetKeyType
void SetKeyType(Aws::String &&value)
Definition: CreateUsagePlanKeyRequest.h:167
Aws::APIGateway::Model::CreateUsagePlanKeyRequest
Definition: CreateUsagePlanKeyRequest.h:26
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::SetKeyType
void SetKeyType(const char *value)
Definition: CreateUsagePlanKeyRequest.h:173
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::WithKeyType
CreateUsagePlanKeyRequest & WithKeyType(const Aws::String &value)
Definition: CreateUsagePlanKeyRequest.h:179
APIGateway_EXPORTS.h
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::KeyTypeHasBeenSet
bool KeyTypeHasBeenSet() const
Definition: CreateUsagePlanKeyRequest.h:155
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateUsagePlanKeyRequest.h:34
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::SetKeyId
void SetKeyId(Aws::String &&value)
Definition: CreateUsagePlanKeyRequest.h:118
APIGatewayRequest.h
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::WithKeyId
CreateUsagePlanKeyRequest & WithKeyId(const char *value)
Definition: CreateUsagePlanKeyRequest.h:142
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::WithKeyId
CreateUsagePlanKeyRequest & WithKeyId(Aws::String &&value)
Definition: CreateUsagePlanKeyRequest.h:136
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::SetKeyType
void SetKeyType(const Aws::String &value)
Definition: CreateUsagePlanKeyRequest.h:161
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::SetUsagePlanId
void SetUsagePlanId(const char *value)
Definition: CreateUsagePlanKeyRequest.h:72
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::WithKeyType
CreateUsagePlanKeyRequest & WithKeyType(Aws::String &&value)
Definition: CreateUsagePlanKeyRequest.h:185
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::WithUsagePlanId
CreateUsagePlanKeyRequest & WithUsagePlanId(Aws::String &&value)
Definition: CreateUsagePlanKeyRequest.h:86
AWSString.h
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::WithUsagePlanId
CreateUsagePlanKeyRequest & WithUsagePlanId(const Aws::String &value)
Definition: CreateUsagePlanKeyRequest.h:79
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::WithKeyType
CreateUsagePlanKeyRequest & WithKeyType(const char *value)
Definition: CreateUsagePlanKeyRequest.h:191
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::KeyIdHasBeenSet
bool KeyIdHasBeenSet() const
Definition: CreateUsagePlanKeyRequest.h:106
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::UsagePlanIdHasBeenSet
bool UsagePlanIdHasBeenSet() const
Definition: CreateUsagePlanKeyRequest.h:51
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::GetUsagePlanId
const Aws::String & GetUsagePlanId() const
Definition: CreateUsagePlanKeyRequest.h:44
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::SetKeyId
void SetKeyId(const Aws::String &value)
Definition: CreateUsagePlanKeyRequest.h:112
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::WithUsagePlanId
CreateUsagePlanKeyRequest & WithUsagePlanId(const char *value)
Definition: CreateUsagePlanKeyRequest.h:93
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::SetUsagePlanId
void SetUsagePlanId(const Aws::String &value)
Definition: CreateUsagePlanKeyRequest.h:58
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::WithKeyId
CreateUsagePlanKeyRequest & WithKeyId(const Aws::String &value)
Definition: CreateUsagePlanKeyRequest.h:130
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::CreateUsagePlanKeyRequest::GetKeyId
const Aws::String & GetKeyId() const
Definition: CreateUsagePlanKeyRequest.h:100