AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
41
42
44
47 inline const Aws::String& GetKeyPairId() const{ return m_keyPairId; }
48 inline void SetKeyPairId(const Aws::String& value) { m_keyPairId = value; }
49 inline void SetKeyPairId(Aws::String&& value) { m_keyPairId = std::move(value); }
50 inline void SetKeyPairId(const char* value) { m_keyPairId.assign(value); }
51 inline CreateKeyPairResponse& WithKeyPairId(const Aws::String& value) { SetKeyPairId(value); return *this;}
52 inline CreateKeyPairResponse& WithKeyPairId(Aws::String&& value) { SetKeyPairId(std::move(value)); return *this;}
53 inline CreateKeyPairResponse& WithKeyPairId(const char* value) { SetKeyPairId(value); return *this;}
55
57
60 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
61 inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
62 inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
63 inline CreateKeyPairResponse& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
64 inline CreateKeyPairResponse& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
65 inline CreateKeyPairResponse& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
66 inline CreateKeyPairResponse& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
68
70
73 inline const Aws::String& GetKeyName() const{ return m_keyName; }
74 inline void SetKeyName(const Aws::String& value) { m_keyName = value; }
75 inline void SetKeyName(Aws::String&& value) { m_keyName = std::move(value); }
76 inline void SetKeyName(const char* value) { m_keyName.assign(value); }
77 inline CreateKeyPairResponse& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
78 inline CreateKeyPairResponse& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;}
79 inline CreateKeyPairResponse& WithKeyName(const char* value) { SetKeyName(value); return *this;}
81
83
89 inline const Aws::String& GetKeyFingerprint() const{ return m_keyFingerprint; }
90 inline void SetKeyFingerprint(const Aws::String& value) { m_keyFingerprint = value; }
91 inline void SetKeyFingerprint(Aws::String&& value) { m_keyFingerprint = std::move(value); }
92 inline void SetKeyFingerprint(const char* value) { m_keyFingerprint.assign(value); }
93 inline CreateKeyPairResponse& WithKeyFingerprint(const Aws::String& value) { SetKeyFingerprint(value); return *this;}
94 inline CreateKeyPairResponse& WithKeyFingerprint(Aws::String&& value) { SetKeyFingerprint(std::move(value)); return *this;}
95 inline CreateKeyPairResponse& WithKeyFingerprint(const char* value) { SetKeyFingerprint(value); return *this;}
97
99
102 inline const Aws::String& GetKeyMaterial() const{ return m_keyMaterial; }
103 inline void SetKeyMaterial(const Aws::String& value) { m_keyMaterial = value; }
104 inline void SetKeyMaterial(Aws::String&& value) { m_keyMaterial = std::move(value); }
105 inline void SetKeyMaterial(const char* value) { m_keyMaterial.assign(value); }
106 inline CreateKeyPairResponse& WithKeyMaterial(const Aws::String& value) { SetKeyMaterial(value); return *this;}
107 inline CreateKeyPairResponse& WithKeyMaterial(Aws::String&& value) { SetKeyMaterial(std::move(value)); return *this;}
108 inline CreateKeyPairResponse& WithKeyMaterial(const char* value) { SetKeyMaterial(value); return *this;}
110
112
113 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
114 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
115 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
117 inline CreateKeyPairResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
119 private:
120
121 Aws::String m_keyPairId;
122
123 Aws::Vector<Tag> m_tags;
124
125 Aws::String m_keyName;
126
127 Aws::String m_keyFingerprint;
128
129 Aws::String m_keyMaterial;
130
131 ResponseMetadata m_responseMetadata;
132 };
133
134} // namespace Model
135} // namespace EC2
136} // namespace Aws
CreateKeyPairResponse & WithResponseMetadata(const ResponseMetadata &value)
CreateKeyPairResponse & AddTags(Tag &&value)
CreateKeyPairResponse & WithKeyFingerprint(const Aws::String &value)
CreateKeyPairResponse & WithResponseMetadata(ResponseMetadata &&value)
CreateKeyPairResponse & WithKeyPairId(const Aws::String &value)
CreateKeyPairResponse & WithKeyMaterial(const Aws::String &value)
CreateKeyPairResponse & AddTags(const Tag &value)
const ResponseMetadata & GetResponseMetadata() const
CreateKeyPairResponse & WithKeyPairId(Aws::String &&value)
void SetResponseMetadata(const ResponseMetadata &value)
void SetKeyMaterial(const Aws::String &value)
CreateKeyPairResponse & WithTags(const Aws::Vector< Tag > &value)
void SetKeyFingerprint(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
AWS_EC2_API CreateKeyPairResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::String & GetKeyFingerprint() const
CreateKeyPairResponse & WithKeyFingerprint(Aws::String &&value)
CreateKeyPairResponse & WithTags(Aws::Vector< Tag > &&value)
CreateKeyPairResponse & WithKeyName(const Aws::String &value)
void SetResponseMetadata(ResponseMetadata &&value)
CreateKeyPairResponse & WithKeyName(Aws::String &&value)
CreateKeyPairResponse & WithKeyPairId(const char *value)
CreateKeyPairResponse & WithKeyFingerprint(const char *value)
CreateKeyPairResponse & WithKeyMaterial(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateKeyPairResponse & WithKeyMaterial(const char *value)
void SetKeyPairId(const Aws::String &value)
AWS_EC2_API CreateKeyPairResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetKeyName(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
CreateKeyPairResponse & WithKeyName(const char *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