AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ImportKeyPairResponse.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 {
27 public:
28 AWS_EC2_API ImportKeyPairResponse() = default;
31
33
40 inline const Aws::String& GetKeyFingerprint() const { return m_keyFingerprint; }
41 template <typename KeyFingerprintT = Aws::String>
42 void SetKeyFingerprint(KeyFingerprintT&& value) {
43 m_keyFingerprintHasBeenSet = true;
44 m_keyFingerprint = std::forward<KeyFingerprintT>(value);
45 }
46 template <typename KeyFingerprintT = Aws::String>
47 ImportKeyPairResponse& WithKeyFingerprint(KeyFingerprintT&& value) {
48 SetKeyFingerprint(std::forward<KeyFingerprintT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetKeyName() const { return m_keyName; }
58 template <typename KeyNameT = Aws::String>
59 void SetKeyName(KeyNameT&& value) {
60 m_keyNameHasBeenSet = true;
61 m_keyName = std::forward<KeyNameT>(value);
62 }
63 template <typename KeyNameT = Aws::String>
65 SetKeyName(std::forward<KeyNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetKeyPairId() const { return m_keyPairId; }
75 template <typename KeyPairIdT = Aws::String>
76 void SetKeyPairId(KeyPairIdT&& value) {
77 m_keyPairIdHasBeenSet = true;
78 m_keyPairId = std::forward<KeyPairIdT>(value);
79 }
80 template <typename KeyPairIdT = Aws::String>
81 ImportKeyPairResponse& WithKeyPairId(KeyPairIdT&& value) {
82 SetKeyPairId(std::forward<KeyPairIdT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
92 template <typename TagsT = Aws::Vector<Tag>>
93 void SetTags(TagsT&& value) {
94 m_tagsHasBeenSet = true;
95 m_tags = std::forward<TagsT>(value);
96 }
97 template <typename TagsT = Aws::Vector<Tag>>
99 SetTags(std::forward<TagsT>(value));
100 return *this;
101 }
102 template <typename TagsT = Tag>
104 m_tagsHasBeenSet = true;
105 m_tags.emplace_back(std::forward<TagsT>(value));
106 return *this;
107 }
109
111
112 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
113 template <typename ResponseMetadataT = ResponseMetadata>
114 void SetResponseMetadata(ResponseMetadataT&& value) {
115 m_responseMetadataHasBeenSet = true;
116 m_responseMetadata = std::forward<ResponseMetadataT>(value);
117 }
118 template <typename ResponseMetadataT = ResponseMetadata>
119 ImportKeyPairResponse& WithResponseMetadata(ResponseMetadataT&& value) {
120 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_keyFingerprint;
126
127 Aws::String m_keyName;
128
129 Aws::String m_keyPairId;
130
131 Aws::Vector<Tag> m_tags;
132
133 ResponseMetadata m_responseMetadata;
134 bool m_keyFingerprintHasBeenSet = false;
135 bool m_keyNameHasBeenSet = false;
136 bool m_keyPairIdHasBeenSet = false;
137 bool m_tagsHasBeenSet = false;
138 bool m_responseMetadataHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace EC2
143} // 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
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