AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKeyPairId(const Aws::String& value) { m_keyPairIdHasBeenSet = true; m_keyPairId = value; }
53 inline void SetKeyPairId(Aws::String&& value) { m_keyPairIdHasBeenSet = true; m_keyPairId = std::move(value); }
54 inline void SetKeyPairId(const char* value) { m_keyPairIdHasBeenSet = true; m_keyPairId.assign(value); }
55 inline KeyPairInfo& WithKeyPairId(const Aws::String& value) { SetKeyPairId(value); return *this;}
56 inline KeyPairInfo& WithKeyPairId(Aws::String&& value) { SetKeyPairId(std::move(value)); return *this;}
57 inline KeyPairInfo& WithKeyPairId(const char* value) { SetKeyPairId(value); return *this;}
59
61
64 inline const KeyType& GetKeyType() const{ return m_keyType; }
65 inline bool KeyTypeHasBeenSet() const { return m_keyTypeHasBeenSet; }
66 inline void SetKeyType(const KeyType& value) { m_keyTypeHasBeenSet = true; m_keyType = value; }
67 inline void SetKeyType(KeyType&& value) { m_keyTypeHasBeenSet = true; m_keyType = std::move(value); }
68 inline KeyPairInfo& WithKeyType(const KeyType& value) { SetKeyType(value); return *this;}
69 inline KeyPairInfo& WithKeyType(KeyType&& value) { SetKeyType(std::move(value)); return *this;}
71
73
76 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
77 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
78 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
79 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
80 inline KeyPairInfo& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
81 inline KeyPairInfo& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
82 inline KeyPairInfo& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
83 inline KeyPairInfo& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
85
87
90 inline const Aws::String& GetPublicKey() const{ return m_publicKey; }
91 inline bool PublicKeyHasBeenSet() const { return m_publicKeyHasBeenSet; }
92 inline void SetPublicKey(const Aws::String& value) { m_publicKeyHasBeenSet = true; m_publicKey = value; }
93 inline void SetPublicKey(Aws::String&& value) { m_publicKeyHasBeenSet = true; m_publicKey = std::move(value); }
94 inline void SetPublicKey(const char* value) { m_publicKeyHasBeenSet = true; m_publicKey.assign(value); }
95 inline KeyPairInfo& WithPublicKey(const Aws::String& value) { SetPublicKey(value); return *this;}
96 inline KeyPairInfo& WithPublicKey(Aws::String&& value) { SetPublicKey(std::move(value)); return *this;}
97 inline KeyPairInfo& WithPublicKey(const char* value) { SetPublicKey(value); return *this;}
99
101
110 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
111 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
112 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
113 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
114 inline KeyPairInfo& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
115 inline KeyPairInfo& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
117
119
122 inline const Aws::String& GetKeyName() const{ return m_keyName; }
123 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
124 inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; }
125 inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); }
126 inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); }
127 inline KeyPairInfo& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
128 inline KeyPairInfo& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;}
129 inline KeyPairInfo& WithKeyName(const char* value) { SetKeyName(value); return *this;}
131
133
146 inline const Aws::String& GetKeyFingerprint() const{ return m_keyFingerprint; }
147 inline bool KeyFingerprintHasBeenSet() const { return m_keyFingerprintHasBeenSet; }
148 inline void SetKeyFingerprint(const Aws::String& value) { m_keyFingerprintHasBeenSet = true; m_keyFingerprint = value; }
149 inline void SetKeyFingerprint(Aws::String&& value) { m_keyFingerprintHasBeenSet = true; m_keyFingerprint = std::move(value); }
150 inline void SetKeyFingerprint(const char* value) { m_keyFingerprintHasBeenSet = true; m_keyFingerprint.assign(value); }
151 inline KeyPairInfo& WithKeyFingerprint(const Aws::String& value) { SetKeyFingerprint(value); return *this;}
152 inline KeyPairInfo& WithKeyFingerprint(Aws::String&& value) { SetKeyFingerprint(std::move(value)); return *this;}
153 inline KeyPairInfo& WithKeyFingerprint(const char* value) { SetKeyFingerprint(value); return *this;}
155 private:
156
157 Aws::String m_keyPairId;
158 bool m_keyPairIdHasBeenSet = false;
159
160 KeyType m_keyType;
161 bool m_keyTypeHasBeenSet = false;
162
163 Aws::Vector<Tag> m_tags;
164 bool m_tagsHasBeenSet = false;
165
166 Aws::String m_publicKey;
167 bool m_publicKeyHasBeenSet = false;
168
169 Aws::Utils::DateTime m_createTime;
170 bool m_createTimeHasBeenSet = false;
171
172 Aws::String m_keyName;
173 bool m_keyNameHasBeenSet = false;
174
175 Aws::String m_keyFingerprint;
176 bool m_keyFingerprintHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace EC2
181} // namespace Aws
void SetKeyName(const Aws::String &value)
AWS_EC2_API KeyPairInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
KeyPairInfo & AddTags(const Tag &value)
Definition KeyPairInfo.h:82
KeyPairInfo & WithCreateTime(const Aws::Utils::DateTime &value)
bool KeyFingerprintHasBeenSet() const
void SetKeyName(Aws::String &&value)
void SetKeyType(const KeyType &value)
Definition KeyPairInfo.h:66
const Aws::Utils::DateTime & GetCreateTime() const
void SetCreateTime(Aws::Utils::DateTime &&value)
KeyPairInfo & WithKeyPairId(const Aws::String &value)
Definition KeyPairInfo.h:55
const Aws::String & GetKeyFingerprint() const
AWS_EC2_API KeyPairInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetKeyPairId() const
Definition KeyPairInfo.h:50
KeyPairInfo & WithKeyPairId(Aws::String &&value)
Definition KeyPairInfo.h:56
const Aws::String & GetKeyName() const
KeyPairInfo & WithKeyType(KeyType &&value)
Definition KeyPairInfo.h:69
void SetKeyType(KeyType &&value)
Definition KeyPairInfo.h:67
KeyPairInfo & WithKeyName(Aws::String &&value)
void SetKeyPairId(Aws::String &&value)
Definition KeyPairInfo.h:53
void SetPublicKey(Aws::String &&value)
Definition KeyPairInfo.h:93
KeyPairInfo & WithKeyFingerprint(const char *value)
void SetCreateTime(const Aws::Utils::DateTime &value)
KeyPairInfo & AddTags(Tag &&value)
Definition KeyPairInfo.h:83
KeyPairInfo & WithKeyFingerprint(Aws::String &&value)
void SetPublicKey(const Aws::String &value)
Definition KeyPairInfo.h:92
KeyPairInfo & WithPublicKey(const char *value)
Definition KeyPairInfo.h:97
const KeyType & GetKeyType() const
Definition KeyPairInfo.h:64
KeyPairInfo & WithTags(Aws::Vector< Tag > &&value)
Definition KeyPairInfo.h:81
void SetKeyFingerprint(const char *value)
KeyPairInfo & WithKeyName(const Aws::String &value)
KeyPairInfo & WithKeyFingerprint(const Aws::String &value)
void SetKeyFingerprint(Aws::String &&value)
void SetKeyPairId(const Aws::String &value)
Definition KeyPairInfo.h:52
void SetPublicKey(const char *value)
Definition KeyPairInfo.h:94
void SetTags(const Aws::Vector< Tag > &value)
Definition KeyPairInfo.h:78
KeyPairInfo & WithPublicKey(const Aws::String &value)
Definition KeyPairInfo.h:95
KeyPairInfo & WithKeyName(const char *value)
KeyPairInfo & WithCreateTime(Aws::Utils::DateTime &&value)
KeyPairInfo & WithKeyType(const KeyType &value)
Definition KeyPairInfo.h:68
const Aws::String & GetPublicKey() const
Definition KeyPairInfo.h:90
KeyPairInfo & WithTags(const Aws::Vector< Tag > &value)
Definition KeyPairInfo.h:80
void SetKeyFingerprint(const Aws::String &value)
KeyPairInfo & WithPublicKey(Aws::String &&value)
Definition KeyPairInfo.h:96
KeyPairInfo & WithKeyPairId(const char *value)
Definition KeyPairInfo.h:57
void SetTags(Aws::Vector< Tag > &&value)
Definition KeyPairInfo.h:79
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetKeyName(const char *value)
const Aws::Vector< Tag > & GetTags() const
Definition KeyPairInfo.h:76
void SetKeyPairId(const char *value)
Definition KeyPairInfo.h:54
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