AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
ImportKeyPairResponse.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 {
28 public:
29 AWS_EC2_API ImportKeyPairResponse() = default;
32
34
41 inline const Aws::String& GetKeyFingerprint() const { return m_keyFingerprint; }
42 template <typename KeyFingerprintT = Aws::String>
43 void SetKeyFingerprint(KeyFingerprintT&& value) {
44 m_keyFingerprintHasBeenSet = true;
45 m_keyFingerprint = std::forward<KeyFingerprintT>(value);
46 }
47 template <typename KeyFingerprintT = Aws::String>
48 ImportKeyPairResponse& WithKeyFingerprint(KeyFingerprintT&& value) {
49 SetKeyFingerprint(std::forward<KeyFingerprintT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetKeyName() const { return m_keyName; }
59 template <typename KeyNameT = Aws::String>
60 void SetKeyName(KeyNameT&& value) {
61 m_keyNameHasBeenSet = true;
62 m_keyName = std::forward<KeyNameT>(value);
63 }
64 template <typename KeyNameT = Aws::String>
66 SetKeyName(std::forward<KeyNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetKeyPairId() const { return m_keyPairId; }
76 template <typename KeyPairIdT = Aws::String>
77 void SetKeyPairId(KeyPairIdT&& value) {
78 m_keyPairIdHasBeenSet = true;
79 m_keyPairId = std::forward<KeyPairIdT>(value);
80 }
81 template <typename KeyPairIdT = Aws::String>
82 ImportKeyPairResponse& WithKeyPairId(KeyPairIdT&& value) {
83 SetKeyPairId(std::forward<KeyPairIdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
93 template <typename TagsT = Aws::Vector<Tag>>
94 void SetTags(TagsT&& value) {
95 m_tagsHasBeenSet = true;
96 m_tags = std::forward<TagsT>(value);
97 }
98 template <typename TagsT = Aws::Vector<Tag>>
100 SetTags(std::forward<TagsT>(value));
101 return *this;
102 }
103 template <typename TagsT = Tag>
105 m_tagsHasBeenSet = true;
106 m_tags.emplace_back(std::forward<TagsT>(value));
107 return *this;
108 }
110
112
113 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
114 template <typename ResponseMetadataT = ResponseMetadata>
115 void SetResponseMetadata(ResponseMetadataT&& value) {
116 m_responseMetadataHasBeenSet = true;
117 m_responseMetadata = std::forward<ResponseMetadataT>(value);
118 }
119 template <typename ResponseMetadataT = ResponseMetadata>
120 ImportKeyPairResponse& WithResponseMetadata(ResponseMetadataT&& value) {
121 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
122 return *this;
123 }
125 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
126
127 private:
128 Aws::String m_keyFingerprint;
129
130 Aws::String m_keyName;
131
132 Aws::String m_keyPairId;
133
134 Aws::Vector<Tag> m_tags;
135
136 ResponseMetadata m_responseMetadata;
137 Aws::Http::HttpResponseCode m_HttpResponseCode;
138 bool m_keyFingerprintHasBeenSet = false;
139 bool m_keyNameHasBeenSet = false;
140 bool m_keyPairIdHasBeenSet = false;
141 bool m_tagsHasBeenSet = false;
142 bool m_responseMetadataHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace EC2
147} // namespace Aws
ImportKeyPairResponse & WithKeyName(KeyNameT &&value)
AWS_EC2_API ImportKeyPairResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API ImportKeyPairResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetResponseMetadata(ResponseMetadataT &&value)
void SetKeyFingerprint(KeyFingerprintT &&value)
AWS_EC2_API ImportKeyPairResponse()=default
ImportKeyPairResponse & AddTags(TagsT &&value)
const Aws::String & GetKeyFingerprint() const
ImportKeyPairResponse & WithKeyPairId(KeyPairIdT &&value)
ImportKeyPairResponse & WithResponseMetadata(ResponseMetadataT &&value)
const Aws::Vector< Tag > & GetTags() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ImportKeyPairResponse & WithKeyFingerprint(KeyFingerprintT &&value)
const ResponseMetadata & GetResponseMetadata() const
ImportKeyPairResponse & WithTags(TagsT &&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