AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
SendNotificationActionDefinition.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/NotificationContentType.h>
9#include <aws/connect/model/NotificationDeliveryType.h>
10#include <aws/connect/model/NotificationRecipientType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect {
23namespace Model {
24
31 public:
32 AWS_CONNECT_API SendNotificationActionDefinition() = default;
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline NotificationDeliveryType GetDeliveryMethod() const { return m_deliveryMethod; }
42 inline bool DeliveryMethodHasBeenSet() const { return m_deliveryMethodHasBeenSet; }
44 m_deliveryMethodHasBeenSet = true;
45 m_deliveryMethod = value;
46 }
48 SetDeliveryMethod(value);
49 return *this;
50 }
52
54
60 inline const Aws::String& GetSubject() const { return m_subject; }
61 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
62 template <typename SubjectT = Aws::String>
63 void SetSubject(SubjectT&& value) {
64 m_subjectHasBeenSet = true;
65 m_subject = std::forward<SubjectT>(value);
66 }
67 template <typename SubjectT = Aws::String>
69 SetSubject(std::forward<SubjectT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::String& GetContent() const { return m_content; }
82 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
83 template <typename ContentT = Aws::String>
84 void SetContent(ContentT&& value) {
85 m_contentHasBeenSet = true;
86 m_content = std::forward<ContentT>(value);
87 }
88 template <typename ContentT = Aws::String>
90 SetContent(std::forward<ContentT>(value));
91 return *this;
92 }
94
96
99 inline NotificationContentType GetContentType() const { return m_contentType; }
100 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
102 m_contentTypeHasBeenSet = true;
103 m_contentType = value;
104 }
106 SetContentType(value);
107 return *this;
108 }
110
112
115 inline const NotificationRecipientType& GetRecipient() const { return m_recipient; }
116 inline bool RecipientHasBeenSet() const { return m_recipientHasBeenSet; }
117 template <typename RecipientT = NotificationRecipientType>
118 void SetRecipient(RecipientT&& value) {
119 m_recipientHasBeenSet = true;
120 m_recipient = std::forward<RecipientT>(value);
121 }
122 template <typename RecipientT = NotificationRecipientType>
124 SetRecipient(std::forward<RecipientT>(value));
125 return *this;
126 }
128
130
133 inline const NotificationRecipientType& GetExclusion() const { return m_exclusion; }
134 inline bool ExclusionHasBeenSet() const { return m_exclusionHasBeenSet; }
135 template <typename ExclusionT = NotificationRecipientType>
136 void SetExclusion(ExclusionT&& value) {
137 m_exclusionHasBeenSet = true;
138 m_exclusion = std::forward<ExclusionT>(value);
139 }
140 template <typename ExclusionT = NotificationRecipientType>
142 SetExclusion(std::forward<ExclusionT>(value));
143 return *this;
144 }
146 private:
148
149 Aws::String m_subject;
150
151 Aws::String m_content;
152
154
155 NotificationRecipientType m_recipient;
156
157 NotificationRecipientType m_exclusion;
158 bool m_deliveryMethodHasBeenSet = false;
159 bool m_subjectHasBeenSet = false;
160 bool m_contentHasBeenSet = false;
161 bool m_contentTypeHasBeenSet = false;
162 bool m_recipientHasBeenSet = false;
163 bool m_exclusionHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace Connect
168} // namespace Aws
SendNotificationActionDefinition & WithExclusion(ExclusionT &&value)
AWS_CONNECT_API SendNotificationActionDefinition()=default
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
SendNotificationActionDefinition & WithContent(ContentT &&value)
AWS_CONNECT_API SendNotificationActionDefinition(Aws::Utils::Json::JsonView jsonValue)
SendNotificationActionDefinition & WithDeliveryMethod(NotificationDeliveryType value)
SendNotificationActionDefinition & WithSubject(SubjectT &&value)
SendNotificationActionDefinition & WithContentType(NotificationContentType value)
AWS_CONNECT_API SendNotificationActionDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
SendNotificationActionDefinition & WithRecipient(RecipientT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue