AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateKeyPairResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/KeyPair.h>
11#include <aws/lightsail/model/Operation.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail {
25namespace Model {
27 public:
28 AWS_LIGHTSAIL_API CreateKeyPairResult() = default;
31
33
37 inline const KeyPair& GetKeyPair() const { return m_keyPair; }
38 template <typename KeyPairT = KeyPair>
39 void SetKeyPair(KeyPairT&& value) {
40 m_keyPairHasBeenSet = true;
41 m_keyPair = std::forward<KeyPairT>(value);
42 }
43 template <typename KeyPairT = KeyPair>
44 CreateKeyPairResult& WithKeyPair(KeyPairT&& value) {
45 SetKeyPair(std::forward<KeyPairT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetPublicKeyBase64() const { return m_publicKeyBase64; }
55 template <typename PublicKeyBase64T = Aws::String>
56 void SetPublicKeyBase64(PublicKeyBase64T&& value) {
57 m_publicKeyBase64HasBeenSet = true;
58 m_publicKeyBase64 = std::forward<PublicKeyBase64T>(value);
59 }
60 template <typename PublicKeyBase64T = Aws::String>
61 CreateKeyPairResult& WithPublicKeyBase64(PublicKeyBase64T&& value) {
62 SetPublicKeyBase64(std::forward<PublicKeyBase64T>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetPrivateKeyBase64() const { return m_privateKeyBase64; }
72 template <typename PrivateKeyBase64T = Aws::String>
73 void SetPrivateKeyBase64(PrivateKeyBase64T&& value) {
74 m_privateKeyBase64HasBeenSet = true;
75 m_privateKeyBase64 = std::forward<PrivateKeyBase64T>(value);
76 }
77 template <typename PrivateKeyBase64T = Aws::String>
78 CreateKeyPairResult& WithPrivateKeyBase64(PrivateKeyBase64T&& value) {
79 SetPrivateKeyBase64(std::forward<PrivateKeyBase64T>(value));
80 return *this;
81 }
83
85
90 inline const Operation& GetOperation() const { return m_operation; }
91 template <typename OperationT = Operation>
92 void SetOperation(OperationT&& value) {
93 m_operationHasBeenSet = true;
94 m_operation = std::forward<OperationT>(value);
95 }
96 template <typename OperationT = Operation>
97 CreateKeyPairResult& WithOperation(OperationT&& value) {
98 SetOperation(std::forward<OperationT>(value));
99 return *this;
100 }
102
104
105 inline const Aws::String& GetRequestId() const { return m_requestId; }
106 template <typename RequestIdT = Aws::String>
107 void SetRequestId(RequestIdT&& value) {
108 m_requestIdHasBeenSet = true;
109 m_requestId = std::forward<RequestIdT>(value);
110 }
111 template <typename RequestIdT = Aws::String>
112 CreateKeyPairResult& WithRequestId(RequestIdT&& value) {
113 SetRequestId(std::forward<RequestIdT>(value));
114 return *this;
115 }
117 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
118
119 private:
120 KeyPair m_keyPair;
121
122 Aws::String m_publicKeyBase64;
123
124 Aws::String m_privateKeyBase64;
125
126 Operation m_operation;
127
128 Aws::String m_requestId;
129 Aws::Http::HttpResponseCode m_HttpResponseCode;
130 bool m_keyPairHasBeenSet = false;
131 bool m_publicKeyBase64HasBeenSet = false;
132 bool m_privateKeyBase64HasBeenSet = false;
133 bool m_operationHasBeenSet = false;
134 bool m_requestIdHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace Lightsail
139} // namespace Aws
AWS_LIGHTSAIL_API CreateKeyPairResult()=default
const Aws::String & GetPrivateKeyBase64() const
CreateKeyPairResult & WithPrivateKeyBase64(PrivateKeyBase64T &&value)
CreateKeyPairResult & WithRequestId(RequestIdT &&value)
void SetPublicKeyBase64(PublicKeyBase64T &&value)
AWS_LIGHTSAIL_API CreateKeyPairResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateKeyPairResult & WithOperation(OperationT &&value)
void SetPrivateKeyBase64(PrivateKeyBase64T &&value)
CreateKeyPairResult & WithPublicKeyBase64(PublicKeyBase64T &&value)
CreateKeyPairResult & WithKeyPair(KeyPairT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_LIGHTSAIL_API CreateKeyPairResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue