AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KeyPair.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT
22{
23namespace Model
24{
25
31 class KeyPair
32 {
33 public:
34 AWS_IOT_API KeyPair();
35 AWS_IOT_API KeyPair(Aws::Utils::Json::JsonView jsonValue);
38
39
41
44 inline const Aws::String& GetPublicKey() const{ return m_publicKey; }
45 inline bool PublicKeyHasBeenSet() const { return m_publicKeyHasBeenSet; }
46 inline void SetPublicKey(const Aws::String& value) { m_publicKeyHasBeenSet = true; m_publicKey = value; }
47 inline void SetPublicKey(Aws::String&& value) { m_publicKeyHasBeenSet = true; m_publicKey = std::move(value); }
48 inline void SetPublicKey(const char* value) { m_publicKeyHasBeenSet = true; m_publicKey.assign(value); }
49 inline KeyPair& WithPublicKey(const Aws::String& value) { SetPublicKey(value); return *this;}
50 inline KeyPair& WithPublicKey(Aws::String&& value) { SetPublicKey(std::move(value)); return *this;}
51 inline KeyPair& WithPublicKey(const char* value) { SetPublicKey(value); return *this;}
53
55
58 inline const Aws::String& GetPrivateKey() const{ return m_privateKey; }
59 inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; }
60 inline void SetPrivateKey(const Aws::String& value) { m_privateKeyHasBeenSet = true; m_privateKey = value; }
61 inline void SetPrivateKey(Aws::String&& value) { m_privateKeyHasBeenSet = true; m_privateKey = std::move(value); }
62 inline void SetPrivateKey(const char* value) { m_privateKeyHasBeenSet = true; m_privateKey.assign(value); }
63 inline KeyPair& WithPrivateKey(const Aws::String& value) { SetPrivateKey(value); return *this;}
64 inline KeyPair& WithPrivateKey(Aws::String&& value) { SetPrivateKey(std::move(value)); return *this;}
65 inline KeyPair& WithPrivateKey(const char* value) { SetPrivateKey(value); return *this;}
67 private:
68
69 Aws::String m_publicKey;
70 bool m_publicKeyHasBeenSet = false;
71
72 Aws::String m_privateKey;
73 bool m_privateKeyHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace IoT
78} // namespace Aws
void SetPublicKey(const Aws::String &value)
Definition KeyPair.h:46
void SetPrivateKey(Aws::String &&value)
Definition KeyPair.h:61
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPrivateKey(const char *value)
Definition KeyPair.h:62
const Aws::String & GetPublicKey() const
Definition KeyPair.h:44
KeyPair & WithPrivateKey(const char *value)
Definition KeyPair.h:65
void SetPrivateKey(const Aws::String &value)
Definition KeyPair.h:60
AWS_IOT_API KeyPair & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API KeyPair(Aws::Utils::Json::JsonView jsonValue)
KeyPair & WithPrivateKey(Aws::String &&value)
Definition KeyPair.h:64
bool PrivateKeyHasBeenSet() const
Definition KeyPair.h:59
KeyPair & WithPublicKey(Aws::String &&value)
Definition KeyPair.h:50
KeyPair & WithPrivateKey(const Aws::String &value)
Definition KeyPair.h:63
const Aws::String & GetPrivateKey() const
Definition KeyPair.h:58
KeyPair & WithPublicKey(const char *value)
Definition KeyPair.h:51
void SetPublicKey(const char *value)
Definition KeyPair.h:48
bool PublicKeyHasBeenSet() const
Definition KeyPair.h:45
KeyPair & WithPublicKey(const Aws::String &value)
Definition KeyPair.h:49
void SetPublicKey(Aws::String &&value)
Definition KeyPair.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue