/** * 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 CodeStarconnections { namespace Model { class AWS_CODESTARCONNECTIONS_API GetConnectionResult { public: GetConnectionResult(); GetConnectionResult(const Aws::AmazonWebServiceResult& result); GetConnectionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The connection details, such as status, owner, and provider type.

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

The connection details, such as status, owner, and provider type.

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

The connection details, such as status, owner, and provider type.

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

The connection details, such as status, owner, and provider type.

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

The connection details, such as status, owner, and provider type.

*/ inline GetConnectionResult& WithConnection(Connection&& value) { SetConnection(std::move(value)); return *this;} private: Connection m_connection; }; } // namespace Model } // namespace CodeStarconnections } // namespace Aws