AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateNotificationContentRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/LocaleCode.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Connect {
17namespace Model {
18
22 public:
23 AWS_CONNECT_API UpdateNotificationContentRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateNotificationContent"; }
30
31 AWS_CONNECT_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
40 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
41 template <typename InstanceIdT = Aws::String>
42 void SetInstanceId(InstanceIdT&& value) {
43 m_instanceIdHasBeenSet = true;
44 m_instanceId = std::forward<InstanceIdT>(value);
45 }
46 template <typename InstanceIdT = Aws::String>
48 SetInstanceId(std::forward<InstanceIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetNotificationId() const { return m_notificationId; }
58 inline bool NotificationIdHasBeenSet() const { return m_notificationIdHasBeenSet; }
59 template <typename NotificationIdT = Aws::String>
60 void SetNotificationId(NotificationIdT&& value) {
61 m_notificationIdHasBeenSet = true;
62 m_notificationId = std::forward<NotificationIdT>(value);
63 }
64 template <typename NotificationIdT = Aws::String>
66 SetNotificationId(std::forward<NotificationIdT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::Map<LocaleCode, Aws::String>& GetContent() const { return m_content; }
77 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
78 template <typename ContentT = Aws::Map<LocaleCode, Aws::String>>
79 void SetContent(ContentT&& value) {
80 m_contentHasBeenSet = true;
81 m_content = std::forward<ContentT>(value);
82 }
83 template <typename ContentT = Aws::Map<LocaleCode, Aws::String>>
85 SetContent(std::forward<ContentT>(value));
86 return *this;
87 }
89 m_contentHasBeenSet = true;
90 m_content.emplace(key, value);
91 return *this;
92 }
94 private:
95 Aws::String m_instanceId;
96
97 Aws::String m_notificationId;
98
100 bool m_instanceIdHasBeenSet = false;
101 bool m_notificationIdHasBeenSet = false;
102 bool m_contentHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace Connect
107} // namespace Aws
UpdateNotificationContentRequest & WithNotificationId(NotificationIdT &&value)
UpdateNotificationContentRequest & WithContent(ContentT &&value)
AWS_CONNECT_API UpdateNotificationContentRequest()=default
UpdateNotificationContentRequest & AddContent(LocaleCode key, Aws::String value)
const Aws::Map< LocaleCode, Aws::String > & GetContent() const
UpdateNotificationContentRequest & WithInstanceId(InstanceIdT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String