AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
GetAssignmentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mturk-requester/MTurk_EXPORTS.h>
10#include <aws/mturk-requester/model/Assignment.h>
11#include <aws/mturk-requester/model/HIT.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace MTurk {
25namespace Model {
27 public:
28 AWS_MTURK_API GetAssignmentResult() = default;
31
33
36 inline const Assignment& GetAssignment() const { return m_assignment; }
37 template <typename AssignmentT = Assignment>
38 void SetAssignment(AssignmentT&& value) {
39 m_assignmentHasBeenSet = true;
40 m_assignment = std::forward<AssignmentT>(value);
41 }
42 template <typename AssignmentT = Assignment>
43 GetAssignmentResult& WithAssignment(AssignmentT&& value) {
44 SetAssignment(std::forward<AssignmentT>(value));
45 return *this;
46 }
48
50
54 inline const HIT& GetHIT() const { return m_hIT; }
55 template <typename HITT = HIT>
56 void SetHIT(HITT&& value) {
57 m_hITHasBeenSet = true;
58 m_hIT = std::forward<HITT>(value);
59 }
60 template <typename HITT = HIT>
62 SetHIT(std::forward<HITT>(value));
63 return *this;
64 }
66
68
69 inline const Aws::String& GetRequestId() const { return m_requestId; }
70 template <typename RequestIdT = Aws::String>
71 void SetRequestId(RequestIdT&& value) {
72 m_requestIdHasBeenSet = true;
73 m_requestId = std::forward<RequestIdT>(value);
74 }
75 template <typename RequestIdT = Aws::String>
76 GetAssignmentResult& WithRequestId(RequestIdT&& value) {
77 SetRequestId(std::forward<RequestIdT>(value));
78 return *this;
79 }
81 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
82
83 private:
84 Assignment m_assignment;
85
86 HIT m_hIT;
87
88 Aws::String m_requestId;
89 Aws::Http::HttpResponseCode m_HttpResponseCode;
90 bool m_assignmentHasBeenSet = false;
91 bool m_hITHasBeenSet = false;
92 bool m_requestIdHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace MTurk
97} // namespace Aws
AWS_MTURK_API GetAssignmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAssignmentResult & WithAssignment(AssignmentT &&value)
AWS_MTURK_API GetAssignmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MTURK_API GetAssignmentResult()=default
const Aws::String & GetRequestId() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetAssignmentResult & WithRequestId(RequestIdT &&value)
GetAssignmentResult & WithHIT(HITT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue