/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace MachineLearning { namespace Model { /** */ class GetDataSourceRequest : public MachineLearningRequest { public: AWS_MACHINELEARNING_API GetDataSourceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetDataSource"; } AWS_MACHINELEARNING_API Aws::String SerializePayload() const override; AWS_MACHINELEARNING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID assigned to the DataSource at creation.

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

The ID assigned to the DataSource at creation.

*/ inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; } /** *

The ID assigned to the DataSource at creation.

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

The ID assigned to the DataSource at creation.

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

The ID assigned to the DataSource at creation.

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

The ID assigned to the DataSource at creation.

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

The ID assigned to the DataSource at creation.

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

The ID assigned to the DataSource at creation.

*/ inline GetDataSourceRequest& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;} /** *

Specifies whether the GetDataSource operation should return * DataSourceSchema.

If true, DataSourceSchema is * returned.

If false, DataSourceSchema is not returned.

*/ inline bool GetVerbose() const{ return m_verbose; } /** *

Specifies whether the GetDataSource operation should return * DataSourceSchema.

If true, DataSourceSchema is * returned.

If false, DataSourceSchema is not returned.

*/ inline bool VerboseHasBeenSet() const { return m_verboseHasBeenSet; } /** *

Specifies whether the GetDataSource operation should return * DataSourceSchema.

If true, DataSourceSchema is * returned.

If false, DataSourceSchema is not returned.

*/ inline void SetVerbose(bool value) { m_verboseHasBeenSet = true; m_verbose = value; } /** *

Specifies whether the GetDataSource operation should return * DataSourceSchema.

If true, DataSourceSchema is * returned.

If false, DataSourceSchema is not returned.

*/ inline GetDataSourceRequest& WithVerbose(bool value) { SetVerbose(value); return *this;} private: Aws::String m_dataSourceId; bool m_dataSourceIdHasBeenSet = false; bool m_verbose; bool m_verboseHasBeenSet = false; }; } // namespace Model } // namespace MachineLearning } // namespace Aws