/** * 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 MachineLearning { namespace Model { /** *

Represents the output of a CreateDataSourceFromRedshift * operation, and is an acknowledgement that Amazon ML received the request.

*

The CreateDataSourceFromRedshift operation is asynchronous. You * can poll for updates by using the GetBatchPrediction operation and * checking the Status parameter.

See Also:

AWS * API Reference

*/ class CreateDataSourceFromRedshiftResult { public: AWS_MACHINELEARNING_API CreateDataSourceFromRedshiftResult(); AWS_MACHINELEARNING_API CreateDataSourceFromRedshiftResult(const Aws::AmazonWebServiceResult& result); AWS_MACHINELEARNING_API CreateDataSourceFromRedshiftResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A user-supplied ID that uniquely identifies the datasource. This value should * be identical to the value of the DataSourceID in the request.

*/ inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; } /** *

A user-supplied ID that uniquely identifies the datasource. This value should * be identical to the value of the DataSourceID in the request.

*/ inline void SetDataSourceId(const Aws::String& value) { m_dataSourceId = value; } /** *

A user-supplied ID that uniquely identifies the datasource. This value should * be identical to the value of the DataSourceID in the request.

*/ inline void SetDataSourceId(Aws::String&& value) { m_dataSourceId = std::move(value); } /** *

A user-supplied ID that uniquely identifies the datasource. This value should * be identical to the value of the DataSourceID in the request.

*/ inline void SetDataSourceId(const char* value) { m_dataSourceId.assign(value); } /** *

A user-supplied ID that uniquely identifies the datasource. This value should * be identical to the value of the DataSourceID in the request.

*/ inline CreateDataSourceFromRedshiftResult& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;} /** *

A user-supplied ID that uniquely identifies the datasource. This value should * be identical to the value of the DataSourceID in the request.

*/ inline CreateDataSourceFromRedshiftResult& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;} /** *

A user-supplied ID that uniquely identifies the datasource. This value should * be identical to the value of the DataSourceID in the request.

*/ inline CreateDataSourceFromRedshiftResult& WithDataSourceId(const char* value) { SetDataSourceId(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 CreateDataSourceFromRedshiftResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateDataSourceFromRedshiftResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateDataSourceFromRedshiftResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_dataSourceId; Aws::String m_requestId; }; } // namespace Model } // namespace MachineLearning } // namespace Aws