AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateKeyPairResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/ResponseMetadata.h>
11#include <aws/ec2/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
36 {
37 public:
38 AWS_EC2_API CreateKeyPairResponse() = default;
41
42
44
47 inline const Aws::String& GetKeyPairId() const { return m_keyPairId; }
48 template<typename KeyPairIdT = Aws::String>
49 void SetKeyPairId(KeyPairIdT&& value) { m_keyPairIdHasBeenSet = true; m_keyPairId = std::forward<KeyPairIdT>(value); }
50 template<typename KeyPairIdT = Aws::String>
51 CreateKeyPairResponse& WithKeyPairId(KeyPairIdT&& value) { SetKeyPairId(std::forward<KeyPairIdT>(value)); return *this;}
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) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
61 template<typename TagsT = Aws::Vector<Tag>>
62 CreateKeyPairResponse& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
63 template<typename TagsT = Tag>
64 CreateKeyPairResponse& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
66
68
71 inline const Aws::String& GetKeyName() const { return m_keyName; }
72 template<typename KeyNameT = Aws::String>
73 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet = true; m_keyName = std::forward<KeyNameT>(value); }
74 template<typename KeyNameT = Aws::String>
75 CreateKeyPairResponse& WithKeyName(KeyNameT&& value) { SetKeyName(std::forward<KeyNameT>(value)); return *this;}
77
79
85 inline const Aws::String& GetKeyFingerprint() const { return m_keyFingerprint; }
86 template<typename KeyFingerprintT = Aws::String>
87 void SetKeyFingerprint(KeyFingerprintT&& value) { m_keyFingerprintHasBeenSet = true; m_keyFingerprint = std::forward<KeyFingerprintT>(value); }
88 template<typename KeyFingerprintT = Aws::String>
89 CreateKeyPairResponse& WithKeyFingerprint(KeyFingerprintT&& value) { SetKeyFingerprint(std::forward<KeyFingerprintT>(value)); return *this;}
91
93
96 inline const Aws::String& GetKeyMaterial() const { return m_keyMaterial; }
97 template<typename KeyMaterialT = Aws::String>
98 void SetKeyMaterial(KeyMaterialT&& value) { m_keyMaterialHasBeenSet = true; m_keyMaterial = std::forward<KeyMaterialT>(value); }
99 template<typename KeyMaterialT = Aws::String>
100 CreateKeyPairResponse& WithKeyMaterial(KeyMaterialT&& value) { SetKeyMaterial(std::forward<KeyMaterialT>(value)); return *this;}
102
104
105 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
106 template<typename ResponseMetadataT = ResponseMetadata>
107 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
108 template<typename ResponseMetadataT = ResponseMetadata>
109 CreateKeyPairResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
111 private:
112
113 Aws::String m_keyPairId;
114 bool m_keyPairIdHasBeenSet = false;
115
116 Aws::Vector<Tag> m_tags;
117 bool m_tagsHasBeenSet = false;
118
119 Aws::String m_keyName;
120 bool m_keyNameHasBeenSet = false;
121
122 Aws::String m_keyFingerprint;
123 bool m_keyFingerprintHasBeenSet = false;
124
125 Aws::String m_keyMaterial;
126 bool m_keyMaterialHasBeenSet = false;
127
128 ResponseMetadata m_responseMetadata;
129 bool m_responseMetadataHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace EC2
134} // 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