AWS SDK for C++  1.9.66
AWS SDK for C++
CreateKeyPairResponse.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 {
36  {
37  public:
41 
42 
46  inline const Aws::String& GetKeyFingerprint() const{ return m_keyFingerprint; }
47 
51  inline void SetKeyFingerprint(const Aws::String& value) { m_keyFingerprint = value; }
52 
56  inline void SetKeyFingerprint(Aws::String&& value) { m_keyFingerprint = std::move(value); }
57 
61  inline void SetKeyFingerprint(const char* value) { m_keyFingerprint.assign(value); }
62 
66  inline CreateKeyPairResponse& WithKeyFingerprint(const Aws::String& value) { SetKeyFingerprint(value); return *this;}
67 
71  inline CreateKeyPairResponse& WithKeyFingerprint(Aws::String&& value) { SetKeyFingerprint(std::move(value)); return *this;}
72 
76  inline CreateKeyPairResponse& WithKeyFingerprint(const char* value) { SetKeyFingerprint(value); return *this;}
77 
78 
82  inline const Aws::String& GetKeyMaterial() const{ return m_keyMaterial; }
83 
87  inline void SetKeyMaterial(const Aws::String& value) { m_keyMaterial = value; }
88 
92  inline void SetKeyMaterial(Aws::String&& value) { m_keyMaterial = std::move(value); }
93 
97  inline void SetKeyMaterial(const char* value) { m_keyMaterial.assign(value); }
98 
102  inline CreateKeyPairResponse& WithKeyMaterial(const Aws::String& value) { SetKeyMaterial(value); return *this;}
103 
107  inline CreateKeyPairResponse& WithKeyMaterial(Aws::String&& value) { SetKeyMaterial(std::move(value)); return *this;}
108 
112  inline CreateKeyPairResponse& WithKeyMaterial(const char* value) { SetKeyMaterial(value); return *this;}
113 
114 
118  inline const Aws::String& GetKeyName() const{ return m_keyName; }
119 
123  inline void SetKeyName(const Aws::String& value) { m_keyName = value; }
124 
128  inline void SetKeyName(Aws::String&& value) { m_keyName = std::move(value); }
129 
133  inline void SetKeyName(const char* value) { m_keyName.assign(value); }
134 
138  inline CreateKeyPairResponse& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
139 
143  inline CreateKeyPairResponse& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;}
144 
148  inline CreateKeyPairResponse& WithKeyName(const char* value) { SetKeyName(value); return *this;}
149 
150 
154  inline const Aws::String& GetKeyPairId() const{ return m_keyPairId; }
155 
159  inline void SetKeyPairId(const Aws::String& value) { m_keyPairId = value; }
160 
164  inline void SetKeyPairId(Aws::String&& value) { m_keyPairId = std::move(value); }
165 
169  inline void SetKeyPairId(const char* value) { m_keyPairId.assign(value); }
170 
174  inline CreateKeyPairResponse& WithKeyPairId(const Aws::String& value) { SetKeyPairId(value); return *this;}
175 
179  inline CreateKeyPairResponse& WithKeyPairId(Aws::String&& value) { SetKeyPairId(std::move(value)); return *this;}
180 
184  inline CreateKeyPairResponse& WithKeyPairId(const char* value) { SetKeyPairId(value); return *this;}
185 
186 
190  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
191 
195  inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
196 
200  inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
201 
205  inline CreateKeyPairResponse& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
206 
210  inline CreateKeyPairResponse& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
211 
215  inline CreateKeyPairResponse& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
216 
220  inline CreateKeyPairResponse& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
221 
222 
223 
224  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
225 
226 
227  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
228 
229 
230  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
231 
232 
233  inline CreateKeyPairResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
234 
235 
236  inline CreateKeyPairResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
237 
238  private:
239 
240  Aws::String m_keyFingerprint;
241 
242  Aws::String m_keyMaterial;
243 
244  Aws::String m_keyName;
245 
246  Aws::String m_keyPairId;
247 
248  Aws::Vector<Tag> m_tags;
249 
250  ResponseMetadata m_responseMetadata;
251  };
252 
253 } // namespace Model
254 } // namespace EC2
255 } // namespace Aws
Aws::EC2::Model::CreateKeyPairResponse::SetKeyMaterial
void SetKeyMaterial(const char *value)
Definition: CreateKeyPairResponse.h:97
Aws::EC2::Model::CreateKeyPairResponse::SetKeyFingerprint
void SetKeyFingerprint(Aws::String &&value)
Definition: CreateKeyPairResponse.h:56
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::CreateKeyPairResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: CreateKeyPairResponse.h:224
Aws::EC2::Model::CreateKeyPairResponse::CreateKeyPairResponse
CreateKeyPairResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CreateKeyPairResponse::SetKeyMaterial
void SetKeyMaterial(const Aws::String &value)
Definition: CreateKeyPairResponse.h:87
Aws::EC2::Model::CreateKeyPairResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: CreateKeyPairResponse.h:227
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::CreateKeyPairResponse::SetKeyName
void SetKeyName(Aws::String &&value)
Definition: CreateKeyPairResponse.h:128
Aws::EC2::Model::CreateKeyPairResponse::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateKeyPairResponse.h:195
Aws::EC2::Model::CreateKeyPairResponse::AddTags
CreateKeyPairResponse & AddTags(Tag &&value)
Definition: CreateKeyPairResponse.h:220
Aws::EC2::Model::CreateKeyPairResponse::WithKeyMaterial
CreateKeyPairResponse & WithKeyMaterial(const char *value)
Definition: CreateKeyPairResponse.h:112
Aws::EC2::Model::CreateKeyPairResponse::WithKeyPairId
CreateKeyPairResponse & WithKeyPairId(const char *value)
Definition: CreateKeyPairResponse.h:184
Aws::EC2::Model::CreateKeyPairResponse::GetKeyPairId
const Aws::String & GetKeyPairId() const
Definition: CreateKeyPairResponse.h:154
Aws::EC2::Model::CreateKeyPairResponse::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateKeyPairResponse.h:200
Aws::EC2::Model::CreateKeyPairResponse::WithKeyFingerprint
CreateKeyPairResponse & WithKeyFingerprint(const Aws::String &value)
Definition: CreateKeyPairResponse.h:66
Aws::EC2::Model::CreateKeyPairResponse::SetKeyPairId
void SetKeyPairId(Aws::String &&value)
Definition: CreateKeyPairResponse.h:164
Aws::EC2::Model::CreateKeyPairResponse::WithResponseMetadata
CreateKeyPairResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: CreateKeyPairResponse.h:233
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateKeyPairResponse::operator=
CreateKeyPairResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ResponseMetadata.h
Aws::EC2::Model::CreateKeyPairResponse::CreateKeyPairResponse
CreateKeyPairResponse()
Aws::EC2::Model::CreateKeyPairResponse::SetKeyFingerprint
void SetKeyFingerprint(const char *value)
Definition: CreateKeyPairResponse.h:61
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateKeyPairResponse::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateKeyPairResponse.h:190
AWSVector.h
Tag.h
Aws::EC2::Model::CreateKeyPairResponse::SetKeyName
void SetKeyName(const char *value)
Definition: CreateKeyPairResponse.h:133
Aws::EC2::Model::CreateKeyPairResponse::AddTags
CreateKeyPairResponse & AddTags(const Tag &value)
Definition: CreateKeyPairResponse.h:215
Aws::EC2::Model::CreateKeyPairResponse::SetKeyFingerprint
void SetKeyFingerprint(const Aws::String &value)
Definition: CreateKeyPairResponse.h:51
Aws::EC2::Model::CreateKeyPairResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: CreateKeyPairResponse.h:230
Aws::EC2::Model::CreateKeyPairResponse::WithKeyMaterial
CreateKeyPairResponse & WithKeyMaterial(const Aws::String &value)
Definition: CreateKeyPairResponse.h:102
Aws::EC2::Model::CreateKeyPairResponse
Definition: CreateKeyPairResponse.h:36
Aws::EC2::Model::CreateKeyPairResponse::WithKeyFingerprint
CreateKeyPairResponse & WithKeyFingerprint(const char *value)
Definition: CreateKeyPairResponse.h:76
Aws::EC2::Model::CreateKeyPairResponse::WithKeyFingerprint
CreateKeyPairResponse & WithKeyFingerprint(Aws::String &&value)
Definition: CreateKeyPairResponse.h:71
Aws::EC2::Model::CreateKeyPairResponse::WithKeyPairId
CreateKeyPairResponse & WithKeyPairId(Aws::String &&value)
Definition: CreateKeyPairResponse.h:179
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::CreateKeyPairResponse::WithKeyName
CreateKeyPairResponse & WithKeyName(const char *value)
Definition: CreateKeyPairResponse.h:148
Aws::EC2::Model::CreateKeyPairResponse::WithKeyPairId
CreateKeyPairResponse & WithKeyPairId(const Aws::String &value)
Definition: CreateKeyPairResponse.h:174
Aws::EC2::Model::CreateKeyPairResponse::GetKeyMaterial
const Aws::String & GetKeyMaterial() const
Definition: CreateKeyPairResponse.h:82
Aws::EC2::Model::CreateKeyPairResponse::SetKeyMaterial
void SetKeyMaterial(Aws::String &&value)
Definition: CreateKeyPairResponse.h:92
Aws::EC2::Model::CreateKeyPairResponse::WithTags
CreateKeyPairResponse & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateKeyPairResponse.h:205
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateKeyPairResponse::WithKeyName
CreateKeyPairResponse & WithKeyName(const Aws::String &value)
Definition: CreateKeyPairResponse.h:138
Aws::EC2::Model::CreateKeyPairResponse::WithKeyName
CreateKeyPairResponse & WithKeyName(Aws::String &&value)
Definition: CreateKeyPairResponse.h:143
Aws::EC2::Model::CreateKeyPairResponse::WithResponseMetadata
CreateKeyPairResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: CreateKeyPairResponse.h:236
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateKeyPairResponse::GetKeyFingerprint
const Aws::String & GetKeyFingerprint() const
Definition: CreateKeyPairResponse.h:46
Aws::EC2::Model::CreateKeyPairResponse::SetKeyPairId
void SetKeyPairId(const char *value)
Definition: CreateKeyPairResponse.h:169
Aws::EC2::Model::CreateKeyPairResponse::WithTags
CreateKeyPairResponse & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateKeyPairResponse.h:210
Aws::EC2::Model::CreateKeyPairResponse::GetKeyName
const Aws::String & GetKeyName() const
Definition: CreateKeyPairResponse.h:118
Aws::EC2::Model::CreateKeyPairResponse::WithKeyMaterial
CreateKeyPairResponse & WithKeyMaterial(Aws::String &&value)
Definition: CreateKeyPairResponse.h:107
EC2_EXPORTS.h
Aws::EC2::Model::CreateKeyPairResponse::SetKeyName
void SetKeyName(const Aws::String &value)
Definition: CreateKeyPairResponse.h:123
Aws::EC2::Model::CreateKeyPairResponse::SetKeyPairId
void SetKeyPairId(const Aws::String &value)
Definition: CreateKeyPairResponse.h:159