AWS SDK for C++  1.9.104
AWS SDK for C++
UpdateNotificationSettingsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace MTurk
16 {
17 namespace 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::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetHITTypeId() const{ return m_hITTypeId; }
43 
48  inline bool HITTypeIdHasBeenSet() const { return m_hITTypeIdHasBeenSet; }
49 
54  inline void SetHITTypeId(const Aws::String& value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId = value; }
55 
60  inline void SetHITTypeId(Aws::String&& value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId = std::move(value); }
61 
66  inline void SetHITTypeId(const char* value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId.assign(value); }
67 
72  inline UpdateNotificationSettingsRequest& WithHITTypeId(const Aws::String& value) { SetHITTypeId(value); return *this;}
73 
78  inline UpdateNotificationSettingsRequest& WithHITTypeId(Aws::String&& value) { SetHITTypeId(std::move(value)); return *this;}
79 
84  inline UpdateNotificationSettingsRequest& WithHITTypeId(const char* value) { SetHITTypeId(value); return *this;}
85 
86 
90  inline const NotificationSpecification& GetNotification() const{ return m_notification; }
91 
95  inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
96 
100  inline void SetNotification(const NotificationSpecification& value) { m_notificationHasBeenSet = true; m_notification = value; }
101 
105  inline void SetNotification(NotificationSpecification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
106 
110  inline UpdateNotificationSettingsRequest& WithNotification(const NotificationSpecification& value) { SetNotification(value); return *this;}
111 
115  inline UpdateNotificationSettingsRequest& WithNotification(NotificationSpecification&& value) { SetNotification(std::move(value)); return *this;}
116 
117 
124  inline bool GetActive() const{ return m_active; }
125 
132  inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
133 
140  inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
141 
148  inline UpdateNotificationSettingsRequest& WithActive(bool value) { SetActive(value); return *this;}
149 
150  private:
151 
152  Aws::String m_hITTypeId;
153  bool m_hITTypeIdHasBeenSet;
154 
155  NotificationSpecification m_notification;
156  bool m_notificationHasBeenSet;
157 
158  bool m_active;
159  bool m_activeHasBeenSet;
160  };
161 
162 } // namespace Model
163 } // namespace MTurk
164 } // namespace Aws
Aws::MTurk::Model::NotificationSpecification
Definition: NotificationSpecification.h:36
Aws::MTurk::Model::UpdateNotificationSettingsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateNotificationSettingsRequest.h:31
Aws::MTurk::Model::UpdateNotificationSettingsRequest::GetHITTypeId
const Aws::String & GetHITTypeId() const
Definition: UpdateNotificationSettingsRequest.h:42
Aws::MTurk::Model::UpdateNotificationSettingsRequest::SetHITTypeId
void SetHITTypeId(const Aws::String &value)
Definition: UpdateNotificationSettingsRequest.h:54
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::UpdateNotificationSettingsRequest::NotificationHasBeenSet
bool NotificationHasBeenSet() const
Definition: UpdateNotificationSettingsRequest.h:95
Aws::MTurk::Model::UpdateNotificationSettingsRequest::SetHITTypeId
void SetHITTypeId(Aws::String &&value)
Definition: UpdateNotificationSettingsRequest.h:60
Aws::MTurk::Model::UpdateNotificationSettingsRequest::WithHITTypeId
UpdateNotificationSettingsRequest & WithHITTypeId(const char *value)
Definition: UpdateNotificationSettingsRequest.h:84
Aws::MTurk::Model::UpdateNotificationSettingsRequest::SetNotification
void SetNotification(const NotificationSpecification &value)
Definition: UpdateNotificationSettingsRequest.h:100
Aws::MTurk::Model::UpdateNotificationSettingsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MTurk::Model::UpdateNotificationSettingsRequest::WithActive
UpdateNotificationSettingsRequest & WithActive(bool value)
Definition: UpdateNotificationSettingsRequest.h:148
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
Aws::MTurk::Model::UpdateNotificationSettingsRequest::WithHITTypeId
UpdateNotificationSettingsRequest & WithHITTypeId(Aws::String &&value)
Definition: UpdateNotificationSettingsRequest.h:78
Aws::MTurk::Model::UpdateNotificationSettingsRequest::WithNotification
UpdateNotificationSettingsRequest & WithNotification(const NotificationSpecification &value)
Definition: UpdateNotificationSettingsRequest.h:110
MTurkRequest.h
Aws::MTurk::Model::UpdateNotificationSettingsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MTurk::Model::UpdateNotificationSettingsRequest::GetActive
bool GetActive() const
Definition: UpdateNotificationSettingsRequest.h:124
Aws::MTurk::Model::UpdateNotificationSettingsRequest::UpdateNotificationSettingsRequest
UpdateNotificationSettingsRequest()
AWSString.h
Aws::MTurk::Model::UpdateNotificationSettingsRequest::WithNotification
UpdateNotificationSettingsRequest & WithNotification(NotificationSpecification &&value)
Definition: UpdateNotificationSettingsRequest.h:115
NotificationSpecification.h
Aws::MTurk::Model::UpdateNotificationSettingsRequest::SetNotification
void SetNotification(NotificationSpecification &&value)
Definition: UpdateNotificationSettingsRequest.h:105
Aws::MTurk::Model::UpdateNotificationSettingsRequest::ActiveHasBeenSet
bool ActiveHasBeenSet() const
Definition: UpdateNotificationSettingsRequest.h:132
Aws::MTurk::Model::UpdateNotificationSettingsRequest
Definition: UpdateNotificationSettingsRequest.h:23
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::UpdateNotificationSettingsRequest::SetActive
void SetActive(bool value)
Definition: UpdateNotificationSettingsRequest.h:140
Aws::MTurk::Model::UpdateNotificationSettingsRequest::GetNotification
const NotificationSpecification & GetNotification() const
Definition: UpdateNotificationSettingsRequest.h:90
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::UpdateNotificationSettingsRequest::SetHITTypeId
void SetHITTypeId(const char *value)
Definition: UpdateNotificationSettingsRequest.h:66
Aws::MTurk::Model::UpdateNotificationSettingsRequest::WithHITTypeId
UpdateNotificationSettingsRequest & WithHITTypeId(const Aws::String &value)
Definition: UpdateNotificationSettingsRequest.h:72
Aws::MTurk::Model::UpdateNotificationSettingsRequest::HITTypeIdHasBeenSet
bool HITTypeIdHasBeenSet() const
Definition: UpdateNotificationSettingsRequest.h:48