AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateKeyPairResult.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/KeyPair.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lightsail/model/Operation.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Lightsail
26{
27namespace Model
28{
30 {
31 public:
32 AWS_LIGHTSAIL_API CreateKeyPairResult() = default;
35
36
38
42 inline const KeyPair& GetKeyPair() const { return m_keyPair; }
43 template<typename KeyPairT = KeyPair>
44 void SetKeyPair(KeyPairT&& value) { m_keyPairHasBeenSet = true; m_keyPair = std::forward<KeyPairT>(value); }
45 template<typename KeyPairT = KeyPair>
46 CreateKeyPairResult& WithKeyPair(KeyPairT&& value) { SetKeyPair(std::forward<KeyPairT>(value)); return *this;}
48
50
53 inline const Aws::String& GetPublicKeyBase64() const { return m_publicKeyBase64; }
54 template<typename PublicKeyBase64T = Aws::String>
55 void SetPublicKeyBase64(PublicKeyBase64T&& value) { m_publicKeyBase64HasBeenSet = true; m_publicKeyBase64 = std::forward<PublicKeyBase64T>(value); }
56 template<typename PublicKeyBase64T = Aws::String>
57 CreateKeyPairResult& WithPublicKeyBase64(PublicKeyBase64T&& value) { SetPublicKeyBase64(std::forward<PublicKeyBase64T>(value)); return *this;}
59
61
64 inline const Aws::String& GetPrivateKeyBase64() const { return m_privateKeyBase64; }
65 template<typename PrivateKeyBase64T = Aws::String>
66 void SetPrivateKeyBase64(PrivateKeyBase64T&& value) { m_privateKeyBase64HasBeenSet = true; m_privateKeyBase64 = std::forward<PrivateKeyBase64T>(value); }
67 template<typename PrivateKeyBase64T = Aws::String>
68 CreateKeyPairResult& WithPrivateKeyBase64(PrivateKeyBase64T&& value) { SetPrivateKeyBase64(std::forward<PrivateKeyBase64T>(value)); return *this;}
70
72
77 inline const Operation& GetOperation() const { return m_operation; }
78 template<typename OperationT = Operation>
79 void SetOperation(OperationT&& value) { m_operationHasBeenSet = true; m_operation = std::forward<OperationT>(value); }
80 template<typename OperationT = Operation>
81 CreateKeyPairResult& WithOperation(OperationT&& value) { SetOperation(std::forward<OperationT>(value)); return *this;}
83
85
86 inline const Aws::String& GetRequestId() const { return m_requestId; }
87 template<typename RequestIdT = Aws::String>
88 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
89 template<typename RequestIdT = Aws::String>
90 CreateKeyPairResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
92 private:
93
94 KeyPair m_keyPair;
95 bool m_keyPairHasBeenSet = false;
96
97 Aws::String m_publicKeyBase64;
98 bool m_publicKeyBase64HasBeenSet = false;
99
100 Aws::String m_privateKeyBase64;
101 bool m_privateKeyBase64HasBeenSet = false;
102
103 Operation m_operation;
104 bool m_operationHasBeenSet = false;
105
106 Aws::String m_requestId;
107 bool m_requestIdHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Lightsail
112} // 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