AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SendNotificationActionDefinition.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/NotificationDeliveryType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/NotificationContentType.h>
11#include <aws/connect/model/NotificationRecipientType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Connect
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CONNECT_API SendNotificationActionDefinition() = default;
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline NotificationDeliveryType GetDeliveryMethod() const { return m_deliveryMethod; }
48 inline bool DeliveryMethodHasBeenSet() const { return m_deliveryMethodHasBeenSet; }
49 inline void SetDeliveryMethod(NotificationDeliveryType value) { m_deliveryMethodHasBeenSet = true; m_deliveryMethod = value; }
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) { m_subjectHasBeenSet = true; m_subject = std::forward<SubjectT>(value); }
64 template<typename SubjectT = Aws::String>
65 SendNotificationActionDefinition& WithSubject(SubjectT&& value) { SetSubject(std::forward<SubjectT>(value)); return *this;}
67
69
75 inline const Aws::String& GetContent() const { return m_content; }
76 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
77 template<typename ContentT = Aws::String>
78 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
79 template<typename ContentT = Aws::String>
80 SendNotificationActionDefinition& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
82
84
87 inline NotificationContentType GetContentType() const { return m_contentType; }
88 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
89 inline void SetContentType(NotificationContentType value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
92
94
97 inline const NotificationRecipientType& GetRecipient() const { return m_recipient; }
98 inline bool RecipientHasBeenSet() const { return m_recipientHasBeenSet; }
99 template<typename RecipientT = NotificationRecipientType>
100 void SetRecipient(RecipientT&& value) { m_recipientHasBeenSet = true; m_recipient = std::forward<RecipientT>(value); }
101 template<typename RecipientT = NotificationRecipientType>
102 SendNotificationActionDefinition& WithRecipient(RecipientT&& value) { SetRecipient(std::forward<RecipientT>(value)); return *this;}
104 private:
105
107 bool m_deliveryMethodHasBeenSet = false;
108
109 Aws::String m_subject;
110 bool m_subjectHasBeenSet = false;
111
112 Aws::String m_content;
113 bool m_contentHasBeenSet = false;
114
116 bool m_contentTypeHasBeenSet = false;
117
118 NotificationRecipientType m_recipient;
119 bool m_recipientHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace Connect
124} // namespace Aws
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