AWS SDK for C++  1.9.105
AWS SDK for C++
GetFileUploadURLRequest.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 "GetFileUploadURL"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
42 
47  inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
48 
53  inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
54 
59  inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
60 
65  inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
66 
71  inline GetFileUploadURLRequest& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
72 
77  inline GetFileUploadURLRequest& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
78 
83  inline GetFileUploadURLRequest& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
84 
85 
90  inline const Aws::String& GetQuestionIdentifier() const{ return m_questionIdentifier; }
91 
96  inline bool QuestionIdentifierHasBeenSet() const { return m_questionIdentifierHasBeenSet; }
97 
102  inline void SetQuestionIdentifier(const Aws::String& value) { m_questionIdentifierHasBeenSet = true; m_questionIdentifier = value; }
103 
108  inline void SetQuestionIdentifier(Aws::String&& value) { m_questionIdentifierHasBeenSet = true; m_questionIdentifier = std::move(value); }
109 
114  inline void SetQuestionIdentifier(const char* value) { m_questionIdentifierHasBeenSet = true; m_questionIdentifier.assign(value); }
115 
120  inline GetFileUploadURLRequest& WithQuestionIdentifier(const Aws::String& value) { SetQuestionIdentifier(value); return *this;}
121 
126  inline GetFileUploadURLRequest& WithQuestionIdentifier(Aws::String&& value) { SetQuestionIdentifier(std::move(value)); return *this;}
127 
132  inline GetFileUploadURLRequest& WithQuestionIdentifier(const char* value) { SetQuestionIdentifier(value); return *this;}
133 
134  private:
135 
136  Aws::String m_assignmentId;
137  bool m_assignmentIdHasBeenSet;
138 
139  Aws::String m_questionIdentifier;
140  bool m_questionIdentifierHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace MTurk
145 } // namespace Aws
Aws::MTurk::Model::GetFileUploadURLRequest::GetQuestionIdentifier
const Aws::String & GetQuestionIdentifier() const
Definition: GetFileUploadURLRequest.h:90
Aws::MTurk::Model::GetFileUploadURLRequest::SetQuestionIdentifier
void SetQuestionIdentifier(Aws::String &&value)
Definition: GetFileUploadURLRequest.h:108
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::GetFileUploadURLRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetFileUploadURLRequest.h:30
Aws::MTurk::Model::GetFileUploadURLRequest::WithQuestionIdentifier
GetFileUploadURLRequest & WithQuestionIdentifier(Aws::String &&value)
Definition: GetFileUploadURLRequest.h:126
Aws::MTurk::Model::GetFileUploadURLRequest::SetAssignmentId
void SetAssignmentId(const Aws::String &value)
Definition: GetFileUploadURLRequest.h:53
Aws::MTurk::Model::GetFileUploadURLRequest::QuestionIdentifierHasBeenSet
bool QuestionIdentifierHasBeenSet() const
Definition: GetFileUploadURLRequest.h:96
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
Aws::MTurk::Model::GetFileUploadURLRequest::WithQuestionIdentifier
GetFileUploadURLRequest & WithQuestionIdentifier(const Aws::String &value)
Definition: GetFileUploadURLRequest.h:120
Aws::MTurk::Model::GetFileUploadURLRequest::SetAssignmentId
void SetAssignmentId(Aws::String &&value)
Definition: GetFileUploadURLRequest.h:59
MTurkRequest.h
Aws::MTurk::Model::GetFileUploadURLRequest::SetQuestionIdentifier
void SetQuestionIdentifier(const char *value)
Definition: GetFileUploadURLRequest.h:114
Aws::MTurk::Model::GetFileUploadURLRequest::GetFileUploadURLRequest
GetFileUploadURLRequest()
Aws::MTurk::Model::GetFileUploadURLRequest::SetAssignmentId
void SetAssignmentId(const char *value)
Definition: GetFileUploadURLRequest.h:65
Aws::MTurk::Model::GetFileUploadURLRequest
Definition: GetFileUploadURLRequest.h:22
AWSString.h
Aws::MTurk::Model::GetFileUploadURLRequest::WithAssignmentId
GetFileUploadURLRequest & WithAssignmentId(Aws::String &&value)
Definition: GetFileUploadURLRequest.h:77
Aws::MTurk::Model::GetFileUploadURLRequest::WithAssignmentId
GetFileUploadURLRequest & WithAssignmentId(const Aws::String &value)
Definition: GetFileUploadURLRequest.h:71
Aws::MTurk::Model::GetFileUploadURLRequest::AssignmentIdHasBeenSet
bool AssignmentIdHasBeenSet() const
Definition: GetFileUploadURLRequest.h:47
MTurk_EXPORTS.h
Aws::MTurk::Model::GetFileUploadURLRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::GetFileUploadURLRequest::GetAssignmentId
const Aws::String & GetAssignmentId() const
Definition: GetFileUploadURLRequest.h:41
Aws::MTurk::Model::GetFileUploadURLRequest::SetQuestionIdentifier
void SetQuestionIdentifier(const Aws::String &value)
Definition: GetFileUploadURLRequest.h:102
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::GetFileUploadURLRequest::WithQuestionIdentifier
GetFileUploadURLRequest & WithQuestionIdentifier(const char *value)
Definition: GetFileUploadURLRequest.h:132
Aws::MTurk::Model::GetFileUploadURLRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MTurk::Model::GetFileUploadURLRequest::WithAssignmentId
GetFileUploadURLRequest & WithAssignmentId(const char *value)
Definition: GetFileUploadURLRequest.h:83