AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
CreateKeyPairResponse.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/ResponseMetadata.h>
12#include <aws/ec2/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace EC2 {
26namespace Model {
33 public:
34 AWS_EC2_API CreateKeyPairResponse() = default;
37
39
42 inline const Aws::String& GetKeyPairId() const { return m_keyPairId; }
43 template <typename KeyPairIdT = Aws::String>
44 void SetKeyPairId(KeyPairIdT&& value) {
45 m_keyPairIdHasBeenSet = true;
46 m_keyPairId = std::forward<KeyPairIdT>(value);
47 }
48 template <typename KeyPairIdT = Aws::String>
49 CreateKeyPairResponse& WithKeyPairId(KeyPairIdT&& value) {
50 SetKeyPairId(std::forward<KeyPairIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
60 template <typename TagsT = Aws::Vector<Tag>>
61 void SetTags(TagsT&& value) {
62 m_tagsHasBeenSet = true;
63 m_tags = std::forward<TagsT>(value);
64 }
65 template <typename TagsT = Aws::Vector<Tag>>
67 SetTags(std::forward<TagsT>(value));
68 return *this;
69 }
70 template <typename TagsT = Tag>
72 m_tagsHasBeenSet = true;
73 m_tags.emplace_back(std::forward<TagsT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetKeyName() const { return m_keyName; }
83 template <typename KeyNameT = Aws::String>
84 void SetKeyName(KeyNameT&& value) {
85 m_keyNameHasBeenSet = true;
86 m_keyName = std::forward<KeyNameT>(value);
87 }
88 template <typename KeyNameT = Aws::String>
90 SetKeyName(std::forward<KeyNameT>(value));
91 return *this;
92 }
94
96
102 inline const Aws::String& GetKeyFingerprint() const { return m_keyFingerprint; }
103 template <typename KeyFingerprintT = Aws::String>
104 void SetKeyFingerprint(KeyFingerprintT&& value) {
105 m_keyFingerprintHasBeenSet = true;
106 m_keyFingerprint = std::forward<KeyFingerprintT>(value);
107 }
108 template <typename KeyFingerprintT = Aws::String>
109 CreateKeyPairResponse& WithKeyFingerprint(KeyFingerprintT&& value) {
110 SetKeyFingerprint(std::forward<KeyFingerprintT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetKeyMaterial() const { return m_keyMaterial; }
120 template <typename KeyMaterialT = Aws::String>
121 void SetKeyMaterial(KeyMaterialT&& value) {
122 m_keyMaterialHasBeenSet = true;
123 m_keyMaterial = std::forward<KeyMaterialT>(value);
124 }
125 template <typename KeyMaterialT = Aws::String>
126 CreateKeyPairResponse& WithKeyMaterial(KeyMaterialT&& value) {
127 SetKeyMaterial(std::forward<KeyMaterialT>(value));
128 return *this;
129 }
131
133
134 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
135 template <typename ResponseMetadataT = ResponseMetadata>
136 void SetResponseMetadata(ResponseMetadataT&& value) {
137 m_responseMetadataHasBeenSet = true;
138 m_responseMetadata = std::forward<ResponseMetadataT>(value);
139 }
140 template <typename ResponseMetadataT = ResponseMetadata>
141 CreateKeyPairResponse& WithResponseMetadata(ResponseMetadataT&& value) {
142 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
143 return *this;
144 }
146 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
147
148 private:
149 Aws::String m_keyPairId;
150
151 Aws::Vector<Tag> m_tags;
152
153 Aws::String m_keyName;
154
155 Aws::String m_keyFingerprint;
156
157 Aws::String m_keyMaterial;
158
159 ResponseMetadata m_responseMetadata;
160 Aws::Http::HttpResponseCode m_HttpResponseCode;
161 bool m_keyPairIdHasBeenSet = false;
162 bool m_tagsHasBeenSet = false;
163 bool m_keyNameHasBeenSet = false;
164 bool m_keyFingerprintHasBeenSet = false;
165 bool m_keyMaterialHasBeenSet = false;
166 bool m_responseMetadataHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace EC2
171} // namespace Aws
CreateKeyPairResponse & WithKeyPairId(KeyPairIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const ResponseMetadata & GetResponseMetadata() const
AWS_EC2_API CreateKeyPairResponse()=default
void SetKeyFingerprint(KeyFingerprintT &&value)
CreateKeyPairResponse & WithResponseMetadata(ResponseMetadataT &&value)
AWS_EC2_API CreateKeyPairResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetResponseMetadata(ResponseMetadataT &&value)
const Aws::String & GetKeyFingerprint() const
CreateKeyPairResponse & WithTags(TagsT &&value)
CreateKeyPairResponse & WithKeyFingerprint(KeyFingerprintT &&value)
CreateKeyPairResponse & WithKeyMaterial(KeyMaterialT &&value)
CreateKeyPairResponse & WithKeyName(KeyNameT &&value)
AWS_EC2_API CreateKeyPairResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateKeyPairResponse & AddTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument