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

Information about the connection.

*/ inline const Connection& GetConnection() const{ return m_connection; } /** *

Information about the connection.

*/ inline void SetConnection(const Connection& value) { m_connection = value; } /** *

Information about the connection.

*/ inline void SetConnection(Connection&& value) { m_connection = std::move(value); } /** *

Information about the connection.

*/ inline CreateConnectionResult& WithConnection(const Connection& value) { SetConnection(value); return *this;} /** *

Information about the connection.

*/ inline CreateConnectionResult& WithConnection(Connection&& value) { SetConnection(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 CreateConnectionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateConnectionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateConnectionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Connection m_connection; Aws::String m_requestId; }; } // namespace Model } // namespace NetworkManager } // namespace Aws