AWS SDK for C++  1.9.106
AWS SDK for C++
UpdateHITReviewStatusRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace MTurk
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "UpdateHITReviewStatus"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetHITId() const{ return m_hITId; }
41 
45  inline bool HITIdHasBeenSet() const { return m_hITIdHasBeenSet; }
46 
50  inline void SetHITId(const Aws::String& value) { m_hITIdHasBeenSet = true; m_hITId = value; }
51 
55  inline void SetHITId(Aws::String&& value) { m_hITIdHasBeenSet = true; m_hITId = std::move(value); }
56 
60  inline void SetHITId(const char* value) { m_hITIdHasBeenSet = true; m_hITId.assign(value); }
61 
65  inline UpdateHITReviewStatusRequest& WithHITId(const Aws::String& value) { SetHITId(value); return *this;}
66 
70  inline UpdateHITReviewStatusRequest& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;}
71 
75  inline UpdateHITReviewStatusRequest& WithHITId(const char* value) { SetHITId(value); return *this;}
76 
77 
85  inline bool GetRevert() const{ return m_revert; }
86 
94  inline bool RevertHasBeenSet() const { return m_revertHasBeenSet; }
95 
103  inline void SetRevert(bool value) { m_revertHasBeenSet = true; m_revert = value; }
104 
112  inline UpdateHITReviewStatusRequest& WithRevert(bool value) { SetRevert(value); return *this;}
113 
114  private:
115 
116  Aws::String m_hITId;
117  bool m_hITIdHasBeenSet;
118 
119  bool m_revert;
120  bool m_revertHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace MTurk
125 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::UpdateHITReviewStatusRequest
Definition: UpdateHITReviewStatusRequest.h:22
Aws::MTurk::Model::UpdateHITReviewStatusRequest::HITIdHasBeenSet
bool HITIdHasBeenSet() const
Definition: UpdateHITReviewStatusRequest.h:45
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
Aws::MTurk::Model::UpdateHITReviewStatusRequest::SetHITId
void SetHITId(const Aws::String &value)
Definition: UpdateHITReviewStatusRequest.h:50
MTurkRequest.h
Aws::MTurk::Model::UpdateHITReviewStatusRequest::SetRevert
void SetRevert(bool value)
Definition: UpdateHITReviewStatusRequest.h:103
Aws::MTurk::Model::UpdateHITReviewStatusRequest::UpdateHITReviewStatusRequest
UpdateHITReviewStatusRequest()
Aws::MTurk::Model::UpdateHITReviewStatusRequest::WithHITId
UpdateHITReviewStatusRequest & WithHITId(const char *value)
Definition: UpdateHITReviewStatusRequest.h:75
Aws::MTurk::Model::UpdateHITReviewStatusRequest::RevertHasBeenSet
bool RevertHasBeenSet() const
Definition: UpdateHITReviewStatusRequest.h:94
AWSString.h
Aws::MTurk::Model::UpdateHITReviewStatusRequest::WithHITId
UpdateHITReviewStatusRequest & WithHITId(const Aws::String &value)
Definition: UpdateHITReviewStatusRequest.h:65
Aws::MTurk::Model::UpdateHITReviewStatusRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateHITReviewStatusRequest.h:30
Aws::MTurk::Model::UpdateHITReviewStatusRequest::GetHITId
const Aws::String & GetHITId() const
Definition: UpdateHITReviewStatusRequest.h:40
Aws::MTurk::Model::UpdateHITReviewStatusRequest::SetHITId
void SetHITId(Aws::String &&value)
Definition: UpdateHITReviewStatusRequest.h:55
Aws::MTurk::Model::UpdateHITReviewStatusRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MTurk::Model::UpdateHITReviewStatusRequest::WithHITId
UpdateHITReviewStatusRequest & WithHITId(Aws::String &&value)
Definition: UpdateHITReviewStatusRequest.h:70
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::UpdateHITReviewStatusRequest::WithRevert
UpdateHITReviewStatusRequest & WithRevert(bool value)
Definition: UpdateHITReviewStatusRequest.h:112
Aws::MTurk::Model::UpdateHITReviewStatusRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::UpdateHITReviewStatusRequest::GetRevert
bool GetRevert() const
Definition: UpdateHITReviewStatusRequest.h:85
Aws::MTurk::Model::UpdateHITReviewStatusRequest::SetHITId
void SetHITId(const char *value)
Definition: UpdateHITReviewStatusRequest.h:60