AWS SDK for C++  1.9.105
AWS SDK for C++
GetAssignmentResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace MTurk
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Assignment& GetAssignment() const{ return m_assignment; }
40 
44  inline void SetAssignment(const Assignment& value) { m_assignment = value; }
45 
49  inline void SetAssignment(Assignment&& value) { m_assignment = std::move(value); }
50 
54  inline GetAssignmentResult& WithAssignment(const Assignment& value) { SetAssignment(value); return *this;}
55 
59  inline GetAssignmentResult& WithAssignment(Assignment&& value) { SetAssignment(std::move(value)); return *this;}
60 
61 
66  inline const HIT& GetHIT() const{ return m_hIT; }
67 
72  inline void SetHIT(const HIT& value) { m_hIT = value; }
73 
78  inline void SetHIT(HIT&& value) { m_hIT = std::move(value); }
79 
84  inline GetAssignmentResult& WithHIT(const HIT& value) { SetHIT(value); return *this;}
85 
90  inline GetAssignmentResult& WithHIT(HIT&& value) { SetHIT(std::move(value)); return *this;}
91 
92  private:
93 
94  Assignment m_assignment;
95 
96  HIT m_hIT;
97  };
98 
99 } // namespace Model
100 } // namespace MTurk
101 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::MTurk::Model::GetAssignmentResult::WithAssignment
GetAssignmentResult & WithAssignment(const Assignment &value)
Definition: GetAssignmentResult.h:54
Aws::MTurk::Model::GetAssignmentResult::SetHIT
void SetHIT(HIT &&value)
Definition: GetAssignmentResult.h:78
Aws::MTurk::Model::GetAssignmentResult::GetAssignment
const Assignment & GetAssignment() const
Definition: GetAssignmentResult.h:39
Aws::MTurk::Model::GetAssignmentResult::GetAssignmentResult
GetAssignmentResult()
Aws::MTurk::Model::GetAssignmentResult::SetAssignment
void SetAssignment(const Assignment &value)
Definition: GetAssignmentResult.h:44
Assignment.h
Aws::MTurk::Model::GetAssignmentResult::WithHIT
GetAssignmentResult & WithHIT(const HIT &value)
Definition: GetAssignmentResult.h:84
Aws::MTurk::Model::GetAssignmentResult::GetHIT
const HIT & GetHIT() const
Definition: GetAssignmentResult.h:66
Aws::MTurk::Model::Assignment
Definition: Assignment.h:36
Aws::MTurk::Model::GetAssignmentResult::GetAssignmentResult
GetAssignmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MTurk::Model::GetAssignmentResult::operator=
GetAssignmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MTurk::Model::GetAssignmentResult::SetHIT
void SetHIT(const HIT &value)
Definition: GetAssignmentResult.h:72
Aws::MTurk::Model::GetAssignmentResult::SetAssignment
void SetAssignment(Assignment &&value)
Definition: GetAssignmentResult.h:49
Aws::MTurk::Model::GetAssignmentResult::WithHIT
GetAssignmentResult & WithHIT(HIT &&value)
Definition: GetAssignmentResult.h:90
Aws::MTurk::Model::HIT
Definition: HIT.h:39
Aws::MTurk::Model::GetAssignmentResult
Definition: GetAssignmentResult.h:29
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
HIT.h
Aws::MTurk::Model::GetAssignmentResult::WithAssignment
GetAssignmentResult & WithAssignment(Assignment &&value)
Definition: GetAssignmentResult.h:59