/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace EC2InstanceConnect { namespace Model { class SendSerialConsoleSSHPublicKeyResult { public: AWS_EC2INSTANCECONNECT_API SendSerialConsoleSSHPublicKeyResult(); AWS_EC2INSTANCECONNECT_API SendSerialConsoleSSHPublicKeyResult(const Aws::AmazonWebServiceResult& result); AWS_EC2INSTANCECONNECT_API SendSerialConsoleSSHPublicKeyResult& operator=(const Aws::AmazonWebServiceResult& result); 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 SendSerialConsoleSSHPublicKeyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline SendSerialConsoleSSHPublicKeyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline SendSerialConsoleSSHPublicKeyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} /** *

Is true if the request succeeds and an error otherwise.

*/ inline bool GetSuccess() const{ return m_success; } /** *

Is true if the request succeeds and an error otherwise.

*/ inline void SetSuccess(bool value) { m_success = value; } /** *

Is true if the request succeeds and an error otherwise.

*/ inline SendSerialConsoleSSHPublicKeyResult& WithSuccess(bool value) { SetSuccess(value); return *this;} private: Aws::String m_requestId; bool m_success; }; } // namespace Model } // namespace EC2InstanceConnect } // namespace Aws