AWS SDK for C++  1.9.132
AWS SDK for C++
KeyPair.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetPublicKey() const{ return m_publicKey; }
44 
48  inline bool PublicKeyHasBeenSet() const { return m_publicKeyHasBeenSet; }
49 
53  inline void SetPublicKey(const Aws::String& value) { m_publicKeyHasBeenSet = true; m_publicKey = value; }
54 
58  inline void SetPublicKey(Aws::String&& value) { m_publicKeyHasBeenSet = true; m_publicKey = std::move(value); }
59 
63  inline void SetPublicKey(const char* value) { m_publicKeyHasBeenSet = true; m_publicKey.assign(value); }
64 
68  inline KeyPair& WithPublicKey(const Aws::String& value) { SetPublicKey(value); return *this;}
69 
73  inline KeyPair& WithPublicKey(Aws::String&& value) { SetPublicKey(std::move(value)); return *this;}
74 
78  inline KeyPair& WithPublicKey(const char* value) { SetPublicKey(value); return *this;}
79 
80 
84  inline const Aws::String& GetPrivateKey() const{ return m_privateKey; }
85 
89  inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; }
90 
94  inline void SetPrivateKey(const Aws::String& value) { m_privateKeyHasBeenSet = true; m_privateKey = value; }
95 
99  inline void SetPrivateKey(Aws::String&& value) { m_privateKeyHasBeenSet = true; m_privateKey = std::move(value); }
100 
104  inline void SetPrivateKey(const char* value) { m_privateKeyHasBeenSet = true; m_privateKey.assign(value); }
105 
109  inline KeyPair& WithPrivateKey(const Aws::String& value) { SetPrivateKey(value); return *this;}
110 
114  inline KeyPair& WithPrivateKey(Aws::String&& value) { SetPrivateKey(std::move(value)); return *this;}
115 
119  inline KeyPair& WithPrivateKey(const char* value) { SetPrivateKey(value); return *this;}
120 
121  private:
122 
123  Aws::String m_publicKey;
124  bool m_publicKeyHasBeenSet;
125 
126  Aws::String m_privateKey;
127  bool m_privateKeyHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace IoT
132 } // namespace Aws
Aws::IoT::Model::KeyPair::PrivateKeyHasBeenSet
bool PrivateKeyHasBeenSet() const
Definition: KeyPair.h:89
Aws::IoT::Model::KeyPair::KeyPair
KeyPair(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::KeyPair::SetPublicKey
void SetPublicKey(Aws::String &&value)
Definition: KeyPair.h:58
Aws::IoT::Model::KeyPair::WithPublicKey
KeyPair & WithPublicKey(const char *value)
Definition: KeyPair.h:78
Aws::IoT::Model::KeyPair::PublicKeyHasBeenSet
bool PublicKeyHasBeenSet() const
Definition: KeyPair.h:48
Aws::IoT::Model::KeyPair::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::KeyPair::SetPublicKey
void SetPublicKey(const char *value)
Definition: KeyPair.h:63
Aws::IoT::Model::KeyPair::WithPrivateKey
KeyPair & WithPrivateKey(Aws::String &&value)
Definition: KeyPair.h:114
Aws::IoT::Model::KeyPair::operator=
KeyPair & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::KeyPair::WithPublicKey
KeyPair & WithPublicKey(const Aws::String &value)
Definition: KeyPair.h:68
Aws::IoT::Model::KeyPair
Definition: KeyPair.h:32
Aws::IoT::Model::KeyPair::WithPrivateKey
KeyPair & WithPrivateKey(const char *value)
Definition: KeyPair.h:119
Aws::IoT::Model::KeyPair::WithPrivateKey
KeyPair & WithPrivateKey(const Aws::String &value)
Definition: KeyPair.h:109
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::KeyPair::SetPrivateKey
void SetPrivateKey(const Aws::String &value)
Definition: KeyPair.h:94
Aws::IoT::Model::KeyPair::SetPrivateKey
void SetPrivateKey(const char *value)
Definition: KeyPair.h:104
Aws::IoT::Model::KeyPair::GetPrivateKey
const Aws::String & GetPrivateKey() const
Definition: KeyPair.h:84
Aws::IoT::Model::KeyPair::KeyPair
KeyPair()
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::KeyPair::SetPublicKey
void SetPublicKey(const Aws::String &value)
Definition: KeyPair.h:53
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::KeyPair::WithPublicKey
KeyPair & WithPublicKey(Aws::String &&value)
Definition: KeyPair.h:73
Aws::IoT::Model::KeyPair::SetPrivateKey
void SetPrivateKey(Aws::String &&value)
Definition: KeyPair.h:99
Aws::IoT::Model::KeyPair::GetPublicKey
const Aws::String & GetPublicKey() const
Definition: KeyPair.h:43
IoT_EXPORTS.h