AWS SDK for C++  1.8.71
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
CreateUsagePlanKeyRequest & WithKeyType(const Aws::String &value)
CreateUsagePlanKeyRequest & WithKeyId(const char *value)
virtual const char * GetServiceRequestName() const override
CreateUsagePlanKeyRequest & WithKeyType(const char *value)
CreateUsagePlanKeyRequest & WithUsagePlanId(const char *value)
CreateUsagePlanKeyRequest & WithUsagePlanId(Aws::String &&value)
CreateUsagePlanKeyRequest & WithUsagePlanId(const Aws::String &value)
CreateUsagePlanKeyRequest & WithKeyType(Aws::String &&value)
CreateUsagePlanKeyRequest & WithKeyId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
CreateUsagePlanKeyRequest & WithKeyId(const Aws::String &value)