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

Information about a data source.

See Also:

AWS * API Reference

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

The name of the data source.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the data source.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the data source.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the data source.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the data source.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the data source.

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

The name of the data source.

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

The name of the data source.

*/ inline DataSource& WithName(const char* value) { SetName(value); return *this;} /** *

The S3 bucket where the data files are located.

*/ inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; } /** *

The S3 bucket where the data files are located.

*/ inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; } /** *

The S3 bucket where the data files are located.

*/ inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; } /** *

The S3 bucket where the data files are located.

*/ inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); } /** *

The S3 bucket where the data files are located.

*/ inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); } /** *

The S3 bucket where the data files are located.

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

The S3 bucket where the data files are located.

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

The S3 bucket where the data files are located.

*/ inline DataSource& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;} /** *

The list of S3 keys identifying the data source files.

*/ inline const Aws::Vector& GetS3Keys() const{ return m_s3Keys; } /** *

The list of S3 keys identifying the data source files.

*/ inline bool S3KeysHasBeenSet() const { return m_s3KeysHasBeenSet; } /** *

The list of S3 keys identifying the data source files.

*/ inline void SetS3Keys(const Aws::Vector& value) { m_s3KeysHasBeenSet = true; m_s3Keys = value; } /** *

The list of S3 keys identifying the data source files.

*/ inline void SetS3Keys(Aws::Vector&& value) { m_s3KeysHasBeenSet = true; m_s3Keys = std::move(value); } /** *

The list of S3 keys identifying the data source files.

*/ inline DataSource& WithS3Keys(const Aws::Vector& value) { SetS3Keys(value); return *this;} /** *

The list of S3 keys identifying the data source files.

*/ inline DataSource& WithS3Keys(Aws::Vector&& value) { SetS3Keys(std::move(value)); return *this;} /** *

The list of S3 keys identifying the data source files.

*/ inline DataSource& AddS3Keys(const S3KeyOutput& value) { m_s3KeysHasBeenSet = true; m_s3Keys.push_back(value); return *this; } /** *

The list of S3 keys identifying the data source files.

*/ inline DataSource& AddS3Keys(S3KeyOutput&& value) { m_s3KeysHasBeenSet = true; m_s3Keys.push_back(std::move(value)); return *this; } /** *

The data type for the data source that you're using for your container image * or simulation job. You can use this field to specify whether your data source is * an Archive, an Amazon S3 prefix, or a file.

If you don't specify a field, * the default value is File.

*/ inline const DataSourceType& GetType() const{ return m_type; } /** *

The data type for the data source that you're using for your container image * or simulation job. You can use this field to specify whether your data source is * an Archive, an Amazon S3 prefix, or a file.

If you don't specify a field, * the default value is File.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The data type for the data source that you're using for your container image * or simulation job. You can use this field to specify whether your data source is * an Archive, an Amazon S3 prefix, or a file.

If you don't specify a field, * the default value is File.

*/ inline void SetType(const DataSourceType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The data type for the data source that you're using for your container image * or simulation job. You can use this field to specify whether your data source is * an Archive, an Amazon S3 prefix, or a file.

If you don't specify a field, * the default value is File.

*/ inline void SetType(DataSourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The data type for the data source that you're using for your container image * or simulation job. You can use this field to specify whether your data source is * an Archive, an Amazon S3 prefix, or a file.

If you don't specify a field, * the default value is File.

*/ inline DataSource& WithType(const DataSourceType& value) { SetType(value); return *this;} /** *

The data type for the data source that you're using for your container image * or simulation job. You can use this field to specify whether your data source is * an Archive, an Amazon S3 prefix, or a file.

If you don't specify a field, * the default value is File.

*/ inline DataSource& WithType(DataSourceType&& value) { SetType(std::move(value)); return *this;} /** *

The location where your files are mounted in the container image.

If * you've specified the type of the data source as an * Archive, you must provide an Amazon S3 object key to your archive. * The object key must point to either a .zip or .tar.gz * file.

If you've specified the type of the data source as a * Prefix, you provide the Amazon S3 prefix that points to the files * that you are using for your data source.

If you've specified the * type of the data source as a File, you provide the * Amazon S3 path to the file that you're using as your data source.

*/ inline const Aws::String& GetDestination() const{ return m_destination; } /** *

The location where your files are mounted in the container image.

If * you've specified the type of the data source as an * Archive, you must provide an Amazon S3 object key to your archive. * The object key must point to either a .zip or .tar.gz * file.

If you've specified the type of the data source as a * Prefix, you provide the Amazon S3 prefix that points to the files * that you are using for your data source.

If you've specified the * type of the data source as a File, you provide the * Amazon S3 path to the file that you're using as your data source.

*/ inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; } /** *

The location where your files are mounted in the container image.

If * you've specified the type of the data source as an * Archive, you must provide an Amazon S3 object key to your archive. * The object key must point to either a .zip or .tar.gz * file.

If you've specified the type of the data source as a * Prefix, you provide the Amazon S3 prefix that points to the files * that you are using for your data source.

If you've specified the * type of the data source as a File, you provide the * Amazon S3 path to the file that you're using as your data source.

*/ inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; } /** *

The location where your files are mounted in the container image.

If * you've specified the type of the data source as an * Archive, you must provide an Amazon S3 object key to your archive. * The object key must point to either a .zip or .tar.gz * file.

If you've specified the type of the data source as a * Prefix, you provide the Amazon S3 prefix that points to the files * that you are using for your data source.

If you've specified the * type of the data source as a File, you provide the * Amazon S3 path to the file that you're using as your data source.

*/ inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); } /** *

The location where your files are mounted in the container image.

If * you've specified the type of the data source as an * Archive, you must provide an Amazon S3 object key to your archive. * The object key must point to either a .zip or .tar.gz * file.

If you've specified the type of the data source as a * Prefix, you provide the Amazon S3 prefix that points to the files * that you are using for your data source.

If you've specified the * type of the data source as a File, you provide the * Amazon S3 path to the file that you're using as your data source.

*/ inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); } /** *

The location where your files are mounted in the container image.

If * you've specified the type of the data source as an * Archive, you must provide an Amazon S3 object key to your archive. * The object key must point to either a .zip or .tar.gz * file.

If you've specified the type of the data source as a * Prefix, you provide the Amazon S3 prefix that points to the files * that you are using for your data source.

If you've specified the * type of the data source as a File, you provide the * Amazon S3 path to the file that you're using as your data source.

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

The location where your files are mounted in the container image.

If * you've specified the type of the data source as an * Archive, you must provide an Amazon S3 object key to your archive. * The object key must point to either a .zip or .tar.gz * file.

If you've specified the type of the data source as a * Prefix, you provide the Amazon S3 prefix that points to the files * that you are using for your data source.

If you've specified the * type of the data source as a File, you provide the * Amazon S3 path to the file that you're using as your data source.

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

The location where your files are mounted in the container image.

If * you've specified the type of the data source as an * Archive, you must provide an Amazon S3 object key to your archive. * The object key must point to either a .zip or .tar.gz * file.

If you've specified the type of the data source as a * Prefix, you provide the Amazon S3 prefix that points to the files * that you are using for your data source.

If you've specified the * type of the data source as a File, you provide the * Amazon S3 path to the file that you're using as your data source.

*/ inline DataSource& WithDestination(const char* value) { SetDestination(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_s3Bucket; bool m_s3BucketHasBeenSet = false; Aws::Vector m_s3Keys; bool m_s3KeysHasBeenSet = false; DataSourceType m_type; bool m_typeHasBeenSet = false; Aws::String m_destination; bool m_destinationHasBeenSet = false; }; } // namespace Model } // namespace RoboMaker } // namespace Aws