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

Provides upload configuration information. Files are uploaded from the * simulation job to a location you specify.

See Also:

AWS * API Reference

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

A prefix that specifies where files will be uploaded in Amazon S3. It is * appended to the simulation output location to determine the final path.

* For example, if your simulation output location is s3://my-bucket * and your upload configuration name is robot-test, your files will * be uploaded to * s3://my-bucket/<simid>/<runid>/robot-test.

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

A prefix that specifies where files will be uploaded in Amazon S3. It is * appended to the simulation output location to determine the final path.

* For example, if your simulation output location is s3://my-bucket * and your upload configuration name is robot-test, your files will * be uploaded to * s3://my-bucket/<simid>/<runid>/robot-test.

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

A prefix that specifies where files will be uploaded in Amazon S3. It is * appended to the simulation output location to determine the final path.

* For example, if your simulation output location is s3://my-bucket * and your upload configuration name is robot-test, your files will * be uploaded to * s3://my-bucket/<simid>/<runid>/robot-test.

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

A prefix that specifies where files will be uploaded in Amazon S3. It is * appended to the simulation output location to determine the final path.

* For example, if your simulation output location is s3://my-bucket * and your upload configuration name is robot-test, your files will * be uploaded to * s3://my-bucket/<simid>/<runid>/robot-test.

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

A prefix that specifies where files will be uploaded in Amazon S3. It is * appended to the simulation output location to determine the final path.

* For example, if your simulation output location is s3://my-bucket * and your upload configuration name is robot-test, your files will * be uploaded to * s3://my-bucket/<simid>/<runid>/robot-test.

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

A prefix that specifies where files will be uploaded in Amazon S3. It is * appended to the simulation output location to determine the final path.

* For example, if your simulation output location is s3://my-bucket * and your upload configuration name is robot-test, your files will * be uploaded to * s3://my-bucket/<simid>/<runid>/robot-test.

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

A prefix that specifies where files will be uploaded in Amazon S3. It is * appended to the simulation output location to determine the final path.

* For example, if your simulation output location is s3://my-bucket * and your upload configuration name is robot-test, your files will * be uploaded to * s3://my-bucket/<simid>/<runid>/robot-test.

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

A prefix that specifies where files will be uploaded in Amazon S3. It is * appended to the simulation output location to determine the final path.

* For example, if your simulation output location is s3://my-bucket * and your upload configuration name is robot-test, your files will * be uploaded to * s3://my-bucket/<simid>/<runid>/robot-test.

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

Specifies the path of the file(s) to upload. Standard Unix glob matching * rules are accepted, with the addition of ** as a super * asterisk. For example, specifying /var/log/ **.log causes all * .log files in the /var/log directory tree to be collected. For more * examples, see Glob Library.

*/ inline const Aws::String& GetPath() const{ return m_path; } /** *

Specifies the path of the file(s) to upload. Standard Unix glob matching * rules are accepted, with the addition of ** as a super * asterisk. For example, specifying /var/log/ **.log causes all * .log files in the /var/log directory tree to be collected. For more * examples, see Glob Library.

*/ inline bool PathHasBeenSet() const { return m_pathHasBeenSet; } /** *

Specifies the path of the file(s) to upload. Standard Unix glob matching * rules are accepted, with the addition of ** as a super * asterisk. For example, specifying /var/log/ **.log causes all * .log files in the /var/log directory tree to be collected. For more * examples, see Glob Library.

*/ inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; } /** *

Specifies the path of the file(s) to upload. Standard Unix glob matching * rules are accepted, with the addition of ** as a super * asterisk. For example, specifying /var/log/ **.log causes all * .log files in the /var/log directory tree to be collected. For more * examples, see Glob Library.

*/ inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); } /** *

Specifies the path of the file(s) to upload. Standard Unix glob matching * rules are accepted, with the addition of ** as a super * asterisk. For example, specifying /var/log/ **.log causes all * .log files in the /var/log directory tree to be collected. For more * examples, see Glob Library.

*/ inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); } /** *

Specifies the path of the file(s) to upload. Standard Unix glob matching * rules are accepted, with the addition of ** as a super * asterisk. For example, specifying /var/log/ **.log causes all * .log files in the /var/log directory tree to be collected. For more * examples, see Glob Library.

*/ inline UploadConfiguration& WithPath(const Aws::String& value) { SetPath(value); return *this;} /** *

Specifies the path of the file(s) to upload. Standard Unix glob matching * rules are accepted, with the addition of ** as a super * asterisk. For example, specifying /var/log/ **.log causes all * .log files in the /var/log directory tree to be collected. For more * examples, see Glob Library.

*/ inline UploadConfiguration& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} /** *

Specifies the path of the file(s) to upload. Standard Unix glob matching * rules are accepted, with the addition of ** as a super * asterisk. For example, specifying /var/log/ **.log causes all * .log files in the /var/log directory tree to be collected. For more * examples, see Glob Library.

*/ inline UploadConfiguration& WithPath(const char* value) { SetPath(value); return *this;} /** *

Specifies when to upload the files:

UPLOAD_ON_TERMINATE
*

Matching files are uploaded once the simulation enters the * TERMINATING state. Matching files are not uploaded until all of * your code (including tools) have stopped.

If there is a problem * uploading a file, the upload is retried. If problems persist, no further upload * attempts will be made.

UPLOAD_ROLLING_AUTO_REMOVE
*

Matching files are uploaded as they are created. They are deleted after they * are uploaded. The specified path is checked every 5 seconds. A final check is * made when all of your code (including tools) have stopped.

*/ inline const UploadBehavior& GetUploadBehavior() const{ return m_uploadBehavior; } /** *

Specifies when to upload the files:

UPLOAD_ON_TERMINATE
*

Matching files are uploaded once the simulation enters the * TERMINATING state. Matching files are not uploaded until all of * your code (including tools) have stopped.

If there is a problem * uploading a file, the upload is retried. If problems persist, no further upload * attempts will be made.

UPLOAD_ROLLING_AUTO_REMOVE
*

Matching files are uploaded as they are created. They are deleted after they * are uploaded. The specified path is checked every 5 seconds. A final check is * made when all of your code (including tools) have stopped.

*/ inline bool UploadBehaviorHasBeenSet() const { return m_uploadBehaviorHasBeenSet; } /** *

Specifies when to upload the files:

UPLOAD_ON_TERMINATE
*

Matching files are uploaded once the simulation enters the * TERMINATING state. Matching files are not uploaded until all of * your code (including tools) have stopped.

If there is a problem * uploading a file, the upload is retried. If problems persist, no further upload * attempts will be made.

UPLOAD_ROLLING_AUTO_REMOVE
*

Matching files are uploaded as they are created. They are deleted after they * are uploaded. The specified path is checked every 5 seconds. A final check is * made when all of your code (including tools) have stopped.

*/ inline void SetUploadBehavior(const UploadBehavior& value) { m_uploadBehaviorHasBeenSet = true; m_uploadBehavior = value; } /** *

Specifies when to upload the files:

UPLOAD_ON_TERMINATE
*

Matching files are uploaded once the simulation enters the * TERMINATING state. Matching files are not uploaded until all of * your code (including tools) have stopped.

If there is a problem * uploading a file, the upload is retried. If problems persist, no further upload * attempts will be made.

UPLOAD_ROLLING_AUTO_REMOVE
*

Matching files are uploaded as they are created. They are deleted after they * are uploaded. The specified path is checked every 5 seconds. A final check is * made when all of your code (including tools) have stopped.

*/ inline void SetUploadBehavior(UploadBehavior&& value) { m_uploadBehaviorHasBeenSet = true; m_uploadBehavior = std::move(value); } /** *

Specifies when to upload the files:

UPLOAD_ON_TERMINATE
*

Matching files are uploaded once the simulation enters the * TERMINATING state. Matching files are not uploaded until all of * your code (including tools) have stopped.

If there is a problem * uploading a file, the upload is retried. If problems persist, no further upload * attempts will be made.

UPLOAD_ROLLING_AUTO_REMOVE
*

Matching files are uploaded as they are created. They are deleted after they * are uploaded. The specified path is checked every 5 seconds. A final check is * made when all of your code (including tools) have stopped.

*/ inline UploadConfiguration& WithUploadBehavior(const UploadBehavior& value) { SetUploadBehavior(value); return *this;} /** *

Specifies when to upload the files:

UPLOAD_ON_TERMINATE
*

Matching files are uploaded once the simulation enters the * TERMINATING state. Matching files are not uploaded until all of * your code (including tools) have stopped.

If there is a problem * uploading a file, the upload is retried. If problems persist, no further upload * attempts will be made.

UPLOAD_ROLLING_AUTO_REMOVE
*

Matching files are uploaded as they are created. They are deleted after they * are uploaded. The specified path is checked every 5 seconds. A final check is * made when all of your code (including tools) have stopped.

*/ inline UploadConfiguration& WithUploadBehavior(UploadBehavior&& value) { SetUploadBehavior(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_path; bool m_pathHasBeenSet = false; UploadBehavior m_uploadBehavior; bool m_uploadBehaviorHasBeenSet = false; }; } // namespace Model } // namespace RoboMaker } // namespace Aws