/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Lightsail { namespace Model { class CreateKeyPairResult { public: AWS_LIGHTSAIL_API CreateKeyPairResult(); AWS_LIGHTSAIL_API CreateKeyPairResult(const Aws::AmazonWebServiceResult& result); AWS_LIGHTSAIL_API CreateKeyPairResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of key-value pairs containing information about the new key pair you * just created.

*/ inline const KeyPair& GetKeyPair() const{ return m_keyPair; } /** *

An array of key-value pairs containing information about the new key pair you * just created.

*/ inline void SetKeyPair(const KeyPair& value) { m_keyPair = value; } /** *

An array of key-value pairs containing information about the new key pair you * just created.

*/ inline void SetKeyPair(KeyPair&& value) { m_keyPair = std::move(value); } /** *

An array of key-value pairs containing information about the new key pair you * just created.

*/ inline CreateKeyPairResult& WithKeyPair(const KeyPair& value) { SetKeyPair(value); return *this;} /** *

An array of key-value pairs containing information about the new key pair you * just created.

*/ inline CreateKeyPairResult& WithKeyPair(KeyPair&& value) { SetKeyPair(std::move(value)); return *this;} /** *

A base64-encoded public key of the ssh-rsa type.

*/ inline const Aws::String& GetPublicKeyBase64() const{ return m_publicKeyBase64; } /** *

A base64-encoded public key of the ssh-rsa type.

*/ inline void SetPublicKeyBase64(const Aws::String& value) { m_publicKeyBase64 = value; } /** *

A base64-encoded public key of the ssh-rsa type.

*/ inline void SetPublicKeyBase64(Aws::String&& value) { m_publicKeyBase64 = std::move(value); } /** *

A base64-encoded public key of the ssh-rsa type.

*/ inline void SetPublicKeyBase64(const char* value) { m_publicKeyBase64.assign(value); } /** *

A base64-encoded public key of the ssh-rsa type.

*/ inline CreateKeyPairResult& WithPublicKeyBase64(const Aws::String& value) { SetPublicKeyBase64(value); return *this;} /** *

A base64-encoded public key of the ssh-rsa type.

*/ inline CreateKeyPairResult& WithPublicKeyBase64(Aws::String&& value) { SetPublicKeyBase64(std::move(value)); return *this;} /** *

A base64-encoded public key of the ssh-rsa type.

*/ inline CreateKeyPairResult& WithPublicKeyBase64(const char* value) { SetPublicKeyBase64(value); return *this;} /** *

A base64-encoded RSA private key.

*/ inline const Aws::String& GetPrivateKeyBase64() const{ return m_privateKeyBase64; } /** *

A base64-encoded RSA private key.

*/ inline void SetPrivateKeyBase64(const Aws::String& value) { m_privateKeyBase64 = value; } /** *

A base64-encoded RSA private key.

*/ inline void SetPrivateKeyBase64(Aws::String&& value) { m_privateKeyBase64 = std::move(value); } /** *

A base64-encoded RSA private key.

*/ inline void SetPrivateKeyBase64(const char* value) { m_privateKeyBase64.assign(value); } /** *

A base64-encoded RSA private key.

*/ inline CreateKeyPairResult& WithPrivateKeyBase64(const Aws::String& value) { SetPrivateKeyBase64(value); return *this;} /** *

A base64-encoded RSA private key.

*/ inline CreateKeyPairResult& WithPrivateKeyBase64(Aws::String&& value) { SetPrivateKeyBase64(std::move(value)); return *this;} /** *

A base64-encoded RSA private key.

*/ inline CreateKeyPairResult& WithPrivateKeyBase64(const char* value) { SetPrivateKeyBase64(value); return *this;} /** *

An array of objects that describe the result of the action, such as the * status of the request, the timestamp of the request, and the resources affected * by the request.

*/ inline const Operation& GetOperation() const{ return m_operation; } /** *

An array of objects that describe the result of the action, such as the * status of the request, the timestamp of the request, and the resources affected * by the request.

*/ inline void SetOperation(const Operation& value) { m_operation = value; } /** *

An array of objects that describe the result of the action, such as the * status of the request, the timestamp of the request, and the resources affected * by the request.

*/ inline void SetOperation(Operation&& value) { m_operation = std::move(value); } /** *

An array of objects that describe the result of the action, such as the * status of the request, the timestamp of the request, and the resources affected * by the request.

*/ inline CreateKeyPairResult& WithOperation(const Operation& value) { SetOperation(value); return *this;} /** *

An array of objects that describe the result of the action, such as the * status of the request, the timestamp of the request, and the resources affected * by the request.

*/ inline CreateKeyPairResult& WithOperation(Operation&& value) { SetOperation(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateKeyPairResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateKeyPairResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateKeyPairResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: KeyPair m_keyPair; Aws::String m_publicKeyBase64; Aws::String m_privateKeyBase64; Operation m_operation; Aws::String m_requestId; }; } // namespace Model } // namespace Lightsail } // namespace Aws