AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename PublicKeyT = Aws::String>
47 void SetPublicKey(PublicKeyT&& value) { m_publicKeyHasBeenSet = true; m_publicKey = std::forward<PublicKeyT>(value); }
48 template<typename PublicKeyT = Aws::String>
49 KeyPair& WithPublicKey(PublicKeyT&& value) { SetPublicKey(std::forward<PublicKeyT>(value)); return *this;}
51
53
56 inline const Aws::String& GetPrivateKey() const { return m_privateKey; }
57 inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; }
58 template<typename PrivateKeyT = Aws::String>
59 void SetPrivateKey(PrivateKeyT&& value) { m_privateKeyHasBeenSet = true; m_privateKey = std::forward<PrivateKeyT>(value); }
60 template<typename PrivateKeyT = Aws::String>
61 KeyPair& WithPrivateKey(PrivateKeyT&& value) { SetPrivateKey(std::forward<PrivateKeyT>(value)); return *this;}
63 private:
64
65 Aws::String m_publicKey;
66 bool m_publicKeyHasBeenSet = false;
67
68 Aws::String m_privateKey;
69 bool m_privateKeyHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace IoT
74} // namespace Aws
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPublicKey() const
Definition KeyPair.h:44
AWS_IOT_API KeyPair()=default
KeyPair & WithPublicKey(PublicKeyT &&value)
Definition KeyPair.h:49
AWS_IOT_API KeyPair & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API KeyPair(Aws::Utils::Json::JsonView jsonValue)
bool PrivateKeyHasBeenSet() const
Definition KeyPair.h:57
void SetPrivateKey(PrivateKeyT &&value)
Definition KeyPair.h:59
KeyPair & WithPrivateKey(PrivateKeyT &&value)
Definition KeyPair.h:61
const Aws::String & GetPrivateKey() const
Definition KeyPair.h:56
bool PublicKeyHasBeenSet() const
Definition KeyPair.h:45
void SetPublicKey(PublicKeyT &&value)
Definition KeyPair.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue