AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
KeyPair.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT {
20namespace Model {
21
27class KeyPair {
28 public:
29 AWS_IOT_API KeyPair() = default;
30 AWS_IOT_API KeyPair(Aws::Utils::Json::JsonView jsonValue);
33
35
38 inline const Aws::String& GetPublicKey() const { return m_publicKey; }
39 inline bool PublicKeyHasBeenSet() const { return m_publicKeyHasBeenSet; }
40 template <typename PublicKeyT = Aws::String>
41 void SetPublicKey(PublicKeyT&& value) {
42 m_publicKeyHasBeenSet = true;
43 m_publicKey = std::forward<PublicKeyT>(value);
44 }
45 template <typename PublicKeyT = Aws::String>
46 KeyPair& WithPublicKey(PublicKeyT&& value) {
47 SetPublicKey(std::forward<PublicKeyT>(value));
48 return *this;
49 }
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) {
60 m_privateKeyHasBeenSet = true;
61 m_privateKey = std::forward<PrivateKeyT>(value);
62 }
63 template <typename PrivateKeyT = Aws::String>
64 KeyPair& WithPrivateKey(PrivateKeyT&& value) {
65 SetPrivateKey(std::forward<PrivateKeyT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_publicKey;
71
72 Aws::String m_privateKey;
73 bool m_publicKeyHasBeenSet = false;
74 bool m_privateKeyHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace IoT
79} // namespace Aws
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPublicKey() const
Definition KeyPair.h:38
AWS_IOT_API KeyPair()=default
KeyPair & WithPublicKey(PublicKeyT &&value)
Definition KeyPair.h:46
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:64
const Aws::String & GetPrivateKey() const
Definition KeyPair.h:56
bool PublicKeyHasBeenSet() const
Definition KeyPair.h:39
void SetPublicKey(PublicKeyT &&value)
Definition KeyPair.h:41
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue