/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace FSx { namespace Model { /** */ class CreateDataRepositoryTaskRequest : public FSxRequest { public: AWS_FSX_API CreateDataRepositoryTaskRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateDataRepositoryTask"; } AWS_FSX_API Aws::String SerializePayload() const override; AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Specifies the type of data repository task to create.

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

Specifies the type of data repository task to create.

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

Specifies the type of data repository task to create.

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

Specifies the type of data repository task to create.

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

Specifies the type of data repository task to create.

*/ inline CreateDataRepositoryTaskRequest& WithType(const DataRepositoryTaskType& value) { SetType(value); return *this;} /** *

Specifies the type of data repository task to create.

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

A list of paths for the data repository task to use when the task is * processed. If a path that you provide isn't valid, the task fails.

  • *

    For export tasks, the list contains paths on the Amazon FSx file system from * which the files are exported to the Amazon S3 bucket. The default path is the * file system root directory. The paths you provide need to be relative to the * mount point of the file system. If the mount point is /mnt/fsx and * /mnt/fsx/path1 is a directory or file on the file system you want * to export, then the path to provide is path1.

  • For * import tasks, the list contains paths in the Amazon S3 bucket from which POSIX * metadata changes are imported to the Amazon FSx file system. The path can be an * S3 bucket or prefix in the format s3://myBucket/myPrefix (where * myPrefix is optional).

*/ inline const Aws::Vector& GetPaths() const{ return m_paths; } /** *

A list of paths for the data repository task to use when the task is * processed. If a path that you provide isn't valid, the task fails.

  • *

    For export tasks, the list contains paths on the Amazon FSx file system from * which the files are exported to the Amazon S3 bucket. The default path is the * file system root directory. The paths you provide need to be relative to the * mount point of the file system. If the mount point is /mnt/fsx and * /mnt/fsx/path1 is a directory or file on the file system you want * to export, then the path to provide is path1.

  • For * import tasks, the list contains paths in the Amazon S3 bucket from which POSIX * metadata changes are imported to the Amazon FSx file system. The path can be an * S3 bucket or prefix in the format s3://myBucket/myPrefix (where * myPrefix is optional).

*/ inline bool PathsHasBeenSet() const { return m_pathsHasBeenSet; } /** *

A list of paths for the data repository task to use when the task is * processed. If a path that you provide isn't valid, the task fails.

  • *

    For export tasks, the list contains paths on the Amazon FSx file system from * which the files are exported to the Amazon S3 bucket. The default path is the * file system root directory. The paths you provide need to be relative to the * mount point of the file system. If the mount point is /mnt/fsx and * /mnt/fsx/path1 is a directory or file on the file system you want * to export, then the path to provide is path1.

  • For * import tasks, the list contains paths in the Amazon S3 bucket from which POSIX * metadata changes are imported to the Amazon FSx file system. The path can be an * S3 bucket or prefix in the format s3://myBucket/myPrefix (where * myPrefix is optional).

*/ inline void SetPaths(const Aws::Vector& value) { m_pathsHasBeenSet = true; m_paths = value; } /** *

A list of paths for the data repository task to use when the task is * processed. If a path that you provide isn't valid, the task fails.

  • *

    For export tasks, the list contains paths on the Amazon FSx file system from * which the files are exported to the Amazon S3 bucket. The default path is the * file system root directory. The paths you provide need to be relative to the * mount point of the file system. If the mount point is /mnt/fsx and * /mnt/fsx/path1 is a directory or file on the file system you want * to export, then the path to provide is path1.

  • For * import tasks, the list contains paths in the Amazon S3 bucket from which POSIX * metadata changes are imported to the Amazon FSx file system. The path can be an * S3 bucket or prefix in the format s3://myBucket/myPrefix (where * myPrefix is optional).

*/ inline void SetPaths(Aws::Vector&& value) { m_pathsHasBeenSet = true; m_paths = std::move(value); } /** *

A list of paths for the data repository task to use when the task is * processed. If a path that you provide isn't valid, the task fails.

  • *

    For export tasks, the list contains paths on the Amazon FSx file system from * which the files are exported to the Amazon S3 bucket. The default path is the * file system root directory. The paths you provide need to be relative to the * mount point of the file system. If the mount point is /mnt/fsx and * /mnt/fsx/path1 is a directory or file on the file system you want * to export, then the path to provide is path1.

  • For * import tasks, the list contains paths in the Amazon S3 bucket from which POSIX * metadata changes are imported to the Amazon FSx file system. The path can be an * S3 bucket or prefix in the format s3://myBucket/myPrefix (where * myPrefix is optional).

*/ inline CreateDataRepositoryTaskRequest& WithPaths(const Aws::Vector& value) { SetPaths(value); return *this;} /** *

A list of paths for the data repository task to use when the task is * processed. If a path that you provide isn't valid, the task fails.

  • *

    For export tasks, the list contains paths on the Amazon FSx file system from * which the files are exported to the Amazon S3 bucket. The default path is the * file system root directory. The paths you provide need to be relative to the * mount point of the file system. If the mount point is /mnt/fsx and * /mnt/fsx/path1 is a directory or file on the file system you want * to export, then the path to provide is path1.

  • For * import tasks, the list contains paths in the Amazon S3 bucket from which POSIX * metadata changes are imported to the Amazon FSx file system. The path can be an * S3 bucket or prefix in the format s3://myBucket/myPrefix (where * myPrefix is optional).

*/ inline CreateDataRepositoryTaskRequest& WithPaths(Aws::Vector&& value) { SetPaths(std::move(value)); return *this;} /** *

A list of paths for the data repository task to use when the task is * processed. If a path that you provide isn't valid, the task fails.

  • *

    For export tasks, the list contains paths on the Amazon FSx file system from * which the files are exported to the Amazon S3 bucket. The default path is the * file system root directory. The paths you provide need to be relative to the * mount point of the file system. If the mount point is /mnt/fsx and * /mnt/fsx/path1 is a directory or file on the file system you want * to export, then the path to provide is path1.

  • For * import tasks, the list contains paths in the Amazon S3 bucket from which POSIX * metadata changes are imported to the Amazon FSx file system. The path can be an * S3 bucket or prefix in the format s3://myBucket/myPrefix (where * myPrefix is optional).

*/ inline CreateDataRepositoryTaskRequest& AddPaths(const Aws::String& value) { m_pathsHasBeenSet = true; m_paths.push_back(value); return *this; } /** *

A list of paths for the data repository task to use when the task is * processed. If a path that you provide isn't valid, the task fails.

  • *

    For export tasks, the list contains paths on the Amazon FSx file system from * which the files are exported to the Amazon S3 bucket. The default path is the * file system root directory. The paths you provide need to be relative to the * mount point of the file system. If the mount point is /mnt/fsx and * /mnt/fsx/path1 is a directory or file on the file system you want * to export, then the path to provide is path1.

  • For * import tasks, the list contains paths in the Amazon S3 bucket from which POSIX * metadata changes are imported to the Amazon FSx file system. The path can be an * S3 bucket or prefix in the format s3://myBucket/myPrefix (where * myPrefix is optional).

*/ inline CreateDataRepositoryTaskRequest& AddPaths(Aws::String&& value) { m_pathsHasBeenSet = true; m_paths.push_back(std::move(value)); return *this; } /** *

A list of paths for the data repository task to use when the task is * processed. If a path that you provide isn't valid, the task fails.

  • *

    For export tasks, the list contains paths on the Amazon FSx file system from * which the files are exported to the Amazon S3 bucket. The default path is the * file system root directory. The paths you provide need to be relative to the * mount point of the file system. If the mount point is /mnt/fsx and * /mnt/fsx/path1 is a directory or file on the file system you want * to export, then the path to provide is path1.

  • For * import tasks, the list contains paths in the Amazon S3 bucket from which POSIX * metadata changes are imported to the Amazon FSx file system. The path can be an * S3 bucket or prefix in the format s3://myBucket/myPrefix (where * myPrefix is optional).

*/ inline CreateDataRepositoryTaskRequest& AddPaths(const char* value) { m_pathsHasBeenSet = true; m_paths.push_back(value); return *this; } inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; } inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; } inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; } inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); } inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); } inline CreateDataRepositoryTaskRequest& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;} inline CreateDataRepositoryTaskRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;} inline CreateDataRepositoryTaskRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;} /** *

Defines whether or not Amazon FSx provides a CompletionReport once the task * has completed. A CompletionReport provides a detailed report on the files that * Amazon FSx processed that meet the criteria specified by the Scope * parameter. For more information, see Working * with Task Completion Reports.

*/ inline const CompletionReport& GetReport() const{ return m_report; } /** *

Defines whether or not Amazon FSx provides a CompletionReport once the task * has completed. A CompletionReport provides a detailed report on the files that * Amazon FSx processed that meet the criteria specified by the Scope * parameter. For more information, see Working * with Task Completion Reports.

*/ inline bool ReportHasBeenSet() const { return m_reportHasBeenSet; } /** *

Defines whether or not Amazon FSx provides a CompletionReport once the task * has completed. A CompletionReport provides a detailed report on the files that * Amazon FSx processed that meet the criteria specified by the Scope * parameter. For more information, see Working * with Task Completion Reports.

*/ inline void SetReport(const CompletionReport& value) { m_reportHasBeenSet = true; m_report = value; } /** *

Defines whether or not Amazon FSx provides a CompletionReport once the task * has completed. A CompletionReport provides a detailed report on the files that * Amazon FSx processed that meet the criteria specified by the Scope * parameter. For more information, see Working * with Task Completion Reports.

*/ inline void SetReport(CompletionReport&& value) { m_reportHasBeenSet = true; m_report = std::move(value); } /** *

Defines whether or not Amazon FSx provides a CompletionReport once the task * has completed. A CompletionReport provides a detailed report on the files that * Amazon FSx processed that meet the criteria specified by the Scope * parameter. For more information, see Working * with Task Completion Reports.

*/ inline CreateDataRepositoryTaskRequest& WithReport(const CompletionReport& value) { SetReport(value); return *this;} /** *

Defines whether or not Amazon FSx provides a CompletionReport once the task * has completed. A CompletionReport provides a detailed report on the files that * Amazon FSx processed that meet the criteria specified by the Scope * parameter. For more information, see Working * with Task Completion Reports.

*/ inline CreateDataRepositoryTaskRequest& WithReport(CompletionReport&& value) { SetReport(std::move(value)); return *this;} inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } inline CreateDataRepositoryTaskRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} inline CreateDataRepositoryTaskRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} inline CreateDataRepositoryTaskRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} inline const Aws::Vector& GetTags() const{ return m_tags; } inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } inline CreateDataRepositoryTaskRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} inline CreateDataRepositoryTaskRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} inline CreateDataRepositoryTaskRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } inline CreateDataRepositoryTaskRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

Specifies the amount of data to release, in GiB, by an Amazon File Cache * AUTO_RELEASE_DATA task that automatically releases files from the * cache.

*/ inline long long GetCapacityToRelease() const{ return m_capacityToRelease; } /** *

Specifies the amount of data to release, in GiB, by an Amazon File Cache * AUTO_RELEASE_DATA task that automatically releases files from the * cache.

*/ inline bool CapacityToReleaseHasBeenSet() const { return m_capacityToReleaseHasBeenSet; } /** *

Specifies the amount of data to release, in GiB, by an Amazon File Cache * AUTO_RELEASE_DATA task that automatically releases files from the * cache.

*/ inline void SetCapacityToRelease(long long value) { m_capacityToReleaseHasBeenSet = true; m_capacityToRelease = value; } /** *

Specifies the amount of data to release, in GiB, by an Amazon File Cache * AUTO_RELEASE_DATA task that automatically releases files from the * cache.

*/ inline CreateDataRepositoryTaskRequest& WithCapacityToRelease(long long value) { SetCapacityToRelease(value); return *this;} private: DataRepositoryTaskType m_type; bool m_typeHasBeenSet = false; Aws::Vector m_paths; bool m_pathsHasBeenSet = false; Aws::String m_fileSystemId; bool m_fileSystemIdHasBeenSet = false; CompletionReport m_report; bool m_reportHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; long long m_capacityToRelease; bool m_capacityToReleaseHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws