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

The ID of the HIT type whose notification specification is being updated. *

*/ inline const Aws::String& GetHITTypeId() const{ return m_hITTypeId; } /** *

The ID of the HIT type whose notification specification is being updated. *

*/ inline bool HITTypeIdHasBeenSet() const { return m_hITTypeIdHasBeenSet; } /** *

The ID of the HIT type whose notification specification is being updated. *

*/ inline void SetHITTypeId(const Aws::String& value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId = value; } /** *

The ID of the HIT type whose notification specification is being updated. *

*/ inline void SetHITTypeId(Aws::String&& value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId = std::move(value); } /** *

The ID of the HIT type whose notification specification is being updated. *

*/ inline void SetHITTypeId(const char* value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId.assign(value); } /** *

The ID of the HIT type whose notification specification is being updated. *

*/ inline UpdateNotificationSettingsRequest& WithHITTypeId(const Aws::String& value) { SetHITTypeId(value); return *this;} /** *

The ID of the HIT type whose notification specification is being updated. *

*/ inline UpdateNotificationSettingsRequest& WithHITTypeId(Aws::String&& value) { SetHITTypeId(std::move(value)); return *this;} /** *

The ID of the HIT type whose notification specification is being updated. *

*/ inline UpdateNotificationSettingsRequest& WithHITTypeId(const char* value) { SetHITTypeId(value); return *this;} /** *

The notification specification for the HIT type.

*/ inline const NotificationSpecification& GetNotification() const{ return m_notification; } /** *

The notification specification for the HIT type.

*/ inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; } /** *

The notification specification for the HIT type.

*/ inline void SetNotification(const NotificationSpecification& value) { m_notificationHasBeenSet = true; m_notification = value; } /** *

The notification specification for the HIT type.

*/ inline void SetNotification(NotificationSpecification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); } /** *

The notification specification for the HIT type.

*/ inline UpdateNotificationSettingsRequest& WithNotification(const NotificationSpecification& value) { SetNotification(value); return *this;} /** *

The notification specification for the HIT type.

*/ inline UpdateNotificationSettingsRequest& WithNotification(NotificationSpecification&& value) { SetNotification(std::move(value)); return *this;} /** *

Specifies whether notifications are sent for HITs of this HIT type, * according to the notification specification. You must specify either the * Notification parameter or the Active parameter for the call to * UpdateNotificationSettings to succeed.

*/ inline bool GetActive() const{ return m_active; } /** *

Specifies whether notifications are sent for HITs of this HIT type, * according to the notification specification. You must specify either the * Notification parameter or the Active parameter for the call to * UpdateNotificationSettings to succeed.

*/ inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; } /** *

Specifies whether notifications are sent for HITs of this HIT type, * according to the notification specification. You must specify either the * Notification parameter or the Active parameter for the call to * UpdateNotificationSettings to succeed.

*/ inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; } /** *

Specifies whether notifications are sent for HITs of this HIT type, * according to the notification specification. You must specify either the * Notification parameter or the Active parameter for the call to * UpdateNotificationSettings to succeed.

*/ inline UpdateNotificationSettingsRequest& WithActive(bool value) { SetActive(value); return *this;} private: Aws::String m_hITTypeId; bool m_hITTypeIdHasBeenSet = false; NotificationSpecification m_notification; bool m_notificationHasBeenSet = false; bool m_active; bool m_activeHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws