AWS SDK for C++  1.9.108
AWS SDK for C++
KeyPair.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace Lightsail
27 {
28 namespace Model
29 {
30 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
53  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 
58  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 
63  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 
68  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 
73  inline KeyPair& WithName(const Aws::String& value) { SetName(value); return *this;}
74 
78  inline KeyPair& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 
83  inline KeyPair& WithName(const char* value) { SetName(value); return *this;}
84 
85 
90  inline const Aws::String& GetArn() const{ return m_arn; }
91 
96  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
97 
102  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
103 
108  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
109 
114  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
115 
120  inline KeyPair& WithArn(const Aws::String& value) { SetArn(value); return *this;}
121 
126  inline KeyPair& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
127 
132  inline KeyPair& WithArn(const char* value) { SetArn(value); return *this;}
133 
134 
140  inline const Aws::String& GetSupportCode() const{ return m_supportCode; }
141 
147  inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
148 
154  inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; }
155 
161  inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); }
162 
168  inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); }
169 
175  inline KeyPair& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;}
176 
182  inline KeyPair& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;}
183 
189  inline KeyPair& WithSupportCode(const char* value) { SetSupportCode(value); return *this;}
190 
191 
196  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
197 
202  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
203 
208  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
209 
214  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
215 
220  inline KeyPair& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
221 
226  inline KeyPair& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
227 
228 
232  inline const ResourceLocation& GetLocation() const{ return m_location; }
233 
237  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
238 
242  inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
243 
247  inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
248 
252  inline KeyPair& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
253 
257  inline KeyPair& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
258 
259 
263  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
264 
268  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
269 
273  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
274 
278  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
279 
283  inline KeyPair& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
284 
288  inline KeyPair& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
289 
290 
297  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
298 
305  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
306 
313  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
314 
321  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
322 
329  inline KeyPair& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
330 
337  inline KeyPair& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
338 
345  inline KeyPair& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
346 
353  inline KeyPair& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
354 
355 
359  inline const Aws::String& GetFingerprint() const{ return m_fingerprint; }
360 
364  inline bool FingerprintHasBeenSet() const { return m_fingerprintHasBeenSet; }
365 
369  inline void SetFingerprint(const Aws::String& value) { m_fingerprintHasBeenSet = true; m_fingerprint = value; }
370 
374  inline void SetFingerprint(Aws::String&& value) { m_fingerprintHasBeenSet = true; m_fingerprint = std::move(value); }
375 
379  inline void SetFingerprint(const char* value) { m_fingerprintHasBeenSet = true; m_fingerprint.assign(value); }
380 
384  inline KeyPair& WithFingerprint(const Aws::String& value) { SetFingerprint(value); return *this;}
385 
389  inline KeyPair& WithFingerprint(Aws::String&& value) { SetFingerprint(std::move(value)); return *this;}
390 
394  inline KeyPair& WithFingerprint(const char* value) { SetFingerprint(value); return *this;}
395 
396  private:
397 
398  Aws::String m_name;
399  bool m_nameHasBeenSet;
400 
401  Aws::String m_arn;
402  bool m_arnHasBeenSet;
403 
404  Aws::String m_supportCode;
405  bool m_supportCodeHasBeenSet;
406 
407  Aws::Utils::DateTime m_createdAt;
408  bool m_createdAtHasBeenSet;
409 
410  ResourceLocation m_location;
411  bool m_locationHasBeenSet;
412 
413  ResourceType m_resourceType;
414  bool m_resourceTypeHasBeenSet;
415 
416  Aws::Vector<Tag> m_tags;
417  bool m_tagsHasBeenSet;
418 
419  Aws::String m_fingerprint;
420  bool m_fingerprintHasBeenSet;
421  };
422 
423 } // namespace Model
424 } // namespace Lightsail
425 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::KeyPair::SetLocation
void SetLocation(const ResourceLocation &value)
Definition: KeyPair.h:242
Aws::Lightsail::Model::KeyPair::WithArn
KeyPair & WithArn(Aws::String &&value)
Definition: KeyPair.h:126
ResourceType.h
Aws::Lightsail::Model::KeyPair::SetName
void SetName(Aws::String &&value)
Definition: KeyPair.h:63
Aws::Lightsail::Model::KeyPair::WithArn
KeyPair & WithArn(const char *value)
Definition: KeyPair.h:132
Aws::Lightsail::Model::KeyPair::WithTags
KeyPair & WithTags(const Aws::Vector< Tag > &value)
Definition: KeyPair.h:329
Aws::Lightsail::Model::KeyPair::NameHasBeenSet
bool NameHasBeenSet() const
Definition: KeyPair.h:53
Aws::Lightsail::Model::KeyPair::SetFingerprint
void SetFingerprint(const Aws::String &value)
Definition: KeyPair.h:369
Aws::Lightsail::Model::KeyPair::GetSupportCode
const Aws::String & GetSupportCode() const
Definition: KeyPair.h:140
Aws::Lightsail::Model::KeyPair::FingerprintHasBeenSet
bool FingerprintHasBeenSet() const
Definition: KeyPair.h:364
Aws::Lightsail::Model::KeyPair::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: KeyPair.h:96
Aws::Lightsail::Model::KeyPair::WithSupportCode
KeyPair & WithSupportCode(const char *value)
Definition: KeyPair.h:189
Aws::Lightsail::Model::KeyPair::WithLocation
KeyPair & WithLocation(const ResourceLocation &value)
Definition: KeyPair.h:252
DateTime.h
Aws::Lightsail::Model::KeyPair::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: KeyPair.h:305
Aws::Lightsail::Model::KeyPair::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::KeyPair
Definition: KeyPair.h:37
Aws::Lightsail::Model::KeyPair::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: KeyPair.h:268
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::KeyPair::WithLocation
KeyPair & WithLocation(ResourceLocation &&value)
Definition: KeyPair.h:257
Aws::Lightsail::Model::KeyPair::SetSupportCode
void SetSupportCode(const char *value)
Definition: KeyPair.h:168
Aws::Lightsail::Model::KeyPair::SetSupportCode
void SetSupportCode(const Aws::String &value)
Definition: KeyPair.h:154
Aws::Lightsail::Model::KeyPair::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: KeyPair.h:278
Aws::Lightsail::Model::KeyPair::WithFingerprint
KeyPair & WithFingerprint(const char *value)
Definition: KeyPair.h:394
Aws::Lightsail::Model::KeyPair::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: KeyPair.h:313
AWSVector.h
Aws::Lightsail::Model::KeyPair::SupportCodeHasBeenSet
bool SupportCodeHasBeenSet() const
Definition: KeyPair.h:147
Aws::Lightsail::Model::KeyPair::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: KeyPair.h:273
Aws::Lightsail::Model::KeyPair::WithResourceType
KeyPair & WithResourceType(const ResourceType &value)
Definition: KeyPair.h:283
Aws::Lightsail::Model::KeyPair::WithName
KeyPair & WithName(Aws::String &&value)
Definition: KeyPair.h:78
Aws::Lightsail::Model::KeyPair::KeyPair
KeyPair()
Aws::Lightsail::Model::KeyPair::AddTags
KeyPair & AddTags(const Tag &value)
Definition: KeyPair.h:345
Aws::Lightsail::Model::KeyPair::GetArn
const Aws::String & GetArn() const
Definition: KeyPair.h:90
Aws::Lightsail::Model::KeyPair::WithArn
KeyPair & WithArn(const Aws::String &value)
Definition: KeyPair.h:120
Aws::Lightsail::Model::KeyPair::SetName
void SetName(const Aws::String &value)
Definition: KeyPair.h:58
Aws::Lightsail::Model::KeyPair::WithSupportCode
KeyPair & WithSupportCode(const Aws::String &value)
Definition: KeyPair.h:175
Aws::Lightsail::Model::KeyPair::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: KeyPair.h:321
Aws::Lightsail::Model::KeyPair::WithFingerprint
KeyPair & WithFingerprint(const Aws::String &value)
Definition: KeyPair.h:384
Tag.h
Aws::Lightsail::Model::KeyPair::GetResourceType
const ResourceType & GetResourceType() const
Definition: KeyPair.h:263
Aws::Lightsail::Model::ResourceLocation
Definition: ResourceLocation.h:33
Aws::Lightsail::Model::KeyPair::GetLocation
const ResourceLocation & GetLocation() const
Definition: KeyPair.h:232
Aws::Lightsail::Model::KeyPair::SetFingerprint
void SetFingerprint(const char *value)
Definition: KeyPair.h:379
Aws::Lightsail::Model::KeyPair::KeyPair
KeyPair(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::KeyPair::SetFingerprint
void SetFingerprint(Aws::String &&value)
Definition: KeyPair.h:374
Aws::Lightsail::Model::KeyPair::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: KeyPair.h:196
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Lightsail::Model::KeyPair::GetName
const Aws::String & GetName() const
Definition: KeyPair.h:48
Aws::Lightsail::Model::Tag
Definition: Tag.h:35
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::KeyPair::WithCreatedAt
KeyPair & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: KeyPair.h:220
Aws::Lightsail::Model::KeyPair::WithResourceType
KeyPair & WithResourceType(ResourceType &&value)
Definition: KeyPair.h:288
Lightsail_EXPORTS.h
Aws::Lightsail::Model::KeyPair::WithTags
KeyPair & WithTags(Aws::Vector< Tag > &&value)
Definition: KeyPair.h:337
Aws::Lightsail::Model::KeyPair::SetLocation
void SetLocation(ResourceLocation &&value)
Definition: KeyPair.h:247
Aws::Lightsail::Model::KeyPair::SetArn
void SetArn(const Aws::String &value)
Definition: KeyPair.h:102
Aws::Lightsail::Model::KeyPair::WithCreatedAt
KeyPair & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: KeyPair.h:226
Aws::Lightsail::Model::KeyPair::operator=
KeyPair & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::KeyPair::WithName
KeyPair & WithName(const Aws::String &value)
Definition: KeyPair.h:73
Aws::Lightsail::Model::KeyPair::WithFingerprint
KeyPair & WithFingerprint(Aws::String &&value)
Definition: KeyPair.h:389
Aws::Lightsail::Model::KeyPair::SetArn
void SetArn(Aws::String &&value)
Definition: KeyPair.h:108
Aws::Lightsail::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
ResourceLocation.h
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::KeyPair::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: KeyPair.h:202
Aws::Lightsail::Model::KeyPair::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: KeyPair.h:208
Aws::Lightsail::Model::KeyPair::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: KeyPair.h:297
Aws::Lightsail::Model::KeyPair::AddTags
KeyPair & AddTags(Tag &&value)
Definition: KeyPair.h:353
Aws::Lightsail::Model::KeyPair::WithName
KeyPair & WithName(const char *value)
Definition: KeyPair.h:83
Aws::Lightsail::Model::KeyPair::SetSupportCode
void SetSupportCode(Aws::String &&value)
Definition: KeyPair.h:161
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::KeyPair::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: KeyPair.h:237
Aws::Lightsail::Model::KeyPair::GetFingerprint
const Aws::String & GetFingerprint() const
Definition: KeyPair.h:359
Aws::Lightsail::Model::KeyPair::WithSupportCode
KeyPair & WithSupportCode(Aws::String &&value)
Definition: KeyPair.h:182
Aws::Lightsail::Model::KeyPair::SetArn
void SetArn(const char *value)
Definition: KeyPair.h:114
Aws::Lightsail::Model::KeyPair::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: KeyPair.h:214
Aws::Lightsail::Model::KeyPair::SetName
void SetName(const char *value)
Definition: KeyPair.h:68