AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const NotificationDeliveryType& GetDeliveryMethod() const{ return m_deliveryMethod; }
48 inline bool DeliveryMethodHasBeenSet() const { return m_deliveryMethodHasBeenSet; }
49 inline void SetDeliveryMethod(const NotificationDeliveryType& value) { m_deliveryMethodHasBeenSet = true; m_deliveryMethod = value; }
50 inline void SetDeliveryMethod(NotificationDeliveryType&& value) { m_deliveryMethodHasBeenSet = true; m_deliveryMethod = std::move(value); }
54
56
62 inline const Aws::String& GetSubject() const{ return m_subject; }
63 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
64 inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; }
65 inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
66 inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); }
67 inline SendNotificationActionDefinition& WithSubject(const Aws::String& value) { SetSubject(value); return *this;}
68 inline SendNotificationActionDefinition& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;}
69 inline SendNotificationActionDefinition& WithSubject(const char* value) { SetSubject(value); return *this;}
71
73
79 inline const Aws::String& GetContent() const{ return m_content; }
80 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
81 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
82 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
83 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
84 inline SendNotificationActionDefinition& WithContent(const Aws::String& value) { SetContent(value); return *this;}
85 inline SendNotificationActionDefinition& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
86 inline SendNotificationActionDefinition& WithContent(const char* value) { SetContent(value); return *this;}
88
90
93 inline const NotificationContentType& GetContentType() const{ return m_contentType; }
94 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
95 inline void SetContentType(const NotificationContentType& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
96 inline void SetContentType(NotificationContentType&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
100
102
105 inline const NotificationRecipientType& GetRecipient() const{ return m_recipient; }
106 inline bool RecipientHasBeenSet() const { return m_recipientHasBeenSet; }
107 inline void SetRecipient(const NotificationRecipientType& value) { m_recipientHasBeenSet = true; m_recipient = value; }
108 inline void SetRecipient(NotificationRecipientType&& value) { m_recipientHasBeenSet = true; m_recipient = std::move(value); }
112 private:
113
114 NotificationDeliveryType m_deliveryMethod;
115 bool m_deliveryMethodHasBeenSet = false;
116
117 Aws::String m_subject;
118 bool m_subjectHasBeenSet = false;
119
120 Aws::String m_content;
121 bool m_contentHasBeenSet = false;
122
123 NotificationContentType m_contentType;
124 bool m_contentTypeHasBeenSet = false;
125
126 NotificationRecipientType m_recipient;
127 bool m_recipientHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace Connect
132} // namespace Aws
SendNotificationActionDefinition & WithDeliveryMethod(const NotificationDeliveryType &value)
SendNotificationActionDefinition & WithSubject(Aws::String &&value)
SendNotificationActionDefinition & WithDeliveryMethod(NotificationDeliveryType &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
SendNotificationActionDefinition & WithRecipient(NotificationRecipientType &&value)
SendNotificationActionDefinition & WithSubject(const Aws::String &value)
SendNotificationActionDefinition & WithContent(const char *value)
SendNotificationActionDefinition & WithContentType(const NotificationContentType &value)
AWS_CONNECT_API SendNotificationActionDefinition(Aws::Utils::Json::JsonView jsonValue)
SendNotificationActionDefinition & WithContent(const Aws::String &value)
SendNotificationActionDefinition & WithSubject(const char *value)
SendNotificationActionDefinition & WithContentType(NotificationContentType &&value)
SendNotificationActionDefinition & WithContent(Aws::String &&value)
SendNotificationActionDefinition & WithRecipient(const NotificationRecipientType &value)
AWS_CONNECT_API SendNotificationActionDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue