AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
UpdateNotificationSettingsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mturk-requester/MTurkRequest.h>
9#include <aws/mturk-requester/MTurk_EXPORTS.h>
10#include <aws/mturk-requester/model/NotificationSpecification.h>
11
12#include <utility>
13
14namespace Aws {
15namespace MTurk {
16namespace Model {
17
21 public:
22 AWS_MTURK_API UpdateNotificationSettingsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateNotificationSettings"; }
29
30 AWS_MTURK_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetHITTypeId() const { return m_hITTypeId; }
40 inline bool HITTypeIdHasBeenSet() const { return m_hITTypeIdHasBeenSet; }
41 template <typename HITTypeIdT = Aws::String>
42 void SetHITTypeId(HITTypeIdT&& value) {
43 m_hITTypeIdHasBeenSet = true;
44 m_hITTypeId = std::forward<HITTypeIdT>(value);
45 }
46 template <typename HITTypeIdT = Aws::String>
48 SetHITTypeId(std::forward<HITTypeIdT>(value));
49 return *this;
50 }
52
54
57 inline const NotificationSpecification& GetNotification() const { return m_notification; }
58 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
59 template <typename NotificationT = NotificationSpecification>
60 void SetNotification(NotificationT&& value) {
61 m_notificationHasBeenSet = true;
62 m_notification = std::forward<NotificationT>(value);
63 }
64 template <typename NotificationT = NotificationSpecification>
66 SetNotification(std::forward<NotificationT>(value));
67 return *this;
68 }
70
72
78 inline bool GetActive() const { return m_active; }
79 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
80 inline void SetActive(bool value) {
81 m_activeHasBeenSet = true;
82 m_active = value;
83 }
85 SetActive(value);
86 return *this;
87 }
89 private:
90 Aws::String m_hITTypeId;
91
92 NotificationSpecification m_notification;
93
94 bool m_active{false};
95 bool m_hITTypeIdHasBeenSet = false;
96 bool m_notificationHasBeenSet = false;
97 bool m_activeHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace MTurk
102} // 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