/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace MTurk { namespace Model { /** */ class GetFileUploadURLRequest : public MTurkRequest { public: AWS_MTURK_API GetFileUploadURLRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetFileUploadURL"; } AWS_MTURK_API Aws::String SerializePayload() const override; AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the assignment that contains the question with a * FileUploadAnswer.

*/ inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; } /** *

The ID of the assignment that contains the question with a * FileUploadAnswer.

*/ inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; } /** *

The ID of the assignment that contains the question with a * FileUploadAnswer.

*/ inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; } /** *

The ID of the assignment that contains the question with a * FileUploadAnswer.

*/ inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); } /** *

The ID of the assignment that contains the question with a * FileUploadAnswer.

*/ inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); } /** *

The ID of the assignment that contains the question with a * FileUploadAnswer.

*/ inline GetFileUploadURLRequest& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;} /** *

The ID of the assignment that contains the question with a * FileUploadAnswer.

*/ inline GetFileUploadURLRequest& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;} /** *

The ID of the assignment that contains the question with a * FileUploadAnswer.

*/ inline GetFileUploadURLRequest& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;} /** *

The identifier of the question with a FileUploadAnswer, as specified in the * QuestionForm of the HIT.

*/ inline const Aws::String& GetQuestionIdentifier() const{ return m_questionIdentifier; } /** *

The identifier of the question with a FileUploadAnswer, as specified in the * QuestionForm of the HIT.

*/ inline bool QuestionIdentifierHasBeenSet() const { return m_questionIdentifierHasBeenSet; } /** *

The identifier of the question with a FileUploadAnswer, as specified in the * QuestionForm of the HIT.

*/ inline void SetQuestionIdentifier(const Aws::String& value) { m_questionIdentifierHasBeenSet = true; m_questionIdentifier = value; } /** *

The identifier of the question with a FileUploadAnswer, as specified in the * QuestionForm of the HIT.

*/ inline void SetQuestionIdentifier(Aws::String&& value) { m_questionIdentifierHasBeenSet = true; m_questionIdentifier = std::move(value); } /** *

The identifier of the question with a FileUploadAnswer, as specified in the * QuestionForm of the HIT.

*/ inline void SetQuestionIdentifier(const char* value) { m_questionIdentifierHasBeenSet = true; m_questionIdentifier.assign(value); } /** *

The identifier of the question with a FileUploadAnswer, as specified in the * QuestionForm of the HIT.

*/ inline GetFileUploadURLRequest& WithQuestionIdentifier(const Aws::String& value) { SetQuestionIdentifier(value); return *this;} /** *

The identifier of the question with a FileUploadAnswer, as specified in the * QuestionForm of the HIT.

*/ inline GetFileUploadURLRequest& WithQuestionIdentifier(Aws::String&& value) { SetQuestionIdentifier(std::move(value)); return *this;} /** *

The identifier of the question with a FileUploadAnswer, as specified in the * QuestionForm of the HIT.

*/ inline GetFileUploadURLRequest& WithQuestionIdentifier(const char* value) { SetQuestionIdentifier(value); return *this;} private: Aws::String m_assignmentId; bool m_assignmentIdHasBeenSet = false; Aws::String m_questionIdentifier; bool m_questionIdentifierHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws