/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoT { namespace Model { /** *

Describes a key pair.

See Also:

AWS API * Reference

*/ class KeyPair { public: AWS_IOT_API KeyPair(); AWS_IOT_API KeyPair(Aws::Utils::Json::JsonView jsonValue); AWS_IOT_API KeyPair& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The public key.

*/ inline const Aws::String& GetPublicKey() const{ return m_publicKey; } /** *

The public key.

*/ inline bool PublicKeyHasBeenSet() const { return m_publicKeyHasBeenSet; } /** *

The public key.

*/ inline void SetPublicKey(const Aws::String& value) { m_publicKeyHasBeenSet = true; m_publicKey = value; } /** *

The public key.

*/ inline void SetPublicKey(Aws::String&& value) { m_publicKeyHasBeenSet = true; m_publicKey = std::move(value); } /** *

The public key.

*/ inline void SetPublicKey(const char* value) { m_publicKeyHasBeenSet = true; m_publicKey.assign(value); } /** *

The public key.

*/ inline KeyPair& WithPublicKey(const Aws::String& value) { SetPublicKey(value); return *this;} /** *

The public key.

*/ inline KeyPair& WithPublicKey(Aws::String&& value) { SetPublicKey(std::move(value)); return *this;} /** *

The public key.

*/ inline KeyPair& WithPublicKey(const char* value) { SetPublicKey(value); return *this;} /** *

The private key.

*/ inline const Aws::String& GetPrivateKey() const{ return m_privateKey; } /** *

The private key.

*/ inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; } /** *

The private key.

*/ inline void SetPrivateKey(const Aws::String& value) { m_privateKeyHasBeenSet = true; m_privateKey = value; } /** *

The private key.

*/ inline void SetPrivateKey(Aws::String&& value) { m_privateKeyHasBeenSet = true; m_privateKey = std::move(value); } /** *

The private key.

*/ inline void SetPrivateKey(const char* value) { m_privateKeyHasBeenSet = true; m_privateKey.assign(value); } /** *

The private key.

*/ inline KeyPair& WithPrivateKey(const Aws::String& value) { SetPrivateKey(value); return *this;} /** *

The private key.

*/ inline KeyPair& WithPrivateKey(Aws::String&& value) { SetPrivateKey(std::move(value)); return *this;} /** *

The private key.

*/ inline KeyPair& WithPrivateKey(const char* value) { SetPrivateKey(value); return *this;} private: Aws::String m_publicKey; bool m_publicKeyHasBeenSet = false; Aws::String m_privateKey; bool m_privateKeyHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws