This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

103 lines
2.8 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ec2-instance-connect/EC2InstanceConnect_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace EC2InstanceConnect
{
namespace Model
{
class AWS_EC2INSTANCECONNECT_API SendSSHPublicKeyResult
{
public:
SendSSHPublicKeyResult();
SendSSHPublicKeyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
SendSSHPublicKeyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The request ID as logged by EC2 Connect. Please provide this when contacting
* AWS Support.</p>
*/
inline const Aws::String& GetRequestId() const{ return m_requestId; }
/**
* <p>The request ID as logged by EC2 Connect. Please provide this when contacting
* AWS Support.</p>
*/
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
/**
* <p>The request ID as logged by EC2 Connect. Please provide this when contacting
* AWS Support.</p>
*/
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
/**
* <p>The request ID as logged by EC2 Connect. Please provide this when contacting
* AWS Support.</p>
*/
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
/**
* <p>The request ID as logged by EC2 Connect. Please provide this when contacting
* AWS Support.</p>
*/
inline SendSSHPublicKeyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
/**
* <p>The request ID as logged by EC2 Connect. Please provide this when contacting
* AWS Support.</p>
*/
inline SendSSHPublicKeyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
/**
* <p>The request ID as logged by EC2 Connect. Please provide this when contacting
* AWS Support.</p>
*/
inline SendSSHPublicKeyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
/**
* <p>Indicates request success.</p>
*/
inline bool GetSuccess() const{ return m_success; }
/**
* <p>Indicates request success.</p>
*/
inline void SetSuccess(bool value) { m_success = value; }
/**
* <p>Indicates request success.</p>
*/
inline SendSSHPublicKeyResult& WithSuccess(bool value) { SetSuccess(value); return *this;}
private:
Aws::String m_requestId;
bool m_success;
};
} // namespace Model
} // namespace EC2InstanceConnect
} // namespace Aws