AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportKeyPairResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/ResponseMetadata.h>
11#include <aws/ec2/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
31 {
32 public:
33 AWS_EC2_API ImportKeyPairResponse();
36
37
39
46 inline const Aws::String& GetKeyFingerprint() const{ return m_keyFingerprint; }
47 inline void SetKeyFingerprint(const Aws::String& value) { m_keyFingerprint = value; }
48 inline void SetKeyFingerprint(Aws::String&& value) { m_keyFingerprint = std::move(value); }
49 inline void SetKeyFingerprint(const char* value) { m_keyFingerprint.assign(value); }
50 inline ImportKeyPairResponse& WithKeyFingerprint(const Aws::String& value) { SetKeyFingerprint(value); return *this;}
51 inline ImportKeyPairResponse& WithKeyFingerprint(Aws::String&& value) { SetKeyFingerprint(std::move(value)); return *this;}
52 inline ImportKeyPairResponse& WithKeyFingerprint(const char* value) { SetKeyFingerprint(value); return *this;}
54
56
59 inline const Aws::String& GetKeyName() const{ return m_keyName; }
60 inline void SetKeyName(const Aws::String& value) { m_keyName = value; }
61 inline void SetKeyName(Aws::String&& value) { m_keyName = std::move(value); }
62 inline void SetKeyName(const char* value) { m_keyName.assign(value); }
63 inline ImportKeyPairResponse& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
64 inline ImportKeyPairResponse& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;}
65 inline ImportKeyPairResponse& WithKeyName(const char* value) { SetKeyName(value); return *this;}
67
69
72 inline const Aws::String& GetKeyPairId() const{ return m_keyPairId; }
73 inline void SetKeyPairId(const Aws::String& value) { m_keyPairId = value; }
74 inline void SetKeyPairId(Aws::String&& value) { m_keyPairId = std::move(value); }
75 inline void SetKeyPairId(const char* value) { m_keyPairId.assign(value); }
76 inline ImportKeyPairResponse& WithKeyPairId(const Aws::String& value) { SetKeyPairId(value); return *this;}
77 inline ImportKeyPairResponse& WithKeyPairId(Aws::String&& value) { SetKeyPairId(std::move(value)); return *this;}
78 inline ImportKeyPairResponse& WithKeyPairId(const char* value) { SetKeyPairId(value); return *this;}
80
82
85 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
86 inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
87 inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
88 inline ImportKeyPairResponse& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
89 inline ImportKeyPairResponse& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
90 inline ImportKeyPairResponse& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
91 inline ImportKeyPairResponse& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
93
95
96 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
97 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
98 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
100 inline ImportKeyPairResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
102 private:
103
104 Aws::String m_keyFingerprint;
105
106 Aws::String m_keyName;
107
108 Aws::String m_keyPairId;
109
110 Aws::Vector<Tag> m_tags;
111
112 ResponseMetadata m_responseMetadata;
113 };
114
115} // namespace Model
116} // namespace EC2
117} // namespace Aws
ImportKeyPairResponse & AddTags(const Tag &value)
ImportKeyPairResponse & WithKeyPairId(const char *value)
AWS_EC2_API ImportKeyPairResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ImportKeyPairResponse & WithResponseMetadata(const ResponseMetadata &value)
AWS_EC2_API ImportKeyPairResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetKeyFingerprint(const Aws::String &value)
void SetKeyPairId(const Aws::String &value)
void SetResponseMetadata(ResponseMetadata &&value)
ImportKeyPairResponse & WithResponseMetadata(ResponseMetadata &&value)
ImportKeyPairResponse & WithKeyPairId(const Aws::String &value)
ImportKeyPairResponse & WithKeyFingerprint(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
ImportKeyPairResponse & WithKeyName(const char *value)
ImportKeyPairResponse & AddTags(Tag &&value)
ImportKeyPairResponse & WithTags(const Aws::Vector< Tag > &value)
ImportKeyPairResponse & WithKeyName(const Aws::String &value)
void SetResponseMetadata(const ResponseMetadata &value)
const Aws::String & GetKeyFingerprint() const
ImportKeyPairResponse & WithKeyFingerprint(const Aws::String &value)
void SetKeyName(const Aws::String &value)
ImportKeyPairResponse & WithKeyFingerprint(Aws::String &&value)
ImportKeyPairResponse & WithTags(Aws::Vector< Tag > &&value)
const Aws::Vector< Tag > & GetTags() const
ImportKeyPairResponse & WithKeyName(Aws::String &&value)
const ResponseMetadata & GetResponseMetadata() const
ImportKeyPairResponse & WithKeyPairId(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument