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

StartTaskExecutionRequest

See Also:

AWS * API Reference

*/ class StartTaskExecutionRequest : public DataSyncRequest { public: AWS_DATASYNC_API StartTaskExecutionRequest(); // 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 "StartTaskExecution"; } AWS_DATASYNC_API Aws::String SerializePayload() const override; AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Specifies the Amazon Resource Name (ARN) of the task that you want to * start.

*/ inline const Aws::String& GetTaskArn() const{ return m_taskArn; } /** *

Specifies the Amazon Resource Name (ARN) of the task that you want to * start.

*/ inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; } /** *

Specifies the Amazon Resource Name (ARN) of the task that you want to * start.

*/ inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; } /** *

Specifies the Amazon Resource Name (ARN) of the task that you want to * start.

*/ inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); } /** *

Specifies the Amazon Resource Name (ARN) of the task that you want to * start.

*/ inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); } /** *

Specifies the Amazon Resource Name (ARN) of the task that you want to * start.

*/ inline StartTaskExecutionRequest& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;} /** *

Specifies the Amazon Resource Name (ARN) of the task that you want to * start.

*/ inline StartTaskExecutionRequest& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;} /** *

Specifies the Amazon Resource Name (ARN) of the task that you want to * start.

*/ inline StartTaskExecutionRequest& WithTaskArn(const char* value) { SetTaskArn(value); return *this;} inline const Options& GetOverrideOptions() const{ return m_overrideOptions; } inline bool OverrideOptionsHasBeenSet() const { return m_overrideOptionsHasBeenSet; } inline void SetOverrideOptions(const Options& value) { m_overrideOptionsHasBeenSet = true; m_overrideOptions = value; } inline void SetOverrideOptions(Options&& value) { m_overrideOptionsHasBeenSet = true; m_overrideOptions = std::move(value); } inline StartTaskExecutionRequest& WithOverrideOptions(const Options& value) { SetOverrideOptions(value); return *this;} inline StartTaskExecutionRequest& WithOverrideOptions(Options&& value) { SetOverrideOptions(std::move(value)); return *this;} /** *

Specifies a list of filter rules that determines which files to include when * running a task. The pattern should contain a single filter string that consists * of the patterns to include. The patterns are delimited by "|" (that is, a pipe), * for example, "/folder1|/folder2".

*/ inline const Aws::Vector& GetIncludes() const{ return m_includes; } /** *

Specifies a list of filter rules that determines which files to include when * running a task. The pattern should contain a single filter string that consists * of the patterns to include. The patterns are delimited by "|" (that is, a pipe), * for example, "/folder1|/folder2".

*/ inline bool IncludesHasBeenSet() const { return m_includesHasBeenSet; } /** *

Specifies a list of filter rules that determines which files to include when * running a task. The pattern should contain a single filter string that consists * of the patterns to include. The patterns are delimited by "|" (that is, a pipe), * for example, "/folder1|/folder2".

*/ inline void SetIncludes(const Aws::Vector& value) { m_includesHasBeenSet = true; m_includes = value; } /** *

Specifies a list of filter rules that determines which files to include when * running a task. The pattern should contain a single filter string that consists * of the patterns to include. The patterns are delimited by "|" (that is, a pipe), * for example, "/folder1|/folder2".

*/ inline void SetIncludes(Aws::Vector&& value) { m_includesHasBeenSet = true; m_includes = std::move(value); } /** *

Specifies a list of filter rules that determines which files to include when * running a task. The pattern should contain a single filter string that consists * of the patterns to include. The patterns are delimited by "|" (that is, a pipe), * for example, "/folder1|/folder2".

*/ inline StartTaskExecutionRequest& WithIncludes(const Aws::Vector& value) { SetIncludes(value); return *this;} /** *

Specifies a list of filter rules that determines which files to include when * running a task. The pattern should contain a single filter string that consists * of the patterns to include. The patterns are delimited by "|" (that is, a pipe), * for example, "/folder1|/folder2".

*/ inline StartTaskExecutionRequest& WithIncludes(Aws::Vector&& value) { SetIncludes(std::move(value)); return *this;} /** *

Specifies a list of filter rules that determines which files to include when * running a task. The pattern should contain a single filter string that consists * of the patterns to include. The patterns are delimited by "|" (that is, a pipe), * for example, "/folder1|/folder2".

*/ inline StartTaskExecutionRequest& AddIncludes(const FilterRule& value) { m_includesHasBeenSet = true; m_includes.push_back(value); return *this; } /** *

Specifies a list of filter rules that determines which files to include when * running a task. The pattern should contain a single filter string that consists * of the patterns to include. The patterns are delimited by "|" (that is, a pipe), * for example, "/folder1|/folder2".

*/ inline StartTaskExecutionRequest& AddIncludes(FilterRule&& value) { m_includesHasBeenSet = true; m_includes.push_back(std::move(value)); return *this; } /** *

Specifies a list of filter rules that determines which files to exclude from * a task. The list contains a single filter string that consists of the patterns * to exclude. The patterns are delimited by "|" (that is, a pipe), for example, * "/folder1|/folder2".

*/ inline const Aws::Vector& GetExcludes() const{ return m_excludes; } /** *

Specifies a list of filter rules that determines which files to exclude from * a task. The list contains a single filter string that consists of the patterns * to exclude. The patterns are delimited by "|" (that is, a pipe), for example, * "/folder1|/folder2".

*/ inline bool ExcludesHasBeenSet() const { return m_excludesHasBeenSet; } /** *

Specifies a list of filter rules that determines which files to exclude from * a task. The list contains a single filter string that consists of the patterns * to exclude. The patterns are delimited by "|" (that is, a pipe), for example, * "/folder1|/folder2".

*/ inline void SetExcludes(const Aws::Vector& value) { m_excludesHasBeenSet = true; m_excludes = value; } /** *

Specifies a list of filter rules that determines which files to exclude from * a task. The list contains a single filter string that consists of the patterns * to exclude. The patterns are delimited by "|" (that is, a pipe), for example, * "/folder1|/folder2".

*/ inline void SetExcludes(Aws::Vector&& value) { m_excludesHasBeenSet = true; m_excludes = std::move(value); } /** *

Specifies a list of filter rules that determines which files to exclude from * a task. The list contains a single filter string that consists of the patterns * to exclude. The patterns are delimited by "|" (that is, a pipe), for example, * "/folder1|/folder2".

*/ inline StartTaskExecutionRequest& WithExcludes(const Aws::Vector& value) { SetExcludes(value); return *this;} /** *

Specifies a list of filter rules that determines which files to exclude from * a task. The list contains a single filter string that consists of the patterns * to exclude. The patterns are delimited by "|" (that is, a pipe), for example, * "/folder1|/folder2".

*/ inline StartTaskExecutionRequest& WithExcludes(Aws::Vector&& value) { SetExcludes(std::move(value)); return *this;} /** *

Specifies a list of filter rules that determines which files to exclude from * a task. The list contains a single filter string that consists of the patterns * to exclude. The patterns are delimited by "|" (that is, a pipe), for example, * "/folder1|/folder2".

*/ inline StartTaskExecutionRequest& AddExcludes(const FilterRule& value) { m_excludesHasBeenSet = true; m_excludes.push_back(value); return *this; } /** *

Specifies a list of filter rules that determines which files to exclude from * a task. The list contains a single filter string that consists of the patterns * to exclude. The patterns are delimited by "|" (that is, a pipe), for example, * "/folder1|/folder2".

*/ inline StartTaskExecutionRequest& AddExcludes(FilterRule&& value) { m_excludesHasBeenSet = true; m_excludes.push_back(std::move(value)); return *this; } /** *

Specifies the tags that you want to apply to the Amazon Resource Name (ARN) * representing the task execution.

Tags are key-value pairs that * help you manage, filter, and search for your DataSync resources.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Specifies the tags that you want to apply to the Amazon Resource Name (ARN) * representing the task execution.

Tags are key-value pairs that * help you manage, filter, and search for your DataSync resources.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Specifies the tags that you want to apply to the Amazon Resource Name (ARN) * representing the task execution.

Tags are key-value pairs that * help you manage, filter, and search for your DataSync resources.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Specifies the tags that you want to apply to the Amazon Resource Name (ARN) * representing the task execution.

Tags are key-value pairs that * help you manage, filter, and search for your DataSync resources.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Specifies the tags that you want to apply to the Amazon Resource Name (ARN) * representing the task execution.

Tags are key-value pairs that * help you manage, filter, and search for your DataSync resources.

*/ inline StartTaskExecutionRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Specifies the tags that you want to apply to the Amazon Resource Name (ARN) * representing the task execution.

Tags are key-value pairs that * help you manage, filter, and search for your DataSync resources.

*/ inline StartTaskExecutionRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Specifies the tags that you want to apply to the Amazon Resource Name (ARN) * representing the task execution.

Tags are key-value pairs that * help you manage, filter, and search for your DataSync resources.

*/ inline StartTaskExecutionRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Specifies the tags that you want to apply to the Amazon Resource Name (ARN) * representing the task execution.

Tags are key-value pairs that * help you manage, filter, and search for your DataSync resources.

*/ inline StartTaskExecutionRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_taskArn; bool m_taskArnHasBeenSet = false; Options m_overrideOptions; bool m_overrideOptionsHasBeenSet = false; Aws::Vector m_includes; bool m_includesHasBeenSet = false; Aws::Vector m_excludes; bool m_excludesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace DataSync } // namespace Aws