AWS SDK for C++  1.9.109
AWS SDK for C++
ImportKeyPairResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <aws/ec2/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::String& GetKeyFingerprint() const{ return m_keyFingerprint; }
42 
46  inline void SetKeyFingerprint(const Aws::String& value) { m_keyFingerprint = value; }
47 
51  inline void SetKeyFingerprint(Aws::String&& value) { m_keyFingerprint = std::move(value); }
52 
56  inline void SetKeyFingerprint(const char* value) { m_keyFingerprint.assign(value); }
57 
61  inline ImportKeyPairResponse& WithKeyFingerprint(const Aws::String& value) { SetKeyFingerprint(value); return *this;}
62 
66  inline ImportKeyPairResponse& WithKeyFingerprint(Aws::String&& value) { SetKeyFingerprint(std::move(value)); return *this;}
67 
71  inline ImportKeyPairResponse& WithKeyFingerprint(const char* value) { SetKeyFingerprint(value); return *this;}
72 
73 
77  inline const Aws::String& GetKeyName() const{ return m_keyName; }
78 
82  inline void SetKeyName(const Aws::String& value) { m_keyName = value; }
83 
87  inline void SetKeyName(Aws::String&& value) { m_keyName = std::move(value); }
88 
92  inline void SetKeyName(const char* value) { m_keyName.assign(value); }
93 
97  inline ImportKeyPairResponse& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
98 
102  inline ImportKeyPairResponse& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;}
103 
107  inline ImportKeyPairResponse& WithKeyName(const char* value) { SetKeyName(value); return *this;}
108 
109 
113  inline const Aws::String& GetKeyPairId() const{ return m_keyPairId; }
114 
118  inline void SetKeyPairId(const Aws::String& value) { m_keyPairId = value; }
119 
123  inline void SetKeyPairId(Aws::String&& value) { m_keyPairId = std::move(value); }
124 
128  inline void SetKeyPairId(const char* value) { m_keyPairId.assign(value); }
129 
133  inline ImportKeyPairResponse& WithKeyPairId(const Aws::String& value) { SetKeyPairId(value); return *this;}
134 
138  inline ImportKeyPairResponse& WithKeyPairId(Aws::String&& value) { SetKeyPairId(std::move(value)); return *this;}
139 
143  inline ImportKeyPairResponse& WithKeyPairId(const char* value) { SetKeyPairId(value); return *this;}
144 
145 
149  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
150 
154  inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
155 
159  inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
160 
164  inline ImportKeyPairResponse& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
165 
169  inline ImportKeyPairResponse& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
170 
174  inline ImportKeyPairResponse& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
175 
179  inline ImportKeyPairResponse& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
180 
181 
182 
183  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
184 
185 
186  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
187 
188 
189  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
190 
191 
192  inline ImportKeyPairResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
193 
194 
195  inline ImportKeyPairResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
196 
197  private:
198 
199  Aws::String m_keyFingerprint;
200 
201  Aws::String m_keyName;
202 
203  Aws::String m_keyPairId;
204 
205  Aws::Vector<Tag> m_tags;
206 
207  ResponseMetadata m_responseMetadata;
208  };
209 
210 } // namespace Model
211 } // namespace EC2
212 } // namespace Aws
Aws::EC2::Model::ImportKeyPairResponse::WithKeyFingerprint
ImportKeyPairResponse & WithKeyFingerprint(const char *value)
Definition: ImportKeyPairResponse.h:71
Aws::EC2::Model::ImportKeyPairResponse::ImportKeyPairResponse
ImportKeyPairResponse()
Aws::EC2::Model::ImportKeyPairResponse::WithKeyPairId
ImportKeyPairResponse & WithKeyPairId(Aws::String &&value)
Definition: ImportKeyPairResponse.h:138
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::ImportKeyPairResponse::GetKeyName
const Aws::String & GetKeyName() const
Definition: ImportKeyPairResponse.h:77
Aws::EC2::Model::ImportKeyPairResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: ImportKeyPairResponse.h:186
Aws::EC2::Model::ImportKeyPairResponse::SetKeyFingerprint
void SetKeyFingerprint(const char *value)
Definition: ImportKeyPairResponse.h:56
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::ImportKeyPairResponse::ImportKeyPairResponse
ImportKeyPairResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ImportKeyPairResponse::SetKeyFingerprint
void SetKeyFingerprint(Aws::String &&value)
Definition: ImportKeyPairResponse.h:51
AWSVector.h
Tag.h
Aws::EC2::Model::ImportKeyPairResponse::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: ImportKeyPairResponse.h:149
Aws::EC2::Model::ImportKeyPairResponse::operator=
ImportKeyPairResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::ImportKeyPairResponse::SetKeyPairId
void SetKeyPairId(const char *value)
Definition: ImportKeyPairResponse.h:128
Aws::EC2::Model::ImportKeyPairResponse::WithResponseMetadata
ImportKeyPairResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: ImportKeyPairResponse.h:192
Aws::EC2::Model::ImportKeyPairResponse::SetKeyFingerprint
void SetKeyFingerprint(const Aws::String &value)
Definition: ImportKeyPairResponse.h:46
Aws::EC2::Model::ImportKeyPairResponse::SetKeyName
void SetKeyName(const char *value)
Definition: ImportKeyPairResponse.h:92
Aws::EC2::Model::ImportKeyPairResponse::WithResponseMetadata
ImportKeyPairResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: ImportKeyPairResponse.h:195
Aws::EC2::Model::ImportKeyPairResponse::WithKeyName
ImportKeyPairResponse & WithKeyName(const Aws::String &value)
Definition: ImportKeyPairResponse.h:97
Aws::EC2::Model::ImportKeyPairResponse::WithKeyPairId
ImportKeyPairResponse & WithKeyPairId(const char *value)
Definition: ImportKeyPairResponse.h:143
Aws::EC2::Model::ImportKeyPairResponse::WithKeyName
ImportKeyPairResponse & WithKeyName(const char *value)
Definition: ImportKeyPairResponse.h:107
Aws::EC2::Model::ImportKeyPairResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: ImportKeyPairResponse.h:183
Aws::EC2::Model::ImportKeyPairResponse
Definition: ImportKeyPairResponse.h:31
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::ImportKeyPairResponse::SetKeyName
void SetKeyName(const Aws::String &value)
Definition: ImportKeyPairResponse.h:82
AWSString.h
Aws::EC2::Model::ImportKeyPairResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: ImportKeyPairResponse.h:189
Aws::EC2::Model::ImportKeyPairResponse::WithTags
ImportKeyPairResponse & WithTags(Aws::Vector< Tag > &&value)
Definition: ImportKeyPairResponse.h:169
Aws::EC2::Model::ImportKeyPairResponse::SetKeyPairId
void SetKeyPairId(const Aws::String &value)
Definition: ImportKeyPairResponse.h:118
Aws::EC2::Model::ImportKeyPairResponse::WithKeyPairId
ImportKeyPairResponse & WithKeyPairId(const Aws::String &value)
Definition: ImportKeyPairResponse.h:133
Aws::EC2::Model::ImportKeyPairResponse::GetKeyPairId
const Aws::String & GetKeyPairId() const
Definition: ImportKeyPairResponse.h:113
Aws::EC2::Model::ImportKeyPairResponse::SetKeyPairId
void SetKeyPairId(Aws::String &&value)
Definition: ImportKeyPairResponse.h:123
Aws::EC2::Model::ImportKeyPairResponse::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: ImportKeyPairResponse.h:159
Aws::EC2::Model::ImportKeyPairResponse::WithTags
ImportKeyPairResponse & WithTags(const Aws::Vector< Tag > &value)
Definition: ImportKeyPairResponse.h:164
Aws::EC2::Model::ImportKeyPairResponse::AddTags
ImportKeyPairResponse & AddTags(const Tag &value)
Definition: ImportKeyPairResponse.h:174
Aws::EC2::Model::ImportKeyPairResponse::SetKeyName
void SetKeyName(Aws::String &&value)
Definition: ImportKeyPairResponse.h:87
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ImportKeyPairResponse::AddTags
ImportKeyPairResponse & AddTags(Tag &&value)
Definition: ImportKeyPairResponse.h:179
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ImportKeyPairResponse::WithKeyName
ImportKeyPairResponse & WithKeyName(Aws::String &&value)
Definition: ImportKeyPairResponse.h:102
Aws::EC2::Model::ImportKeyPairResponse::GetKeyFingerprint
const Aws::String & GetKeyFingerprint() const
Definition: ImportKeyPairResponse.h:41
Aws::EC2::Model::ImportKeyPairResponse::WithKeyFingerprint
ImportKeyPairResponse & WithKeyFingerprint(const Aws::String &value)
Definition: ImportKeyPairResponse.h:61
EC2_EXPORTS.h
Aws::EC2::Model::ImportKeyPairResponse::WithKeyFingerprint
ImportKeyPairResponse & WithKeyFingerprint(Aws::String &&value)
Definition: ImportKeyPairResponse.h:66
Aws::EC2::Model::ImportKeyPairResponse::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: ImportKeyPairResponse.h:154