AWS SDK for C++  0.12.9
AWS SDK for C++
ReportTaskProgressRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace DataPipeline
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
44  inline const Aws::String& GetTaskId() const{ return m_taskId; }
45 
50  inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
51 
56  inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
57 
62  inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
63 
68  inline ReportTaskProgressRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
69 
74  inline ReportTaskProgressRequest& WithTaskId(Aws::String&& value) { SetTaskId(value); return *this;}
75 
80  inline ReportTaskProgressRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;}
81 
86  inline const Aws::Vector<Field>& GetFields() const{ return m_fields; }
87 
92  inline void SetFields(const Aws::Vector<Field>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
93 
98  inline void SetFields(Aws::Vector<Field>&& value) { m_fieldsHasBeenSet = true; m_fields = value; }
99 
104  inline ReportTaskProgressRequest& WithFields(const Aws::Vector<Field>& value) { SetFields(value); return *this;}
105 
110  inline ReportTaskProgressRequest& WithFields(Aws::Vector<Field>&& value) { SetFields(value); return *this;}
111 
116  inline ReportTaskProgressRequest& AddFields(const Field& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
117 
122  inline ReportTaskProgressRequest& AddFields(Field&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
123 
124  private:
125  Aws::String m_taskId;
126  bool m_taskIdHasBeenSet;
127  Aws::Vector<Field> m_fields;
128  bool m_fieldsHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace DataPipeline
133 } // namespace Aws
ReportTaskProgressRequest & WithTaskId(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
ReportTaskProgressRequest & AddFields(const Field &value)
#define AWS_DATAPIPELINE_API
ReportTaskProgressRequest & WithFields(const Aws::Vector< Field > &value)
ReportTaskProgressRequest & WithTaskId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ReportTaskProgressRequest & WithFields(Aws::Vector< Field > &&value)
ReportTaskProgressRequest & AddFields(Field &&value)
ReportTaskProgressRequest & WithTaskId(const Aws::String &value)
JSON (JavaScript Object Notation).