AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
KeyPairInfo.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/KeyType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/ec2/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_EC2_API KeyPairInfo() = default;
39 AWS_EC2_API KeyPairInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_EC2_API KeyPairInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetKeyPairId() const { return m_keyPairId; }
51 inline bool KeyPairIdHasBeenSet() const { return m_keyPairIdHasBeenSet; }
52 template<typename KeyPairIdT = Aws::String>
53 void SetKeyPairId(KeyPairIdT&& value) { m_keyPairIdHasBeenSet = true; m_keyPairId = std::forward<KeyPairIdT>(value); }
54 template<typename KeyPairIdT = Aws::String>
55 KeyPairInfo& WithKeyPairId(KeyPairIdT&& value) { SetKeyPairId(std::forward<KeyPairIdT>(value)); return *this;}
57
59
62 inline KeyType GetKeyType() const { return m_keyType; }
63 inline bool KeyTypeHasBeenSet() const { return m_keyTypeHasBeenSet; }
64 inline void SetKeyType(KeyType value) { m_keyTypeHasBeenSet = true; m_keyType = value; }
65 inline KeyPairInfo& WithKeyType(KeyType value) { SetKeyType(value); return *this;}
67
69
72 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
73 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
74 template<typename TagsT = Aws::Vector<Tag>>
75 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
76 template<typename TagsT = Aws::Vector<Tag>>
77 KeyPairInfo& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
78 template<typename TagsT = Tag>
79 KeyPairInfo& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
81
83
86 inline const Aws::String& GetPublicKey() const { return m_publicKey; }
87 inline bool PublicKeyHasBeenSet() const { return m_publicKeyHasBeenSet; }
88 template<typename PublicKeyT = Aws::String>
89 void SetPublicKey(PublicKeyT&& value) { m_publicKeyHasBeenSet = true; m_publicKey = std::forward<PublicKeyT>(value); }
90 template<typename PublicKeyT = Aws::String>
91 KeyPairInfo& WithPublicKey(PublicKeyT&& value) { SetPublicKey(std::forward<PublicKeyT>(value)); return *this;}
93
95
104 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
105 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
106 template<typename CreateTimeT = Aws::Utils::DateTime>
107 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
108 template<typename CreateTimeT = Aws::Utils::DateTime>
109 KeyPairInfo& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
111
113
116 inline const Aws::String& GetKeyName() const { return m_keyName; }
117 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
118 template<typename KeyNameT = Aws::String>
119 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet = true; m_keyName = std::forward<KeyNameT>(value); }
120 template<typename KeyNameT = Aws::String>
121 KeyPairInfo& WithKeyName(KeyNameT&& value) { SetKeyName(std::forward<KeyNameT>(value)); return *this;}
123
125
138 inline const Aws::String& GetKeyFingerprint() const { return m_keyFingerprint; }
139 inline bool KeyFingerprintHasBeenSet() const { return m_keyFingerprintHasBeenSet; }
140 template<typename KeyFingerprintT = Aws::String>
141 void SetKeyFingerprint(KeyFingerprintT&& value) { m_keyFingerprintHasBeenSet = true; m_keyFingerprint = std::forward<KeyFingerprintT>(value); }
142 template<typename KeyFingerprintT = Aws::String>
143 KeyPairInfo& WithKeyFingerprint(KeyFingerprintT&& value) { SetKeyFingerprint(std::forward<KeyFingerprintT>(value)); return *this;}
145 private:
146
147 Aws::String m_keyPairId;
148 bool m_keyPairIdHasBeenSet = false;
149
150 KeyType m_keyType{KeyType::NOT_SET};
151 bool m_keyTypeHasBeenSet = false;
152
153 Aws::Vector<Tag> m_tags;
154 bool m_tagsHasBeenSet = false;
155
156 Aws::String m_publicKey;
157 bool m_publicKeyHasBeenSet = false;
158
159 Aws::Utils::DateTime m_createTime{};
160 bool m_createTimeHasBeenSet = false;
161
162 Aws::String m_keyName;
163 bool m_keyNameHasBeenSet = false;
164
165 Aws::String m_keyFingerprint;
166 bool m_keyFingerprintHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace EC2
171} // namespace Aws
KeyPairInfo & WithPublicKey(PublicKeyT &&value)
Definition KeyPairInfo.h:91
AWS_EC2_API KeyPairInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
bool KeyFingerprintHasBeenSet() const
void SetTags(TagsT &&value)
Definition KeyPairInfo.h:75
const Aws::Utils::DateTime & GetCreateTime() const
const Aws::String & GetKeyFingerprint() const
AWS_EC2_API KeyPairInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
KeyPairInfo & WithKeyPairId(KeyPairIdT &&value)
Definition KeyPairInfo.h:55
const Aws::String & GetKeyPairId() const
Definition KeyPairInfo.h:50
const Aws::String & GetKeyName() const
KeyPairInfo & WithKeyFingerprint(KeyFingerprintT &&value)
void SetKeyName(KeyNameT &&value)
void SetCreateTime(CreateTimeT &&value)
KeyPairInfo & AddTags(TagsT &&value)
Definition KeyPairInfo.h:79
AWS_EC2_API KeyPairInfo()=default
KeyPairInfo & WithCreateTime(CreateTimeT &&value)
void SetKeyPairId(KeyPairIdT &&value)
Definition KeyPairInfo.h:53
KeyPairInfo & WithKeyType(KeyType value)
Definition KeyPairInfo.h:65
KeyPairInfo & WithKeyName(KeyNameT &&value)
const Aws::String & GetPublicKey() const
Definition KeyPairInfo.h:86
void SetKeyFingerprint(KeyFingerprintT &&value)
void SetPublicKey(PublicKeyT &&value)
Definition KeyPairInfo.h:89
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetKeyType(KeyType value)
Definition KeyPairInfo.h:64
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
KeyPairInfo & WithTags(TagsT &&value)
Definition KeyPairInfo.h:77
const Aws::Vector< Tag > & GetTags() const
Definition KeyPairInfo.h:72
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream