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

StartTaskExecutionRequest

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the task to start.

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

The Amazon Resource Name (ARN) of the task to start.

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

The Amazon Resource Name (ARN) of the task to start.

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

The Amazon Resource Name (ARN) of the task to start.

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

The Amazon Resource Name (ARN) of the task to start.

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

The Amazon Resource Name (ARN) of the task to start.

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

The Amazon Resource Name (ARN) of the task to start.

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

The Amazon Resource Name (ARN) of the task 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;} /** *

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; } /** *

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; } /** *

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; } /** *

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); } /** *

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;} /** *

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;} /** *

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; } /** *

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; } private: Aws::String m_taskArn; bool m_taskArnHasBeenSet; Options m_overrideOptions; bool m_overrideOptionsHasBeenSet; Aws::Vector m_includes; bool m_includesHasBeenSet; }; } // namespace Model } // namespace DataSync } // namespace Aws