/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Personalize { namespace Model { /** *

Describes the data source that contains the data to upload to a * dataset.

See Also:

AWS * API Reference

*/ class DataSource { public: AWS_PERSONALIZE_API DataSource(); AWS_PERSONALIZE_API DataSource(Aws::Utils::Json::JsonView jsonValue); AWS_PERSONALIZE_API DataSource& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The path to the Amazon S3 bucket where the data that you want to upload to * your dataset is stored. For example:

* s3://bucket-name/folder-name/

*/ inline const Aws::String& GetDataLocation() const{ return m_dataLocation; } /** *

The path to the Amazon S3 bucket where the data that you want to upload to * your dataset is stored. For example:

* s3://bucket-name/folder-name/

*/ inline bool DataLocationHasBeenSet() const { return m_dataLocationHasBeenSet; } /** *

The path to the Amazon S3 bucket where the data that you want to upload to * your dataset is stored. For example:

* s3://bucket-name/folder-name/

*/ inline void SetDataLocation(const Aws::String& value) { m_dataLocationHasBeenSet = true; m_dataLocation = value; } /** *

The path to the Amazon S3 bucket where the data that you want to upload to * your dataset is stored. For example:

* s3://bucket-name/folder-name/

*/ inline void SetDataLocation(Aws::String&& value) { m_dataLocationHasBeenSet = true; m_dataLocation = std::move(value); } /** *

The path to the Amazon S3 bucket where the data that you want to upload to * your dataset is stored. For example:

* s3://bucket-name/folder-name/

*/ inline void SetDataLocation(const char* value) { m_dataLocationHasBeenSet = true; m_dataLocation.assign(value); } /** *

The path to the Amazon S3 bucket where the data that you want to upload to * your dataset is stored. For example:

* s3://bucket-name/folder-name/

*/ inline DataSource& WithDataLocation(const Aws::String& value) { SetDataLocation(value); return *this;} /** *

The path to the Amazon S3 bucket where the data that you want to upload to * your dataset is stored. For example:

* s3://bucket-name/folder-name/

*/ inline DataSource& WithDataLocation(Aws::String&& value) { SetDataLocation(std::move(value)); return *this;} /** *

The path to the Amazon S3 bucket where the data that you want to upload to * your dataset is stored. For example:

* s3://bucket-name/folder-name/

*/ inline DataSource& WithDataLocation(const char* value) { SetDataLocation(value); return *this;} private: Aws::String m_dataLocation; bool m_dataLocationHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws