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

The DataSource object.

*/ inline const DataSource& GetDataSource() const{ return m_dataSource; } /** *

The DataSource object.

*/ inline void SetDataSource(const DataSource& value) { m_dataSource = value; } /** *

The DataSource object.

*/ inline void SetDataSource(DataSource&& value) { m_dataSource = std::move(value); } /** *

The DataSource object.

*/ inline GetDataSourceResult& WithDataSource(const DataSource& value) { SetDataSource(value); return *this;} /** *

The DataSource object.

*/ inline GetDataSourceResult& WithDataSource(DataSource&& value) { SetDataSource(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 GetDataSourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetDataSourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetDataSourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: DataSource m_dataSource; Aws::String m_requestId; }; } // namespace Model } // namespace AppSync } // namespace Aws