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>
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>
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>>
78 template<
typename TagsT = Tag>
79 KeyPairInfo&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
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>
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>
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>
140 template<
typename KeyFingerpr
intT = Aws::String>
141 void SetKeyFingerprint(KeyFingerprintT&& value) { m_keyFingerprintHasBeenSet =
true; m_keyFingerprint = std::forward<KeyFingerprintT>(value); }
142 template<
typename KeyFingerpr
intT = Aws::String>
148 bool m_keyPairIdHasBeenSet =
false;
151 bool m_keyTypeHasBeenSet =
false;
154 bool m_tagsHasBeenSet =
false;
157 bool m_publicKeyHasBeenSet =
false;
160 bool m_createTimeHasBeenSet =
false;
163 bool m_keyNameHasBeenSet =
false;
166 bool m_keyFingerprintHasBeenSet =
false;
KeyPairInfo & WithPublicKey(PublicKeyT &&value)
AWS_EC2_API KeyPairInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
bool KeyFingerprintHasBeenSet() const
void SetTags(TagsT &&value)
const Aws::Utils::DateTime & GetCreateTime() const
bool CreateTimeHasBeenSet() const
const Aws::String & GetKeyFingerprint() const
AWS_EC2_API KeyPairInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
KeyPairInfo & WithKeyPairId(KeyPairIdT &&value)
const Aws::String & GetKeyPairId() const
const Aws::String & GetKeyName() const
KeyPairInfo & WithKeyFingerprint(KeyFingerprintT &&value)
void SetKeyName(KeyNameT &&value)
void SetCreateTime(CreateTimeT &&value)
KeyPairInfo & AddTags(TagsT &&value)
bool TagsHasBeenSet() const
AWS_EC2_API KeyPairInfo()=default
bool PublicKeyHasBeenSet() const
KeyPairInfo & WithCreateTime(CreateTimeT &&value)
void SetKeyPairId(KeyPairIdT &&value)
KeyPairInfo & WithKeyType(KeyType value)
bool KeyPairIdHasBeenSet() const
KeyPairInfo & WithKeyName(KeyNameT &&value)
const Aws::String & GetPublicKey() const
void SetKeyFingerprint(KeyFingerprintT &&value)
bool KeyNameHasBeenSet() const
void SetPublicKey(PublicKeyT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetKeyType(KeyType value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
KeyPairInfo & WithTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
KeyType GetKeyType() const
bool KeyTypeHasBeenSet() const
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