/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace MTurk { namespace Model { class CreateHITResult { public: AWS_MTURK_API CreateHITResult(); AWS_MTURK_API CreateHITResult(const Aws::AmazonWebServiceResult& result); AWS_MTURK_API CreateHITResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Contains the newly created HIT data. For a description of the HIT data * structure as it appears in responses, see the HIT Data Structure documentation. *

*/ inline const HIT& GetHIT() const{ return m_hIT; } /** *

Contains the newly created HIT data. For a description of the HIT data * structure as it appears in responses, see the HIT Data Structure documentation. *

*/ inline void SetHIT(const HIT& value) { m_hIT = value; } /** *

Contains the newly created HIT data. For a description of the HIT data * structure as it appears in responses, see the HIT Data Structure documentation. *

*/ inline void SetHIT(HIT&& value) { m_hIT = std::move(value); } /** *

Contains the newly created HIT data. For a description of the HIT data * structure as it appears in responses, see the HIT Data Structure documentation. *

*/ inline CreateHITResult& WithHIT(const HIT& value) { SetHIT(value); return *this;} /** *

Contains the newly created HIT data. For a description of the HIT data * structure as it appears in responses, see the HIT Data Structure documentation. *

*/ inline CreateHITResult& WithHIT(HIT&& value) { SetHIT(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateHITResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateHITResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateHITResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: HIT m_hIT; Aws::String m_requestId; }; } // namespace Model } // namespace MTurk } // namespace Aws