/** * 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 GetHITRequest : public MTurkRequest { public: AWS_MTURK_API GetHITRequest(); // 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 "GetHIT"; } AWS_MTURK_API Aws::String SerializePayload() const override; AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the HIT to be retrieved.

*/ inline const Aws::String& GetHITId() const{ return m_hITId; } /** *

The ID of the HIT to be retrieved.

*/ inline bool HITIdHasBeenSet() const { return m_hITIdHasBeenSet; } /** *

The ID of the HIT to be retrieved.

*/ inline void SetHITId(const Aws::String& value) { m_hITIdHasBeenSet = true; m_hITId = value; } /** *

The ID of the HIT to be retrieved.

*/ inline void SetHITId(Aws::String&& value) { m_hITIdHasBeenSet = true; m_hITId = std::move(value); } /** *

The ID of the HIT to be retrieved.

*/ inline void SetHITId(const char* value) { m_hITIdHasBeenSet = true; m_hITId.assign(value); } /** *

The ID of the HIT to be retrieved.

*/ inline GetHITRequest& WithHITId(const Aws::String& value) { SetHITId(value); return *this;} /** *

The ID of the HIT to be retrieved.

*/ inline GetHITRequest& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;} /** *

The ID of the HIT to be retrieved.

*/ inline GetHITRequest& WithHITId(const char* value) { SetHITId(value); return *this;} private: Aws::String m_hITId; bool m_hITIdHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws