AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ReviewActionDetail.h
1
6#pragma once
7#include <aws/mturk-requester/MTurk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mturk-requester/model/ReviewActionStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MTurk
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_MTURK_API ReviewActionDetail() = default;
41 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetActionId() const { return m_actionId; }
49 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
50 template<typename ActionIdT = Aws::String>
51 void SetActionId(ActionIdT&& value) { m_actionIdHasBeenSet = true; m_actionId = std::forward<ActionIdT>(value); }
52 template<typename ActionIdT = Aws::String>
53 ReviewActionDetail& WithActionId(ActionIdT&& value) { SetActionId(std::forward<ActionIdT>(value)); return *this;}
55
57
62 inline const Aws::String& GetActionName() const { return m_actionName; }
63 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
64 template<typename ActionNameT = Aws::String>
65 void SetActionName(ActionNameT&& value) { m_actionNameHasBeenSet = true; m_actionName = std::forward<ActionNameT>(value); }
66 template<typename ActionNameT = Aws::String>
67 ReviewActionDetail& WithActionName(ActionNameT&& value) { SetActionName(std::forward<ActionNameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetTargetId() const { return m_targetId; }
75 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
76 template<typename TargetIdT = Aws::String>
77 void SetTargetId(TargetIdT&& value) { m_targetIdHasBeenSet = true; m_targetId = std::forward<TargetIdT>(value); }
78 template<typename TargetIdT = Aws::String>
79 ReviewActionDetail& WithTargetId(TargetIdT&& value) { SetTargetId(std::forward<TargetIdT>(value)); return *this;}
81
83
86 inline const Aws::String& GetTargetType() const { return m_targetType; }
87 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
88 template<typename TargetTypeT = Aws::String>
89 void SetTargetType(TargetTypeT&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::forward<TargetTypeT>(value); }
90 template<typename TargetTypeT = Aws::String>
91 ReviewActionDetail& WithTargetType(TargetTypeT&& value) { SetTargetType(std::forward<TargetTypeT>(value)); return *this;}
93
95
99 inline ReviewActionStatus GetStatus() const { return m_status; }
100 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
101 inline void SetStatus(ReviewActionStatus value) { m_statusHasBeenSet = true; m_status = value; }
102 inline ReviewActionDetail& WithStatus(ReviewActionStatus value) { SetStatus(value); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetCompleteTime() const { return m_completeTime; }
110 inline bool CompleteTimeHasBeenSet() const { return m_completeTimeHasBeenSet; }
111 template<typename CompleteTimeT = Aws::Utils::DateTime>
112 void SetCompleteTime(CompleteTimeT&& value) { m_completeTimeHasBeenSet = true; m_completeTime = std::forward<CompleteTimeT>(value); }
113 template<typename CompleteTimeT = Aws::Utils::DateTime>
114 ReviewActionDetail& WithCompleteTime(CompleteTimeT&& value) { SetCompleteTime(std::forward<CompleteTimeT>(value)); return *this;}
116
118
121 inline const Aws::String& GetResult() const { return m_result; }
122 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
123 template<typename ResultT = Aws::String>
124 void SetResult(ResultT&& value) { m_resultHasBeenSet = true; m_result = std::forward<ResultT>(value); }
125 template<typename ResultT = Aws::String>
126 ReviewActionDetail& WithResult(ResultT&& value) { SetResult(std::forward<ResultT>(value)); return *this;}
128
130
133 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
134 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
135 template<typename ErrorCodeT = Aws::String>
136 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::forward<ErrorCodeT>(value); }
137 template<typename ErrorCodeT = Aws::String>
138 ReviewActionDetail& WithErrorCode(ErrorCodeT&& value) { SetErrorCode(std::forward<ErrorCodeT>(value)); return *this;}
140 private:
141
142 Aws::String m_actionId;
143 bool m_actionIdHasBeenSet = false;
144
145 Aws::String m_actionName;
146 bool m_actionNameHasBeenSet = false;
147
148 Aws::String m_targetId;
149 bool m_targetIdHasBeenSet = false;
150
151 Aws::String m_targetType;
152 bool m_targetTypeHasBeenSet = false;
153
155 bool m_statusHasBeenSet = false;
156
157 Aws::Utils::DateTime m_completeTime{};
158 bool m_completeTimeHasBeenSet = false;
159
160 Aws::String m_result;
161 bool m_resultHasBeenSet = false;
162
163 Aws::String m_errorCode;
164 bool m_errorCodeHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace MTurk
169} // namespace Aws
const Aws::String & GetResult() const
ReviewActionDetail & WithErrorCode(ErrorCodeT &&value)
AWS_MTURK_API ReviewActionDetail()=default
ReviewActionDetail & WithCompleteTime(CompleteTimeT &&value)
const Aws::String & GetTargetType() const
ReviewActionDetail & WithActionName(ActionNameT &&value)
ReviewActionDetail & WithTargetType(TargetTypeT &&value)
ReviewActionDetail & WithStatus(ReviewActionStatus value)
void SetCompleteTime(CompleteTimeT &&value)
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTargetId() const
ReviewActionDetail & WithResult(ResultT &&value)
AWS_MTURK_API ReviewActionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ReviewActionDetail & WithTargetId(TargetIdT &&value)
AWS_MTURK_API ReviewActionDetail(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(ReviewActionStatus value)
const Aws::String & GetErrorCode() const
void SetTargetType(TargetTypeT &&value)
void SetActionName(ActionNameT &&value)
ReviewActionDetail & WithActionId(ActionIdT &&value)
const Aws::String & GetActionName() const
const Aws::String & GetActionId() const
const Aws::Utils::DateTime & GetCompleteTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue