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>
54 inline void SetKeyPairId(
const char* value) { m_keyPairIdHasBeenSet =
true; m_keyPairId.assign(value); }
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); }
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; }
94 inline void SetPublicKey(
const char* value) { m_publicKeyHasBeenSet =
true; m_publicKey.assign(value); }
126 inline void SetKeyName(
const char* value) { m_keyNameHasBeenSet =
true; m_keyName.assign(value); }
150 inline void SetKeyFingerprint(
const char* value) { m_keyFingerprintHasBeenSet =
true; m_keyFingerprint.assign(value); }
158 bool m_keyPairIdHasBeenSet =
false;
161 bool m_keyTypeHasBeenSet =
false;
164 bool m_tagsHasBeenSet =
false;
167 bool m_publicKeyHasBeenSet =
false;
170 bool m_createTimeHasBeenSet =
false;
173 bool m_keyNameHasBeenSet =
false;
176 bool m_keyFingerprintHasBeenSet =
false;
AWS_EC2_API KeyPairInfo()
void SetKeyName(const Aws::String &value)
AWS_EC2_API KeyPairInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
KeyPairInfo & AddTags(const Tag &value)
KeyPairInfo & WithCreateTime(const Aws::Utils::DateTime &value)
bool KeyFingerprintHasBeenSet() const
void SetKeyName(Aws::String &&value)
void SetKeyType(const KeyType &value)
const Aws::Utils::DateTime & GetCreateTime() const
bool CreateTimeHasBeenSet() const
void SetCreateTime(Aws::Utils::DateTime &&value)
KeyPairInfo & WithKeyPairId(const Aws::String &value)
const Aws::String & GetKeyFingerprint() const
AWS_EC2_API KeyPairInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetKeyPairId() const
KeyPairInfo & WithKeyPairId(Aws::String &&value)
const Aws::String & GetKeyName() const
KeyPairInfo & WithKeyType(KeyType &&value)
void SetKeyType(KeyType &&value)
KeyPairInfo & WithKeyName(Aws::String &&value)
void SetKeyPairId(Aws::String &&value)
void SetPublicKey(Aws::String &&value)
KeyPairInfo & WithKeyFingerprint(const char *value)
void SetCreateTime(const Aws::Utils::DateTime &value)
KeyPairInfo & AddTags(Tag &&value)
KeyPairInfo & WithKeyFingerprint(Aws::String &&value)
void SetPublicKey(const Aws::String &value)
KeyPairInfo & WithPublicKey(const char *value)
const KeyType & GetKeyType() const
KeyPairInfo & WithTags(Aws::Vector< Tag > &&value)
bool TagsHasBeenSet() const
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)
void SetPublicKey(const char *value)
bool PublicKeyHasBeenSet() const
void SetTags(const Aws::Vector< Tag > &value)
KeyPairInfo & WithPublicKey(const Aws::String &value)
KeyPairInfo & WithKeyName(const char *value)
KeyPairInfo & WithCreateTime(Aws::Utils::DateTime &&value)
KeyPairInfo & WithKeyType(const KeyType &value)
bool KeyPairIdHasBeenSet() const
const Aws::String & GetPublicKey() const
bool KeyNameHasBeenSet() const
KeyPairInfo & WithTags(const Aws::Vector< Tag > &value)
void SetKeyFingerprint(const Aws::String &value)
KeyPairInfo & WithPublicKey(Aws::String &&value)
KeyPairInfo & WithKeyPairId(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
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
void SetKeyPairId(const char *value)
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