AWS SDK for C++  1.9.18
AWS SDK for C++
UsagePlanKey.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace APIGateway
22 {
23 namespace Model
24 {
25 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetId() const{ return m_id; }
49 
53  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 
58  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
59 
63  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
64 
68  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
69 
73  inline UsagePlanKey& WithId(const Aws::String& value) { SetId(value); return *this;}
74 
78  inline UsagePlanKey& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
79 
83  inline UsagePlanKey& WithId(const char* value) { SetId(value); return *this;}
84 
85 
90  inline const Aws::String& GetType() const{ return m_type; }
91 
96  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
97 
102  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
103 
108  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
109 
114  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
115 
120  inline UsagePlanKey& WithType(const Aws::String& value) { SetType(value); return *this;}
121 
126  inline UsagePlanKey& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
127 
132  inline UsagePlanKey& WithType(const char* value) { SetType(value); return *this;}
133 
134 
138  inline const Aws::String& GetValue() const{ return m_value; }
139 
143  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
144 
148  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
149 
153  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
154 
158  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
159 
163  inline UsagePlanKey& WithValue(const Aws::String& value) { SetValue(value); return *this;}
164 
168  inline UsagePlanKey& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
169 
173  inline UsagePlanKey& WithValue(const char* value) { SetValue(value); return *this;}
174 
175 
179  inline const Aws::String& GetName() const{ return m_name; }
180 
184  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
185 
189  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
190 
194  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
195 
199  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
200 
204  inline UsagePlanKey& WithName(const Aws::String& value) { SetName(value); return *this;}
205 
209  inline UsagePlanKey& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
210 
214  inline UsagePlanKey& WithName(const char* value) { SetName(value); return *this;}
215 
216  private:
217 
218  Aws::String m_id;
219  bool m_idHasBeenSet;
220 
221  Aws::String m_type;
222  bool m_typeHasBeenSet;
223 
224  Aws::String m_value;
225  bool m_valueHasBeenSet;
226 
227  Aws::String m_name;
228  bool m_nameHasBeenSet;
229  };
230 
231 } // namespace Model
232 } // namespace APIGateway
233 } // namespace Aws
Aws::APIGateway::Model::UsagePlanKey::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: UsagePlanKey.h:143
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::UsagePlanKey::SetId
void SetId(const Aws::String &value)
Definition: UsagePlanKey.h:58
Aws::APIGateway::Model::UsagePlanKey::WithType
UsagePlanKey & WithType(const char *value)
Definition: UsagePlanKey.h:132
Aws::APIGateway::Model::UsagePlanKey::SetName
void SetName(Aws::String &&value)
Definition: UsagePlanKey.h:194
Aws::APIGateway::Model::UsagePlanKey::UsagePlanKey
UsagePlanKey(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::UsagePlanKey
Definition: UsagePlanKey.h:37
Aws::APIGateway::Model::UsagePlanKey::SetType
void SetType(const char *value)
Definition: UsagePlanKey.h:114
APIGateway_EXPORTS.h
Aws::APIGateway::Model::UsagePlanKey::WithValue
UsagePlanKey & WithValue(const char *value)
Definition: UsagePlanKey.h:173
Aws::APIGateway::Model::UsagePlanKey::WithValue
UsagePlanKey & WithValue(const Aws::String &value)
Definition: UsagePlanKey.h:163
Aws::APIGateway::Model::UsagePlanKey::UsagePlanKey
UsagePlanKey()
Aws::APIGateway::Model::UsagePlanKey::SetId
void SetId(Aws::String &&value)
Definition: UsagePlanKey.h:63
Aws::APIGateway::Model::UsagePlanKey::GetType
const Aws::String & GetType() const
Definition: UsagePlanKey.h:90
Aws::APIGateway::Model::UsagePlanKey::SetType
void SetType(const Aws::String &value)
Definition: UsagePlanKey.h:102
Aws::APIGateway::Model::UsagePlanKey::GetValue
const Aws::String & GetValue() const
Definition: UsagePlanKey.h:138
Aws::APIGateway::Model::UsagePlanKey::WithType
UsagePlanKey & WithType(Aws::String &&value)
Definition: UsagePlanKey.h:126
Aws::APIGateway::Model::UsagePlanKey::WithType
UsagePlanKey & WithType(const Aws::String &value)
Definition: UsagePlanKey.h:120
Aws::APIGateway::Model::UsagePlanKey::WithId
UsagePlanKey & WithId(const Aws::String &value)
Definition: UsagePlanKey.h:73
Aws::APIGateway::Model::UsagePlanKey::SetType
void SetType(Aws::String &&value)
Definition: UsagePlanKey.h:108
Aws::APIGateway::Model::UsagePlanKey::GetId
const Aws::String & GetId() const
Definition: UsagePlanKey.h:48
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::APIGateway::Model::UsagePlanKey::GetName
const Aws::String & GetName() const
Definition: UsagePlanKey.h:179
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::APIGateway::Model::UsagePlanKey::WithName
UsagePlanKey & WithName(const char *value)
Definition: UsagePlanKey.h:214
Aws::APIGateway::Model::UsagePlanKey::WithId
UsagePlanKey & WithId(const char *value)
Definition: UsagePlanKey.h:83
Aws::APIGateway::Model::UsagePlanKey::SetValue
void SetValue(const char *value)
Definition: UsagePlanKey.h:158
Aws::APIGateway::Model::UsagePlanKey::WithName
UsagePlanKey & WithName(const Aws::String &value)
Definition: UsagePlanKey.h:204
Aws::APIGateway::Model::UsagePlanKey::WithName
UsagePlanKey & WithName(Aws::String &&value)
Definition: UsagePlanKey.h:209
Aws::APIGateway::Model::UsagePlanKey::SetName
void SetName(const char *value)
Definition: UsagePlanKey.h:199
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::UsagePlanKey::SetValue
void SetValue(const Aws::String &value)
Definition: UsagePlanKey.h:148
Aws::APIGateway::Model::UsagePlanKey::IdHasBeenSet
bool IdHasBeenSet() const
Definition: UsagePlanKey.h:53
Aws::APIGateway::Model::UsagePlanKey::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UsagePlanKey.h:184
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::UsagePlanKey::operator=
UsagePlanKey & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::UsagePlanKey::WithValue
UsagePlanKey & WithValue(Aws::String &&value)
Definition: UsagePlanKey.h:168
Aws::APIGateway::Model::UsagePlanKey::SetName
void SetName(const Aws::String &value)
Definition: UsagePlanKey.h:189
Aws::APIGateway::Model::UsagePlanKey::SetValue
void SetValue(Aws::String &&value)
Definition: UsagePlanKey.h:153
Aws::APIGateway::Model::UsagePlanKey::SetId
void SetId(const char *value)
Definition: UsagePlanKey.h:68
Aws::APIGateway::Model::UsagePlanKey::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::APIGateway::Model::UsagePlanKey::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: UsagePlanKey.h:96
Aws::APIGateway::Model::UsagePlanKey::WithId
UsagePlanKey & WithId(Aws::String &&value)
Definition: UsagePlanKey.h:78