AWS SDK for C++  1.9.104
AWS SDK for C++
ReviewReport.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace MTurk
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
47  inline const Aws::Vector<ReviewResultDetail>& GetReviewResults() const{ return m_reviewResults; }
48 
53  inline bool ReviewResultsHasBeenSet() const { return m_reviewResultsHasBeenSet; }
54 
59  inline void SetReviewResults(const Aws::Vector<ReviewResultDetail>& value) { m_reviewResultsHasBeenSet = true; m_reviewResults = value; }
60 
65  inline void SetReviewResults(Aws::Vector<ReviewResultDetail>&& value) { m_reviewResultsHasBeenSet = true; m_reviewResults = std::move(value); }
66 
71  inline ReviewReport& WithReviewResults(const Aws::Vector<ReviewResultDetail>& value) { SetReviewResults(value); return *this;}
72 
77  inline ReviewReport& WithReviewResults(Aws::Vector<ReviewResultDetail>&& value) { SetReviewResults(std::move(value)); return *this;}
78 
83  inline ReviewReport& AddReviewResults(const ReviewResultDetail& value) { m_reviewResultsHasBeenSet = true; m_reviewResults.push_back(value); return *this; }
84 
89  inline ReviewReport& AddReviewResults(ReviewResultDetail&& value) { m_reviewResultsHasBeenSet = true; m_reviewResults.push_back(std::move(value)); return *this; }
90 
91 
96  inline const Aws::Vector<ReviewActionDetail>& GetReviewActions() const{ return m_reviewActions; }
97 
102  inline bool ReviewActionsHasBeenSet() const { return m_reviewActionsHasBeenSet; }
103 
108  inline void SetReviewActions(const Aws::Vector<ReviewActionDetail>& value) { m_reviewActionsHasBeenSet = true; m_reviewActions = value; }
109 
114  inline void SetReviewActions(Aws::Vector<ReviewActionDetail>&& value) { m_reviewActionsHasBeenSet = true; m_reviewActions = std::move(value); }
115 
120  inline ReviewReport& WithReviewActions(const Aws::Vector<ReviewActionDetail>& value) { SetReviewActions(value); return *this;}
121 
126  inline ReviewReport& WithReviewActions(Aws::Vector<ReviewActionDetail>&& value) { SetReviewActions(std::move(value)); return *this;}
127 
132  inline ReviewReport& AddReviewActions(const ReviewActionDetail& value) { m_reviewActionsHasBeenSet = true; m_reviewActions.push_back(value); return *this; }
133 
138  inline ReviewReport& AddReviewActions(ReviewActionDetail&& value) { m_reviewActionsHasBeenSet = true; m_reviewActions.push_back(std::move(value)); return *this; }
139 
140  private:
141 
142  Aws::Vector<ReviewResultDetail> m_reviewResults;
143  bool m_reviewResultsHasBeenSet;
144 
145  Aws::Vector<ReviewActionDetail> m_reviewActions;
146  bool m_reviewActionsHasBeenSet;
147  };
148 
149 } // namespace Model
150 } // namespace MTurk
151 } // namespace Aws
Aws::MTurk::Model::ReviewReport::GetReviewResults
const Aws::Vector< ReviewResultDetail > & GetReviewResults() const
Definition: ReviewReport.h:47
Aws::MTurk::Model::ReviewReport::SetReviewResults
void SetReviewResults(Aws::Vector< ReviewResultDetail > &&value)
Definition: ReviewReport.h:65
Aws::MTurk::Model::ReviewReport::AddReviewActions
ReviewReport & AddReviewActions(const ReviewActionDetail &value)
Definition: ReviewReport.h:132
Aws::MTurk::Model::ReviewReport::SetReviewResults
void SetReviewResults(const Aws::Vector< ReviewResultDetail > &value)
Definition: ReviewReport.h:59
Aws::MTurk::Model::ReviewReport::WithReviewActions
ReviewReport & WithReviewActions(const Aws::Vector< ReviewActionDetail > &value)
Definition: ReviewReport.h:120
Aws::MTurk::Model::ReviewReport::SetReviewActions
void SetReviewActions(const Aws::Vector< ReviewActionDetail > &value)
Definition: ReviewReport.h:108
Aws::MTurk::Model::ReviewActionDetail
Definition: ReviewActionDetail.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MTurk::Model::ReviewReport::SetReviewActions
void SetReviewActions(Aws::Vector< ReviewActionDetail > &&value)
Definition: ReviewReport.h:114
Aws::MTurk::Model::ReviewReport
Definition: ReviewReport.h:35
Aws::MTurk::Model::ReviewReport::ReviewReport
ReviewReport()
AWSVector.h
Aws::MTurk::Model::ReviewResultDetail
Definition: ReviewResultDetail.h:33
Aws::MTurk::Model::ReviewReport::ReviewResultsHasBeenSet
bool ReviewResultsHasBeenSet() const
Definition: ReviewReport.h:53
Aws::MTurk::Model::ReviewReport::operator=
ReviewReport & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::ReviewReport::AddReviewResults
ReviewReport & AddReviewResults(ReviewResultDetail &&value)
Definition: ReviewReport.h:89
Aws::MTurk::Model::ReviewReport::WithReviewResults
ReviewReport & WithReviewResults(const Aws::Vector< ReviewResultDetail > &value)
Definition: ReviewReport.h:71
Aws::MTurk::Model::ReviewReport::AddReviewActions
ReviewReport & AddReviewActions(ReviewActionDetail &&value)
Definition: ReviewReport.h:138
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
ReviewActionDetail.h
Aws::MTurk::Model::ReviewReport::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
ReviewResultDetail.h
Aws::MTurk::Model::ReviewReport::WithReviewActions
ReviewReport & WithReviewActions(Aws::Vector< ReviewActionDetail > &&value)
Definition: ReviewReport.h:126
MTurk_EXPORTS.h
Aws::MTurk::Model::ReviewReport::AddReviewResults
ReviewReport & AddReviewResults(const ReviewResultDetail &value)
Definition: ReviewReport.h:83
Aws::MTurk::Model::ReviewReport::WithReviewResults
ReviewReport & WithReviewResults(Aws::Vector< ReviewResultDetail > &&value)
Definition: ReviewReport.h:77
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::ReviewReport::GetReviewActions
const Aws::Vector< ReviewActionDetail > & GetReviewActions() const
Definition: ReviewReport.h:96
Aws::MTurk::Model::ReviewReport::ReviewActionsHasBeenSet
bool ReviewActionsHasBeenSet() const
Definition: ReviewReport.h:102
Aws::MTurk::Model::ReviewReport::ReviewReport
ReviewReport(Aws::Utils::Json::JsonView jsonValue)