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

The input configuration properties for requesting a batch translation * job.

See Also:

AWS * API Reference

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

The URI of the AWS S3 folder that contains the input file. The folder must be * in the same Region as the API endpoint you are calling.

*/ inline const Aws::String& GetS3Uri() const{ return m_s3Uri; } /** *

The URI of the AWS S3 folder that contains the input file. The folder must be * in the same Region as the API endpoint you are calling.

*/ inline bool S3UriHasBeenSet() const { return m_s3UriHasBeenSet; } /** *

The URI of the AWS S3 folder that contains the input file. The folder must be * in the same Region as the API endpoint you are calling.

*/ inline void SetS3Uri(const Aws::String& value) { m_s3UriHasBeenSet = true; m_s3Uri = value; } /** *

The URI of the AWS S3 folder that contains the input file. The folder must be * in the same Region as the API endpoint you are calling.

*/ inline void SetS3Uri(Aws::String&& value) { m_s3UriHasBeenSet = true; m_s3Uri = std::move(value); } /** *

The URI of the AWS S3 folder that contains the input file. The folder must be * in the same Region as the API endpoint you are calling.

*/ inline void SetS3Uri(const char* value) { m_s3UriHasBeenSet = true; m_s3Uri.assign(value); } /** *

The URI of the AWS S3 folder that contains the input file. The folder must be * in the same Region as the API endpoint you are calling.

*/ inline InputDataConfig& WithS3Uri(const Aws::String& value) { SetS3Uri(value); return *this;} /** *

The URI of the AWS S3 folder that contains the input file. The folder must be * in the same Region as the API endpoint you are calling.

*/ inline InputDataConfig& WithS3Uri(Aws::String&& value) { SetS3Uri(std::move(value)); return *this;} /** *

The URI of the AWS S3 folder that contains the input file. The folder must be * in the same Region as the API endpoint you are calling.

*/ inline InputDataConfig& WithS3Uri(const char* value) { SetS3Uri(value); return *this;} /** *

The multipurpose internet mail extension (MIME) type of the input files. * Valid values are text/plain for plaintext files and * text/html for HTML files.

*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *

The multipurpose internet mail extension (MIME) type of the input files. * Valid values are text/plain for plaintext files and * text/html for HTML files.

*/ inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } /** *

The multipurpose internet mail extension (MIME) type of the input files. * Valid values are text/plain for plaintext files and * text/html for HTML files.

*/ inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } /** *

The multipurpose internet mail extension (MIME) type of the input files. * Valid values are text/plain for plaintext files and * text/html for HTML files.

*/ inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } /** *

The multipurpose internet mail extension (MIME) type of the input files. * Valid values are text/plain for plaintext files and * text/html for HTML files.

*/ inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); } /** *

The multipurpose internet mail extension (MIME) type of the input files. * Valid values are text/plain for plaintext files and * text/html for HTML files.

*/ inline InputDataConfig& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *

The multipurpose internet mail extension (MIME) type of the input files. * Valid values are text/plain for plaintext files and * text/html for HTML files.

*/ inline InputDataConfig& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *

The multipurpose internet mail extension (MIME) type of the input files. * Valid values are text/plain for plaintext files and * text/html for HTML files.

*/ inline InputDataConfig& WithContentType(const char* value) { SetContentType(value); return *this;} private: Aws::String m_s3Uri; bool m_s3UriHasBeenSet; Aws::String m_contentType; bool m_contentTypeHasBeenSet; }; } // namespace Model } // namespace Translate } // namespace Aws