AWS SDK for C++  1.8.71
AWS SDK for C++
StartTaskExecutionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace DataSync
18 {
19 namespace Model
20 {
21 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "StartTaskExecution"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41 
42 
46  inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
47 
51  inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
52 
56  inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
57 
61  inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
62 
66  inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
67 
71  inline StartTaskExecutionRequest& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
72 
76  inline StartTaskExecutionRequest& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
77 
81  inline StartTaskExecutionRequest& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
82 
83 
84 
85  inline const Options& GetOverrideOptions() const{ return m_overrideOptions; }
86 
87 
88  inline bool OverrideOptionsHasBeenSet() const { return m_overrideOptionsHasBeenSet; }
89 
90 
91  inline void SetOverrideOptions(const Options& value) { m_overrideOptionsHasBeenSet = true; m_overrideOptions = value; }
92 
93 
94  inline void SetOverrideOptions(Options&& value) { m_overrideOptionsHasBeenSet = true; m_overrideOptions = std::move(value); }
95 
96 
97  inline StartTaskExecutionRequest& WithOverrideOptions(const Options& value) { SetOverrideOptions(value); return *this;}
98 
99 
100  inline StartTaskExecutionRequest& WithOverrideOptions(Options&& value) { SetOverrideOptions(std::move(value)); return *this;}
101 
102 
109  inline const Aws::Vector<FilterRule>& GetIncludes() const{ return m_includes; }
110 
117  inline bool IncludesHasBeenSet() const { return m_includesHasBeenSet; }
118 
125  inline void SetIncludes(const Aws::Vector<FilterRule>& value) { m_includesHasBeenSet = true; m_includes = value; }
126 
133  inline void SetIncludes(Aws::Vector<FilterRule>&& value) { m_includesHasBeenSet = true; m_includes = std::move(value); }
134 
141  inline StartTaskExecutionRequest& WithIncludes(const Aws::Vector<FilterRule>& value) { SetIncludes(value); return *this;}
142 
149  inline StartTaskExecutionRequest& WithIncludes(Aws::Vector<FilterRule>&& value) { SetIncludes(std::move(value)); return *this;}
150 
157  inline StartTaskExecutionRequest& AddIncludes(const FilterRule& value) { m_includesHasBeenSet = true; m_includes.push_back(value); return *this; }
158 
165  inline StartTaskExecutionRequest& AddIncludes(FilterRule&& value) { m_includesHasBeenSet = true; m_includes.push_back(std::move(value)); return *this; }
166 
167  private:
168 
169  Aws::String m_taskArn;
170  bool m_taskArnHasBeenSet;
171 
172  Options m_overrideOptions;
173  bool m_overrideOptionsHasBeenSet;
174 
175  Aws::Vector<FilterRule> m_includes;
176  bool m_includesHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace DataSync
181 } // namespace Aws
StartTaskExecutionRequest & WithTaskArn(const char *value)
const Aws::Vector< FilterRule > & GetIncludes() const
StartTaskExecutionRequest & WithTaskArn(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
StartTaskExecutionRequest & WithIncludes(const Aws::Vector< FilterRule > &value)
void SetIncludes(Aws::Vector< FilterRule > &&value)
#define AWS_DATASYNC_API
StartTaskExecutionRequest & WithOverrideOptions(Options &&value)
StartTaskExecutionRequest & AddIncludes(FilterRule &&value)
StartTaskExecutionRequest & AddIncludes(const FilterRule &value)
void SetIncludes(const Aws::Vector< FilterRule > &value)
StartTaskExecutionRequest & WithTaskArn(Aws::String &&value)
StartTaskExecutionRequest & WithIncludes(Aws::Vector< FilterRule > &&value)
StartTaskExecutionRequest & WithOverrideOptions(const Options &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
virtual const char * GetServiceRequestName() const override