AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetAssignmentResult.h
1
6#pragma once
7#include <aws/mturk-requester/MTurk_EXPORTS.h>
8#include <aws/mturk-requester/model/Assignment.h>
9#include <aws/mturk-requester/model/HIT.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace MTurk
26{
27namespace Model
28{
30 {
31 public:
32 AWS_MTURK_API GetAssignmentResult();
35
36
38
41 inline const Assignment& GetAssignment() const{ return m_assignment; }
42 inline void SetAssignment(const Assignment& value) { m_assignment = value; }
43 inline void SetAssignment(Assignment&& value) { m_assignment = std::move(value); }
44 inline GetAssignmentResult& WithAssignment(const Assignment& value) { SetAssignment(value); return *this;}
45 inline GetAssignmentResult& WithAssignment(Assignment&& value) { SetAssignment(std::move(value)); return *this;}
47
49
53 inline const HIT& GetHIT() const{ return m_hIT; }
54 inline void SetHIT(const HIT& value) { m_hIT = value; }
55 inline void SetHIT(HIT&& value) { m_hIT = std::move(value); }
56 inline GetAssignmentResult& WithHIT(const HIT& value) { SetHIT(value); return *this;}
57 inline GetAssignmentResult& WithHIT(HIT&& value) { SetHIT(std::move(value)); return *this;}
59
61
62 inline const Aws::String& GetRequestId() const{ return m_requestId; }
63 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
64 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
65 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
66 inline GetAssignmentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
67 inline GetAssignmentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
68 inline GetAssignmentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
70 private:
71
72 Assignment m_assignment;
73
74 HIT m_hIT;
75
76 Aws::String m_requestId;
77 };
78
79} // namespace Model
80} // namespace MTurk
81} // namespace Aws
AWS_MTURK_API GetAssignmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAssignmentResult & WithHIT(const HIT &value)
void SetAssignment(const Assignment &value)
AWS_MTURK_API GetAssignmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRequestId(const Aws::String &value)
GetAssignmentResult & WithRequestId(const Aws::String &value)
const Aws::String & GetRequestId() const
GetAssignmentResult & WithRequestId(const char *value)
GetAssignmentResult & WithAssignment(Assignment &&value)
GetAssignmentResult & WithHIT(HIT &&value)
GetAssignmentResult & WithAssignment(const Assignment &value)
GetAssignmentResult & WithRequestId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue