AWS SDK for C++  1.8.129
AWS SDK for C++
ReportTaskProgressRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace DataPipeline
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ReportTaskProgress"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
46  inline const Aws::String& GetTaskId() const{ return m_taskId; }
47 
52  inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
53 
58  inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
59 
64  inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
65 
70  inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
71 
76  inline ReportTaskProgressRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
77 
82  inline ReportTaskProgressRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
83 
88  inline ReportTaskProgressRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;}
89 
90 
95  inline const Aws::Vector<Field>& GetFields() const{ return m_fields; }
96 
101  inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
102 
107  inline void SetFields(const Aws::Vector<Field>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
108 
113  inline void SetFields(Aws::Vector<Field>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
114 
119  inline ReportTaskProgressRequest& WithFields(const Aws::Vector<Field>& value) { SetFields(value); return *this;}
120 
125  inline ReportTaskProgressRequest& WithFields(Aws::Vector<Field>&& value) { SetFields(std::move(value)); return *this;}
126 
131  inline ReportTaskProgressRequest& AddFields(const Field& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
132 
137  inline ReportTaskProgressRequest& AddFields(Field&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
138 
139  private:
140 
141  Aws::String m_taskId;
142  bool m_taskIdHasBeenSet;
143 
144  Aws::Vector<Field> m_fields;
145  bool m_fieldsHasBeenSet;
146  };
147 
148 } // namespace Model
149 } // namespace DataPipeline
150 } // namespace Aws
Aws::DataPipeline::Model::ReportTaskProgressRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ReportTaskProgressRequest.h:35
Aws::DataPipeline::Model::ReportTaskProgressRequest::GetFields
const Aws::Vector< Field > & GetFields() const
Definition: ReportTaskProgressRequest.h:95
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DataPipeline::Model::ReportTaskProgressRequest::WithFields
ReportTaskProgressRequest & WithFields(Aws::Vector< Field > &&value)
Definition: ReportTaskProgressRequest.h:125
Aws::DataPipeline::Model::ReportTaskProgressRequest::SetTaskId
void SetTaskId(const char *value)
Definition: ReportTaskProgressRequest.h:70
Aws::DataPipeline::Model::ReportTaskProgressRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DataPipeline::Model::ReportTaskProgressRequest::WithTaskId
ReportTaskProgressRequest & WithTaskId(const Aws::String &value)
Definition: ReportTaskProgressRequest.h:76
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DataPipeline::Model::ReportTaskProgressRequest::AddFields
ReportTaskProgressRequest & AddFields(Field &&value)
Definition: ReportTaskProgressRequest.h:137
Field.h
AWSVector.h
Aws::DataPipeline::Model::ReportTaskProgressRequest::SetTaskId
void SetTaskId(const Aws::String &value)
Definition: ReportTaskProgressRequest.h:58
Aws::DataPipeline::Model::ReportTaskProgressRequest::GetTaskId
const Aws::String & GetTaskId() const
Definition: ReportTaskProgressRequest.h:46
Aws::DataPipeline::Model::ReportTaskProgressRequest::WithTaskId
ReportTaskProgressRequest & WithTaskId(Aws::String &&value)
Definition: ReportTaskProgressRequest.h:82
Aws::DataPipeline::Model::ReportTaskProgressRequest::WithFields
ReportTaskProgressRequest & WithFields(const Aws::Vector< Field > &value)
Definition: ReportTaskProgressRequest.h:119
Aws::DataPipeline::Model::ReportTaskProgressRequest::SetFields
void SetFields(Aws::Vector< Field > &&value)
Definition: ReportTaskProgressRequest.h:113
Aws::DataPipeline::Model::ReportTaskProgressRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DataPipeline::Model::ReportTaskProgressRequest::SetTaskId
void SetTaskId(Aws::String &&value)
Definition: ReportTaskProgressRequest.h:64
DataPipeline_EXPORTS.h
Aws::DataPipeline::Model::ReportTaskProgressRequest::SetFields
void SetFields(const Aws::Vector< Field > &value)
Definition: ReportTaskProgressRequest.h:107
DataPipelineRequest.h
AWSString.h
Aws::DataPipeline::Model::ReportTaskProgressRequest::TaskIdHasBeenSet
bool TaskIdHasBeenSet() const
Definition: ReportTaskProgressRequest.h:52
Aws::DataPipeline::Model::ReportTaskProgressRequest::FieldsHasBeenSet
bool FieldsHasBeenSet() const
Definition: ReportTaskProgressRequest.h:101
Aws::DataPipeline::Model::Field
Definition: Field.h:35
Aws::DataPipeline::Model::ReportTaskProgressRequest
Definition: ReportTaskProgressRequest.h:27
Aws
Definition: AccessManagementClient.h:15
Aws::DataPipeline::Model::ReportTaskProgressRequest::ReportTaskProgressRequest
ReportTaskProgressRequest()
Aws::DataPipeline::Model::ReportTaskProgressRequest::WithTaskId
ReportTaskProgressRequest & WithTaskId(const char *value)
Definition: ReportTaskProgressRequest.h:88
AWS_DATAPIPELINE_API
#define AWS_DATAPIPELINE_API
Definition: DataPipeline_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataPipeline::Model::ReportTaskProgressRequest::AddFields
ReportTaskProgressRequest & AddFields(const Field &value)
Definition: ReportTaskProgressRequest.h:131
Aws::DataPipeline::DataPipelineRequest
Definition: DataPipelineRequest.h:17