AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ReportTaskProgressRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datapipeline/DataPipelineRequest.h>
10#include <aws/datapipeline/DataPipeline_EXPORTS.h>
11#include <aws/datapipeline/model/Field.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DataPipeline {
17namespace Model {
18
25 public:
26 AWS_DATAPIPELINE_API ReportTaskProgressRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ReportTaskProgress"; }
33
34 AWS_DATAPIPELINE_API Aws::String SerializePayload() const override;
35
36 AWS_DATAPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
43 inline const Aws::String& GetTaskId() const { return m_taskId; }
44 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
45 template <typename TaskIdT = Aws::String>
46 void SetTaskId(TaskIdT&& value) {
47 m_taskIdHasBeenSet = true;
48 m_taskId = std::forward<TaskIdT>(value);
49 }
50 template <typename TaskIdT = Aws::String>
52 SetTaskId(std::forward<TaskIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<Field>& GetFields() const { return m_fields; }
63 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
64 template <typename FieldsT = Aws::Vector<Field>>
65 void SetFields(FieldsT&& value) {
66 m_fieldsHasBeenSet = true;
67 m_fields = std::forward<FieldsT>(value);
68 }
69 template <typename FieldsT = Aws::Vector<Field>>
71 SetFields(std::forward<FieldsT>(value));
72 return *this;
73 }
74 template <typename FieldsT = Field>
76 m_fieldsHasBeenSet = true;
77 m_fields.emplace_back(std::forward<FieldsT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_taskId;
83
84 Aws::Vector<Field> m_fields;
85 bool m_taskIdHasBeenSet = false;
86 bool m_fieldsHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace DataPipeline
91} // namespace Aws
AWS_DATAPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DATAPIPELINE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_DATAPIPELINE_API ReportTaskProgressRequest()=default
ReportTaskProgressRequest & AddFields(FieldsT &&value)
ReportTaskProgressRequest & WithFields(FieldsT &&value)
ReportTaskProgressRequest & WithTaskId(TaskIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector