AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateNotificationSettingsRequest.h
1
6#pragma once
7#include <aws/mturk-requester/MTurk_EXPORTS.h>
8#include <aws/mturk-requester/MTurkRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mturk-requester/model/NotificationSpecification.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MTurk
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MTURK_API UpdateNotificationSettingsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateNotificationSettings"; }
32
33 AWS_MTURK_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetHITTypeId() const { return m_hITTypeId; }
44 inline bool HITTypeIdHasBeenSet() const { return m_hITTypeIdHasBeenSet; }
45 template<typename HITTypeIdT = Aws::String>
46 void SetHITTypeId(HITTypeIdT&& value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId = std::forward<HITTypeIdT>(value); }
47 template<typename HITTypeIdT = Aws::String>
48 UpdateNotificationSettingsRequest& WithHITTypeId(HITTypeIdT&& value) { SetHITTypeId(std::forward<HITTypeIdT>(value)); return *this;}
50
52
55 inline const NotificationSpecification& GetNotification() const { return m_notification; }
56 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
57 template<typename NotificationT = NotificationSpecification>
58 void SetNotification(NotificationT&& value) { m_notificationHasBeenSet = true; m_notification = std::forward<NotificationT>(value); }
59 template<typename NotificationT = NotificationSpecification>
60 UpdateNotificationSettingsRequest& WithNotification(NotificationT&& value) { SetNotification(std::forward<NotificationT>(value)); return *this;}
62
64
70 inline bool GetActive() const { return m_active; }
71 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
72 inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
73 inline UpdateNotificationSettingsRequest& WithActive(bool value) { SetActive(value); return *this;}
75 private:
76
77 Aws::String m_hITTypeId;
78 bool m_hITTypeIdHasBeenSet = false;
79
80 NotificationSpecification m_notification;
81 bool m_notificationHasBeenSet = false;
82
83 bool m_active{false};
84 bool m_activeHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace MTurk
89} // namespace Aws
UpdateNotificationSettingsRequest & WithActive(bool value)
AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MTURK_API Aws::String SerializePayload() const override
UpdateNotificationSettingsRequest & WithNotification(NotificationT &&value)
UpdateNotificationSettingsRequest & WithHITTypeId(HITTypeIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String