AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
35
36
38
42 inline const KeyPair& GetKeyPair() const{ return m_keyPair; }
43 inline void SetKeyPair(const KeyPair& value) { m_keyPair = value; }
44 inline void SetKeyPair(KeyPair&& value) { m_keyPair = std::move(value); }
45 inline CreateKeyPairResult& WithKeyPair(const KeyPair& value) { SetKeyPair(value); return *this;}
46 inline CreateKeyPairResult& WithKeyPair(KeyPair&& value) { SetKeyPair(std::move(value)); return *this;}
48
50
53 inline const Aws::String& GetPublicKeyBase64() const{ return m_publicKeyBase64; }
54 inline void SetPublicKeyBase64(const Aws::String& value) { m_publicKeyBase64 = value; }
55 inline void SetPublicKeyBase64(Aws::String&& value) { m_publicKeyBase64 = std::move(value); }
56 inline void SetPublicKeyBase64(const char* value) { m_publicKeyBase64.assign(value); }
57 inline CreateKeyPairResult& WithPublicKeyBase64(const Aws::String& value) { SetPublicKeyBase64(value); return *this;}
58 inline CreateKeyPairResult& WithPublicKeyBase64(Aws::String&& value) { SetPublicKeyBase64(std::move(value)); return *this;}
59 inline CreateKeyPairResult& WithPublicKeyBase64(const char* value) { SetPublicKeyBase64(value); return *this;}
61
63
66 inline const Aws::String& GetPrivateKeyBase64() const{ return m_privateKeyBase64; }
67 inline void SetPrivateKeyBase64(const Aws::String& value) { m_privateKeyBase64 = value; }
68 inline void SetPrivateKeyBase64(Aws::String&& value) { m_privateKeyBase64 = std::move(value); }
69 inline void SetPrivateKeyBase64(const char* value) { m_privateKeyBase64.assign(value); }
70 inline CreateKeyPairResult& WithPrivateKeyBase64(const Aws::String& value) { SetPrivateKeyBase64(value); return *this;}
71 inline CreateKeyPairResult& WithPrivateKeyBase64(Aws::String&& value) { SetPrivateKeyBase64(std::move(value)); return *this;}
72 inline CreateKeyPairResult& WithPrivateKeyBase64(const char* value) { SetPrivateKeyBase64(value); return *this;}
74
76
81 inline const Operation& GetOperation() const{ return m_operation; }
82 inline void SetOperation(const Operation& value) { m_operation = value; }
83 inline void SetOperation(Operation&& value) { m_operation = std::move(value); }
84 inline CreateKeyPairResult& WithOperation(const Operation& value) { SetOperation(value); return *this;}
85 inline CreateKeyPairResult& WithOperation(Operation&& value) { SetOperation(std::move(value)); return *this;}
87
89
90 inline const Aws::String& GetRequestId() const{ return m_requestId; }
91 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
92 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
93 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
94 inline CreateKeyPairResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
95 inline CreateKeyPairResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
96 inline CreateKeyPairResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
98 private:
99
100 KeyPair m_keyPair;
101
102 Aws::String m_publicKeyBase64;
103
104 Aws::String m_privateKeyBase64;
105
106 Operation m_operation;
107
108 Aws::String m_requestId;
109 };
110
111} // namespace Model
112} // namespace Lightsail
113} // namespace Aws
CreateKeyPairResult & WithKeyPair(const KeyPair &value)
CreateKeyPairResult & WithPublicKeyBase64(const char *value)
CreateKeyPairResult & WithPublicKeyBase64(const Aws::String &value)
const Aws::String & GetPrivateKeyBase64() const
CreateKeyPairResult & WithPrivateKeyBase64(const char *value)
CreateKeyPairResult & WithRequestId(const char *value)
CreateKeyPairResult & WithOperation(const Operation &value)
CreateKeyPairResult & WithPrivateKeyBase64(Aws::String &&value)
void SetPrivateKeyBase64(const Aws::String &value)
CreateKeyPairResult & WithRequestId(Aws::String &&value)
void SetPublicKeyBase64(const Aws::String &value)
AWS_LIGHTSAIL_API CreateKeyPairResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRequestId(const Aws::String &value)
CreateKeyPairResult & WithPrivateKeyBase64(const Aws::String &value)
CreateKeyPairResult & WithOperation(Operation &&value)
CreateKeyPairResult & WithKeyPair(KeyPair &&value)
CreateKeyPairResult & WithRequestId(const Aws::String &value)
AWS_LIGHTSAIL_API CreateKeyPairResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateKeyPairResult & WithPublicKeyBase64(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue