AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CreateKeyPairResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9#include <aws/lightsail/model/KeyPair.h>
10#include <aws/lightsail/model/Operation.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Lightsail {
24namespace Model {
26 public:
27 AWS_LIGHTSAIL_API CreateKeyPairResult() = default;
30
32
36 inline const KeyPair& GetKeyPair() const { return m_keyPair; }
37 template <typename KeyPairT = KeyPair>
38 void SetKeyPair(KeyPairT&& value) {
39 m_keyPairHasBeenSet = true;
40 m_keyPair = std::forward<KeyPairT>(value);
41 }
42 template <typename KeyPairT = KeyPair>
43 CreateKeyPairResult& WithKeyPair(KeyPairT&& value) {
44 SetKeyPair(std::forward<KeyPairT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetPublicKeyBase64() const { return m_publicKeyBase64; }
54 template <typename PublicKeyBase64T = Aws::String>
55 void SetPublicKeyBase64(PublicKeyBase64T&& value) {
56 m_publicKeyBase64HasBeenSet = true;
57 m_publicKeyBase64 = std::forward<PublicKeyBase64T>(value);
58 }
59 template <typename PublicKeyBase64T = Aws::String>
60 CreateKeyPairResult& WithPublicKeyBase64(PublicKeyBase64T&& value) {
61 SetPublicKeyBase64(std::forward<PublicKeyBase64T>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetPrivateKeyBase64() const { return m_privateKeyBase64; }
71 template <typename PrivateKeyBase64T = Aws::String>
72 void SetPrivateKeyBase64(PrivateKeyBase64T&& value) {
73 m_privateKeyBase64HasBeenSet = true;
74 m_privateKeyBase64 = std::forward<PrivateKeyBase64T>(value);
75 }
76 template <typename PrivateKeyBase64T = Aws::String>
77 CreateKeyPairResult& WithPrivateKeyBase64(PrivateKeyBase64T&& value) {
78 SetPrivateKeyBase64(std::forward<PrivateKeyBase64T>(value));
79 return *this;
80 }
82
84
89 inline const Operation& GetOperation() const { return m_operation; }
90 template <typename OperationT = Operation>
91 void SetOperation(OperationT&& value) {
92 m_operationHasBeenSet = true;
93 m_operation = std::forward<OperationT>(value);
94 }
95 template <typename OperationT = Operation>
96 CreateKeyPairResult& WithOperation(OperationT&& value) {
97 SetOperation(std::forward<OperationT>(value));
98 return *this;
99 }
101
103
104 inline const Aws::String& GetRequestId() const { return m_requestId; }
105 template <typename RequestIdT = Aws::String>
106 void SetRequestId(RequestIdT&& value) {
107 m_requestIdHasBeenSet = true;
108 m_requestId = std::forward<RequestIdT>(value);
109 }
110 template <typename RequestIdT = Aws::String>
111 CreateKeyPairResult& WithRequestId(RequestIdT&& value) {
112 SetRequestId(std::forward<RequestIdT>(value));
113 return *this;
114 }
116 private:
117 KeyPair m_keyPair;
118 bool m_keyPairHasBeenSet = false;
119
120 Aws::String m_publicKeyBase64;
121 bool m_publicKeyBase64HasBeenSet = false;
122
123 Aws::String m_privateKeyBase64;
124 bool m_privateKeyBase64HasBeenSet = false;
125
126 Operation m_operation;
127 bool m_operationHasBeenSet = false;
128
129 Aws::String m_requestId;
130 bool m_requestIdHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace Lightsail
135} // 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_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