AWS SDK for C++  1.9.21
AWS SDK for C++
CreateKeyPairResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace Lightsail
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const KeyPair& GetKeyPair() const{ return m_keyPair; }
42 
47  inline void SetKeyPair(const KeyPair& value) { m_keyPair = value; }
48 
53  inline void SetKeyPair(KeyPair&& value) { m_keyPair = std::move(value); }
54 
59  inline CreateKeyPairResult& WithKeyPair(const KeyPair& value) { SetKeyPair(value); return *this;}
60 
65  inline CreateKeyPairResult& WithKeyPair(KeyPair&& value) { SetKeyPair(std::move(value)); return *this;}
66 
67 
71  inline const Aws::String& GetPublicKeyBase64() const{ return m_publicKeyBase64; }
72 
76  inline void SetPublicKeyBase64(const Aws::String& value) { m_publicKeyBase64 = value; }
77 
81  inline void SetPublicKeyBase64(Aws::String&& value) { m_publicKeyBase64 = std::move(value); }
82 
86  inline void SetPublicKeyBase64(const char* value) { m_publicKeyBase64.assign(value); }
87 
91  inline CreateKeyPairResult& WithPublicKeyBase64(const Aws::String& value) { SetPublicKeyBase64(value); return *this;}
92 
96  inline CreateKeyPairResult& WithPublicKeyBase64(Aws::String&& value) { SetPublicKeyBase64(std::move(value)); return *this;}
97 
101  inline CreateKeyPairResult& WithPublicKeyBase64(const char* value) { SetPublicKeyBase64(value); return *this;}
102 
103 
107  inline const Aws::String& GetPrivateKeyBase64() const{ return m_privateKeyBase64; }
108 
112  inline void SetPrivateKeyBase64(const Aws::String& value) { m_privateKeyBase64 = value; }
113 
117  inline void SetPrivateKeyBase64(Aws::String&& value) { m_privateKeyBase64 = std::move(value); }
118 
122  inline void SetPrivateKeyBase64(const char* value) { m_privateKeyBase64.assign(value); }
123 
127  inline CreateKeyPairResult& WithPrivateKeyBase64(const Aws::String& value) { SetPrivateKeyBase64(value); return *this;}
128 
132  inline CreateKeyPairResult& WithPrivateKeyBase64(Aws::String&& value) { SetPrivateKeyBase64(std::move(value)); return *this;}
133 
137  inline CreateKeyPairResult& WithPrivateKeyBase64(const char* value) { SetPrivateKeyBase64(value); return *this;}
138 
139 
145  inline const Operation& GetOperation() const{ return m_operation; }
146 
152  inline void SetOperation(const Operation& value) { m_operation = value; }
153 
159  inline void SetOperation(Operation&& value) { m_operation = std::move(value); }
160 
166  inline CreateKeyPairResult& WithOperation(const Operation& value) { SetOperation(value); return *this;}
167 
173  inline CreateKeyPairResult& WithOperation(Operation&& value) { SetOperation(std::move(value)); return *this;}
174 
175  private:
176 
177  KeyPair m_keyPair;
178 
179  Aws::String m_publicKeyBase64;
180 
181  Aws::String m_privateKeyBase64;
182 
183  Operation m_operation;
184  };
185 
186 } // namespace Model
187 } // namespace Lightsail
188 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::CreateKeyPairResult::WithPublicKeyBase64
CreateKeyPairResult & WithPublicKeyBase64(const Aws::String &value)
Definition: CreateKeyPairResult.h:91
Aws::Lightsail::Model::CreateKeyPairResult::SetKeyPair
void SetKeyPair(KeyPair &&value)
Definition: CreateKeyPairResult.h:53
Aws::Lightsail::Model::CreateKeyPairResult::WithPublicKeyBase64
CreateKeyPairResult & WithPublicKeyBase64(const char *value)
Definition: CreateKeyPairResult.h:101
Aws::Lightsail::Model::Operation
Definition: Operation.h:37
Aws::Lightsail::Model::CreateKeyPairResult::WithPublicKeyBase64
CreateKeyPairResult & WithPublicKeyBase64(Aws::String &&value)
Definition: CreateKeyPairResult.h:96
Aws::Lightsail::Model::KeyPair
Definition: KeyPair.h:37
Aws::Lightsail::Model::CreateKeyPairResult::WithKeyPair
CreateKeyPairResult & WithKeyPair(KeyPair &&value)
Definition: CreateKeyPairResult.h:65
Aws::Lightsail::Model::CreateKeyPairResult::WithPrivateKeyBase64
CreateKeyPairResult & WithPrivateKeyBase64(const char *value)
Definition: CreateKeyPairResult.h:137
Aws::Lightsail::Model::CreateKeyPairResult::CreateKeyPairResult
CreateKeyPairResult()
Aws::Lightsail::Model::CreateKeyPairResult::operator=
CreateKeyPairResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::CreateKeyPairResult::SetPublicKeyBase64
void SetPublicKeyBase64(const Aws::String &value)
Definition: CreateKeyPairResult.h:76
Aws::Lightsail::Model::CreateKeyPairResult::GetPrivateKeyBase64
const Aws::String & GetPrivateKeyBase64() const
Definition: CreateKeyPairResult.h:107
Aws::Lightsail::Model::CreateKeyPairResult::WithKeyPair
CreateKeyPairResult & WithKeyPair(const KeyPair &value)
Definition: CreateKeyPairResult.h:59
Aws::Lightsail::Model::CreateKeyPairResult::WithOperation
CreateKeyPairResult & WithOperation(const Operation &value)
Definition: CreateKeyPairResult.h:166
Aws::Lightsail::Model::CreateKeyPairResult::SetPrivateKeyBase64
void SetPrivateKeyBase64(const char *value)
Definition: CreateKeyPairResult.h:122
Aws::Lightsail::Model::CreateKeyPairResult::SetPublicKeyBase64
void SetPublicKeyBase64(Aws::String &&value)
Definition: CreateKeyPairResult.h:81
Aws::Lightsail::Model::CreateKeyPairResult::SetKeyPair
void SetKeyPair(const KeyPair &value)
Definition: CreateKeyPairResult.h:47
AWSString.h
Aws::Lightsail::Model::CreateKeyPairResult::SetPrivateKeyBase64
void SetPrivateKeyBase64(Aws::String &&value)
Definition: CreateKeyPairResult.h:117
Aws::Lightsail::Model::CreateKeyPairResult::SetPublicKeyBase64
void SetPublicKeyBase64(const char *value)
Definition: CreateKeyPairResult.h:86
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CreateKeyPairResult::GetPublicKeyBase64
const Aws::String & GetPublicKeyBase64() const
Definition: CreateKeyPairResult.h:71
KeyPair.h
Aws::Lightsail::Model::CreateKeyPairResult::GetOperation
const Operation & GetOperation() const
Definition: CreateKeyPairResult.h:145
Aws::Lightsail::Model::CreateKeyPairResult::WithPrivateKeyBase64
CreateKeyPairResult & WithPrivateKeyBase64(Aws::String &&value)
Definition: CreateKeyPairResult.h:132
Aws::Lightsail::Model::CreateKeyPairResult::GetKeyPair
const KeyPair & GetKeyPair() const
Definition: CreateKeyPairResult.h:41
Aws::Lightsail::Model::CreateKeyPairResult::CreateKeyPairResult
CreateKeyPairResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::CreateKeyPairResult::SetOperation
void SetOperation(Operation &&value)
Definition: CreateKeyPairResult.h:159
Aws::Lightsail::Model::CreateKeyPairResult
Definition: CreateKeyPairResult.h:30
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::CreateKeyPairResult::SetPrivateKeyBase64
void SetPrivateKeyBase64(const Aws::String &value)
Definition: CreateKeyPairResult.h:112
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::CreateKeyPairResult::WithPrivateKeyBase64
CreateKeyPairResult & WithPrivateKeyBase64(const Aws::String &value)
Definition: CreateKeyPairResult.h:127
Aws::Lightsail::Model::CreateKeyPairResult::WithOperation
CreateKeyPairResult & WithOperation(Operation &&value)
Definition: CreateKeyPairResult.h:173
Operation.h
Aws::Lightsail::Model::CreateKeyPairResult::SetOperation
void SetOperation(const Operation &value)
Definition: CreateKeyPairResult.h:152