/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SESV2 { namespace Model { /** *

An object that contains details about the data source of the import * job.

See Also:

AWS * API Reference

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

An Amazon S3 URL in the format * s3://<bucket_name>/<object>.

*/ inline const Aws::String& GetS3Url() const{ return m_s3Url; } /** *

An Amazon S3 URL in the format * s3://<bucket_name>/<object>.

*/ inline bool S3UrlHasBeenSet() const { return m_s3UrlHasBeenSet; } /** *

An Amazon S3 URL in the format * s3://<bucket_name>/<object>.

*/ inline void SetS3Url(const Aws::String& value) { m_s3UrlHasBeenSet = true; m_s3Url = value; } /** *

An Amazon S3 URL in the format * s3://<bucket_name>/<object>.

*/ inline void SetS3Url(Aws::String&& value) { m_s3UrlHasBeenSet = true; m_s3Url = std::move(value); } /** *

An Amazon S3 URL in the format * s3://<bucket_name>/<object>.

*/ inline void SetS3Url(const char* value) { m_s3UrlHasBeenSet = true; m_s3Url.assign(value); } /** *

An Amazon S3 URL in the format * s3://<bucket_name>/<object>.

*/ inline ImportDataSource& WithS3Url(const Aws::String& value) { SetS3Url(value); return *this;} /** *

An Amazon S3 URL in the format * s3://<bucket_name>/<object>.

*/ inline ImportDataSource& WithS3Url(Aws::String&& value) { SetS3Url(std::move(value)); return *this;} /** *

An Amazon S3 URL in the format * s3://<bucket_name>/<object>.

*/ inline ImportDataSource& WithS3Url(const char* value) { SetS3Url(value); return *this;} /** *

The data format of the import job's data source.

*/ inline const DataFormat& GetDataFormat() const{ return m_dataFormat; } /** *

The data format of the import job's data source.

*/ inline bool DataFormatHasBeenSet() const { return m_dataFormatHasBeenSet; } /** *

The data format of the import job's data source.

*/ inline void SetDataFormat(const DataFormat& value) { m_dataFormatHasBeenSet = true; m_dataFormat = value; } /** *

The data format of the import job's data source.

*/ inline void SetDataFormat(DataFormat&& value) { m_dataFormatHasBeenSet = true; m_dataFormat = std::move(value); } /** *

The data format of the import job's data source.

*/ inline ImportDataSource& WithDataFormat(const DataFormat& value) { SetDataFormat(value); return *this;} /** *

The data format of the import job's data source.

*/ inline ImportDataSource& WithDataFormat(DataFormat&& value) { SetDataFormat(std::move(value)); return *this;} private: Aws::String m_s3Url; bool m_s3UrlHasBeenSet = false; DataFormat m_dataFormat; bool m_dataFormatHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws