AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateKeyPairResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/ResponseMetadata.h>
11#include <aws/ec2/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
32 public:
33 AWS_EC2_API CreateKeyPairResponse() = default;
36
38
41 inline const Aws::String& GetKeyPairId() const { return m_keyPairId; }
42 template <typename KeyPairIdT = Aws::String>
43 void SetKeyPairId(KeyPairIdT&& value) {
44 m_keyPairIdHasBeenSet = true;
45 m_keyPairId = std::forward<KeyPairIdT>(value);
46 }
47 template <typename KeyPairIdT = Aws::String>
48 CreateKeyPairResponse& WithKeyPairId(KeyPairIdT&& value) {
49 SetKeyPairId(std::forward<KeyPairIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
59 template <typename TagsT = Aws::Vector<Tag>>
60 void SetTags(TagsT&& value) {
61 m_tagsHasBeenSet = true;
62 m_tags = std::forward<TagsT>(value);
63 }
64 template <typename TagsT = Aws::Vector<Tag>>
66 SetTags(std::forward<TagsT>(value));
67 return *this;
68 }
69 template <typename TagsT = Tag>
71 m_tagsHasBeenSet = true;
72 m_tags.emplace_back(std::forward<TagsT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetKeyName() const { return m_keyName; }
82 template <typename KeyNameT = Aws::String>
83 void SetKeyName(KeyNameT&& value) {
84 m_keyNameHasBeenSet = true;
85 m_keyName = std::forward<KeyNameT>(value);
86 }
87 template <typename KeyNameT = Aws::String>
89 SetKeyName(std::forward<KeyNameT>(value));
90 return *this;
91 }
93
95
101 inline const Aws::String& GetKeyFingerprint() const { return m_keyFingerprint; }
102 template <typename KeyFingerprintT = Aws::String>
103 void SetKeyFingerprint(KeyFingerprintT&& value) {
104 m_keyFingerprintHasBeenSet = true;
105 m_keyFingerprint = std::forward<KeyFingerprintT>(value);
106 }
107 template <typename KeyFingerprintT = Aws::String>
108 CreateKeyPairResponse& WithKeyFingerprint(KeyFingerprintT&& value) {
109 SetKeyFingerprint(std::forward<KeyFingerprintT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetKeyMaterial() const { return m_keyMaterial; }
119 template <typename KeyMaterialT = Aws::String>
120 void SetKeyMaterial(KeyMaterialT&& value) {
121 m_keyMaterialHasBeenSet = true;
122 m_keyMaterial = std::forward<KeyMaterialT>(value);
123 }
124 template <typename KeyMaterialT = Aws::String>
125 CreateKeyPairResponse& WithKeyMaterial(KeyMaterialT&& value) {
126 SetKeyMaterial(std::forward<KeyMaterialT>(value));
127 return *this;
128 }
130
132
133 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
134 template <typename ResponseMetadataT = ResponseMetadata>
135 void SetResponseMetadata(ResponseMetadataT&& value) {
136 m_responseMetadataHasBeenSet = true;
137 m_responseMetadata = std::forward<ResponseMetadataT>(value);
138 }
139 template <typename ResponseMetadataT = ResponseMetadata>
140 CreateKeyPairResponse& WithResponseMetadata(ResponseMetadataT&& value) {
141 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_keyPairId;
147
148 Aws::Vector<Tag> m_tags;
149
150 Aws::String m_keyName;
151
152 Aws::String m_keyFingerprint;
153
154 Aws::String m_keyMaterial;
155
156 ResponseMetadata m_responseMetadata;
157 bool m_keyPairIdHasBeenSet = false;
158 bool m_tagsHasBeenSet = false;
159 bool m_keyNameHasBeenSet = false;
160 bool m_keyFingerprintHasBeenSet = false;
161 bool m_keyMaterialHasBeenSet = false;
162 bool m_responseMetadataHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace EC2
167} // namespace Aws
CreateKeyPairResponse & WithKeyPairId(KeyPairIdT &&value)
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