/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace MTurk { namespace Model { /** */ class UpdateExpirationForHITRequest : public MTurkRequest { public: AWS_MTURK_API UpdateExpirationForHITRequest(); // 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 "UpdateExpirationForHIT"; } AWS_MTURK_API Aws::String SerializePayload() const override; AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The HIT to update.

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

The HIT to update.

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

The HIT to update.

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

The HIT to update.

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

The HIT to update.

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

The HIT to update.

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

The HIT to update.

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

The HIT to update.

*/ inline UpdateExpirationForHITRequest& WithHITId(const char* value) { SetHITId(value); return *this;} /** *

The date and time at which you want the HIT to expire

*/ inline const Aws::Utils::DateTime& GetExpireAt() const{ return m_expireAt; } /** *

The date and time at which you want the HIT to expire

*/ inline bool ExpireAtHasBeenSet() const { return m_expireAtHasBeenSet; } /** *

The date and time at which you want the HIT to expire

*/ inline void SetExpireAt(const Aws::Utils::DateTime& value) { m_expireAtHasBeenSet = true; m_expireAt = value; } /** *

The date and time at which you want the HIT to expire

*/ inline void SetExpireAt(Aws::Utils::DateTime&& value) { m_expireAtHasBeenSet = true; m_expireAt = std::move(value); } /** *

The date and time at which you want the HIT to expire

*/ inline UpdateExpirationForHITRequest& WithExpireAt(const Aws::Utils::DateTime& value) { SetExpireAt(value); return *this;} /** *

The date and time at which you want the HIT to expire

*/ inline UpdateExpirationForHITRequest& WithExpireAt(Aws::Utils::DateTime&& value) { SetExpireAt(std::move(value)); return *this;} private: Aws::String m_hITId; bool m_hITIdHasBeenSet = false; Aws::Utils::DateTime m_expireAt; bool m_expireAtHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws