AWS SDK for C++  1.9.159
AWS SDK for C++
KeyPairInfo.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <aws/ec2/model/KeyType.h>
12 #include <aws/ec2/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
28 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetKeyPairId() const{ return m_keyPairId; }
49 
53  inline bool KeyPairIdHasBeenSet() const { return m_keyPairIdHasBeenSet; }
54 
58  inline void SetKeyPairId(const Aws::String& value) { m_keyPairIdHasBeenSet = true; m_keyPairId = value; }
59 
63  inline void SetKeyPairId(Aws::String&& value) { m_keyPairIdHasBeenSet = true; m_keyPairId = std::move(value); }
64 
68  inline void SetKeyPairId(const char* value) { m_keyPairIdHasBeenSet = true; m_keyPairId.assign(value); }
69 
73  inline KeyPairInfo& WithKeyPairId(const Aws::String& value) { SetKeyPairId(value); return *this;}
74 
78  inline KeyPairInfo& WithKeyPairId(Aws::String&& value) { SetKeyPairId(std::move(value)); return *this;}
79 
83  inline KeyPairInfo& WithKeyPairId(const char* value) { SetKeyPairId(value); return *this;}
84 
85 
99  inline const Aws::String& GetKeyFingerprint() const{ return m_keyFingerprint; }
100 
114  inline bool KeyFingerprintHasBeenSet() const { return m_keyFingerprintHasBeenSet; }
115 
129  inline void SetKeyFingerprint(const Aws::String& value) { m_keyFingerprintHasBeenSet = true; m_keyFingerprint = value; }
130 
144  inline void SetKeyFingerprint(Aws::String&& value) { m_keyFingerprintHasBeenSet = true; m_keyFingerprint = std::move(value); }
145 
159  inline void SetKeyFingerprint(const char* value) { m_keyFingerprintHasBeenSet = true; m_keyFingerprint.assign(value); }
160 
174  inline KeyPairInfo& WithKeyFingerprint(const Aws::String& value) { SetKeyFingerprint(value); return *this;}
175 
189  inline KeyPairInfo& WithKeyFingerprint(Aws::String&& value) { SetKeyFingerprint(std::move(value)); return *this;}
190 
204  inline KeyPairInfo& WithKeyFingerprint(const char* value) { SetKeyFingerprint(value); return *this;}
205 
206 
210  inline const Aws::String& GetKeyName() const{ return m_keyName; }
211 
215  inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
216 
220  inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; }
221 
225  inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); }
226 
230  inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); }
231 
235  inline KeyPairInfo& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
236 
240  inline KeyPairInfo& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;}
241 
245  inline KeyPairInfo& WithKeyName(const char* value) { SetKeyName(value); return *this;}
246 
247 
251  inline const KeyType& GetKeyType() const{ return m_keyType; }
252 
256  inline bool KeyTypeHasBeenSet() const { return m_keyTypeHasBeenSet; }
257 
261  inline void SetKeyType(const KeyType& value) { m_keyTypeHasBeenSet = true; m_keyType = value; }
262 
266  inline void SetKeyType(KeyType&& value) { m_keyTypeHasBeenSet = true; m_keyType = std::move(value); }
267 
271  inline KeyPairInfo& WithKeyType(const KeyType& value) { SetKeyType(value); return *this;}
272 
276  inline KeyPairInfo& WithKeyType(KeyType&& value) { SetKeyType(std::move(value)); return *this;}
277 
278 
282  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
283 
287  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
288 
292  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
293 
297  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
298 
302  inline KeyPairInfo& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
303 
307  inline KeyPairInfo& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
308 
312  inline KeyPairInfo& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
313 
317  inline KeyPairInfo& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
318 
319  private:
320 
321  Aws::String m_keyPairId;
322  bool m_keyPairIdHasBeenSet;
323 
324  Aws::String m_keyFingerprint;
325  bool m_keyFingerprintHasBeenSet;
326 
327  Aws::String m_keyName;
328  bool m_keyNameHasBeenSet;
329 
330  KeyType m_keyType;
331  bool m_keyTypeHasBeenSet;
332 
333  Aws::Vector<Tag> m_tags;
334  bool m_tagsHasBeenSet;
335  };
336 
337 } // namespace Model
338 } // namespace EC2
339 } // namespace Aws
Aws::EC2::Model::KeyPairInfo::SetKeyPairId
void SetKeyPairId(const char *value)
Definition: KeyPairInfo.h:68
KeyType.h
Aws::EC2::Model::KeyPairInfo::SetKeyPairId
void SetKeyPairId(const Aws::String &value)
Definition: KeyPairInfo.h:58
Aws::EC2::Model::KeyPairInfo::SetKeyName
void SetKeyName(const char *value)
Definition: KeyPairInfo.h:230
Aws::EC2::Model::KeyPairInfo::GetKeyFingerprint
const Aws::String & GetKeyFingerprint() const
Definition: KeyPairInfo.h:99
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::KeyPairInfo::WithKeyFingerprint
KeyPairInfo & WithKeyFingerprint(const char *value)
Definition: KeyPairInfo.h:204
Aws::EC2::Model::KeyPairInfo::GetKeyPairId
const Aws::String & GetKeyPairId() const
Definition: KeyPairInfo.h:48
Aws::EC2::Model::KeyPairInfo::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::KeyPairInfo::AddTags
KeyPairInfo & AddTags(const Tag &value)
Definition: KeyPairInfo.h:312
Aws::EC2::Model::KeyPairInfo::SetKeyFingerprint
void SetKeyFingerprint(Aws::String &&value)
Definition: KeyPairInfo.h:144
Aws::EC2::Model::KeyPairInfo
Definition: KeyPairInfo.h:35
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::KeyType
KeyType
Definition: KeyType.h:17
Aws::EC2::Model::KeyPairInfo::KeyFingerprintHasBeenSet
bool KeyFingerprintHasBeenSet() const
Definition: KeyPairInfo.h:114
Aws::EC2::Model::KeyPairInfo::operator=
KeyPairInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
AWSVector.h
Tag.h
Aws::EC2::Model::KeyPairInfo::SetKeyFingerprint
void SetKeyFingerprint(const Aws::String &value)
Definition: KeyPairInfo.h:129
Aws::EC2::Model::KeyPairInfo::WithKeyPairId
KeyPairInfo & WithKeyPairId(Aws::String &&value)
Definition: KeyPairInfo.h:78
Aws::EC2::Model::KeyPairInfo::WithKeyFingerprint
KeyPairInfo & WithKeyFingerprint(Aws::String &&value)
Definition: KeyPairInfo.h:189
Aws::EC2::Model::KeyPairInfo::WithKeyName
KeyPairInfo & WithKeyName(const char *value)
Definition: KeyPairInfo.h:245
Aws::EC2::Model::KeyPairInfo::WithKeyPairId
KeyPairInfo & WithKeyPairId(const Aws::String &value)
Definition: KeyPairInfo.h:73
Aws::EC2::Model::KeyPairInfo::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::KeyPairInfo::SetKeyFingerprint
void SetKeyFingerprint(const char *value)
Definition: KeyPairInfo.h:159
Aws::EC2::Model::KeyPairInfo::GetKeyName
const Aws::String & GetKeyName() const
Definition: KeyPairInfo.h:210
Aws::EC2::Model::KeyPairInfo::WithTags
KeyPairInfo & WithTags(const Aws::Vector< Tag > &value)
Definition: KeyPairInfo.h:302
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::KeyPairInfo::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: KeyPairInfo.h:287
Aws::EC2::Model::KeyPairInfo::WithKeyType
KeyPairInfo & WithKeyType(const KeyType &value)
Definition: KeyPairInfo.h:271
Aws::EC2::Model::KeyPairInfo::SetKeyType
void SetKeyType(KeyType &&value)
Definition: KeyPairInfo.h:266
AWSString.h
Aws::EC2::Model::KeyPairInfo::WithKeyFingerprint
KeyPairInfo & WithKeyFingerprint(const Aws::String &value)
Definition: KeyPairInfo.h:174
Aws::EC2::Model::KeyPairInfo::KeyPairInfo
KeyPairInfo()
Aws::EC2::Model::KeyPairInfo::KeyTypeHasBeenSet
bool KeyTypeHasBeenSet() const
Definition: KeyPairInfo.h:256
Aws::EC2::Model::KeyPairInfo::SetKeyName
void SetKeyName(Aws::String &&value)
Definition: KeyPairInfo.h:225
Aws::EC2::Model::KeyPairInfo::SetKeyName
void SetKeyName(const Aws::String &value)
Definition: KeyPairInfo.h:220
Aws::EC2::Model::KeyPairInfo::KeyNameHasBeenSet
bool KeyNameHasBeenSet() const
Definition: KeyPairInfo.h:215
Aws::EC2::Model::KeyPairInfo::WithKeyName
KeyPairInfo & WithKeyName(Aws::String &&value)
Definition: KeyPairInfo.h:240
Aws::EC2::Model::KeyPairInfo::SetKeyType
void SetKeyType(const KeyType &value)
Definition: KeyPairInfo.h:261
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::KeyPairInfo::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: KeyPairInfo.h:292
Aws::EC2::Model::KeyPairInfo::WithTags
KeyPairInfo & WithTags(Aws::Vector< Tag > &&value)
Definition: KeyPairInfo.h:307
Aws::EC2::Model::KeyPairInfo::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: KeyPairInfo.h:297
Aws::EC2::Model::KeyPairInfo::AddTags
KeyPairInfo & AddTags(Tag &&value)
Definition: KeyPairInfo.h:317
Aws::EC2::Model::KeyPairInfo::GetKeyType
const KeyType & GetKeyType() const
Definition: KeyPairInfo.h:251
Aws::EC2::Model::KeyPairInfo::KeyPairIdHasBeenSet
bool KeyPairIdHasBeenSet() const
Definition: KeyPairInfo.h:53
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::KeyPairInfo::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: KeyPairInfo.h:282
Aws::EC2::Model::KeyPairInfo::WithKeyName
KeyPairInfo & WithKeyName(const Aws::String &value)
Definition: KeyPairInfo.h:235
Aws::EC2::Model::KeyPairInfo::WithKeyPairId
KeyPairInfo & WithKeyPairId(const char *value)
Definition: KeyPairInfo.h:83
EC2_EXPORTS.h
Aws::EC2::Model::KeyPairInfo::KeyPairInfo
KeyPairInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::KeyPairInfo::WithKeyType
KeyPairInfo & WithKeyType(KeyType &&value)
Definition: KeyPairInfo.h:276
Aws::EC2::Model::KeyPairInfo::SetKeyPairId
void SetKeyPairId(Aws::String &&value)
Definition: KeyPairInfo.h:63