AWS SDK for C++  1.9.104
AWS SDK for C++
GetAssignmentRequest.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 "GetAssignment"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
41 
45  inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
46 
50  inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
51 
55  inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
56 
60  inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
61 
65  inline GetAssignmentRequest& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
66 
70  inline GetAssignmentRequest& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
71 
75  inline GetAssignmentRequest& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
76 
77  private:
78 
79  Aws::String m_assignmentId;
80  bool m_assignmentIdHasBeenSet;
81  };
82 
83 } // namespace Model
84 } // namespace MTurk
85 } // namespace Aws
Aws::MTurk::Model::GetAssignmentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetAssignmentRequest.h:30
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::GetAssignmentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MTurk::Model::GetAssignmentRequest::GetAssignmentRequest
GetAssignmentRequest()
Aws::MTurk::Model::GetAssignmentRequest
Definition: GetAssignmentRequest.h:22
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
MTurkRequest.h
Aws::MTurk::Model::GetAssignmentRequest::GetAssignmentId
const Aws::String & GetAssignmentId() const
Definition: GetAssignmentRequest.h:40
Aws::MTurk::Model::GetAssignmentRequest::AssignmentIdHasBeenSet
bool AssignmentIdHasBeenSet() const
Definition: GetAssignmentRequest.h:45
Aws::MTurk::Model::GetAssignmentRequest::WithAssignmentId
GetAssignmentRequest & WithAssignmentId(Aws::String &&value)
Definition: GetAssignmentRequest.h:70
Aws::MTurk::Model::GetAssignmentRequest::WithAssignmentId
GetAssignmentRequest & WithAssignmentId(const Aws::String &value)
Definition: GetAssignmentRequest.h:65
AWSString.h
Aws::MTurk::Model::GetAssignmentRequest::SetAssignmentId
void SetAssignmentId(const char *value)
Definition: GetAssignmentRequest.h:60
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::GetAssignmentRequest::SetAssignmentId
void SetAssignmentId(Aws::String &&value)
Definition: GetAssignmentRequest.h:55
Aws::MTurk::Model::GetAssignmentRequest::WithAssignmentId
GetAssignmentRequest & WithAssignmentId(const char *value)
Definition: GetAssignmentRequest.h:75
Aws::MTurk::Model::GetAssignmentRequest::SetAssignmentId
void SetAssignmentId(const Aws::String &value)
Definition: GetAssignmentRequest.h:50
Aws::MTurk::Model::GetAssignmentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override