AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetHITTypeId(const Aws::String& value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId = value; }
46 inline void SetHITTypeId(Aws::String&& value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId = std::move(value); }
47 inline void SetHITTypeId(const char* value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId.assign(value); }
48 inline UpdateNotificationSettingsRequest& WithHITTypeId(const Aws::String& value) { SetHITTypeId(value); return *this;}
49 inline UpdateNotificationSettingsRequest& WithHITTypeId(Aws::String&& value) { SetHITTypeId(std::move(value)); return *this;}
50 inline UpdateNotificationSettingsRequest& WithHITTypeId(const char* value) { SetHITTypeId(value); return *this;}
52
54
57 inline const NotificationSpecification& GetNotification() const{ return m_notification; }
58 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
59 inline void SetNotification(const NotificationSpecification& value) { m_notificationHasBeenSet = true; m_notification = value; }
60 inline void SetNotification(NotificationSpecification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
64
66
72 inline bool GetActive() const{ return m_active; }
73 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
74 inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
75 inline UpdateNotificationSettingsRequest& WithActive(bool value) { SetActive(value); return *this;}
77 private:
78
79 Aws::String m_hITTypeId;
80 bool m_hITTypeIdHasBeenSet = false;
81
82 NotificationSpecification m_notification;
83 bool m_notificationHasBeenSet = false;
84
85 bool m_active;
86 bool m_activeHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace MTurk
91} // namespace Aws
UpdateNotificationSettingsRequest & WithHITTypeId(const char *value)
UpdateNotificationSettingsRequest & WithActive(bool value)
UpdateNotificationSettingsRequest & WithHITTypeId(Aws::String &&value)
AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateNotificationSettingsRequest & WithNotification(NotificationSpecification &&value)
UpdateNotificationSettingsRequest & WithHITTypeId(const Aws::String &value)
UpdateNotificationSettingsRequest & WithNotification(const NotificationSpecification &value)
AWS_MTURK_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String