AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
NotificationOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workdocs/WorkDocs_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace WorkDocs {
20namespace Model {
21
29 public:
30 AWS_WORKDOCS_API NotificationOptions() = default;
33 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline bool GetSendEmail() const { return m_sendEmail; }
41 inline bool SendEmailHasBeenSet() const { return m_sendEmailHasBeenSet; }
42 inline void SetSendEmail(bool value) {
43 m_sendEmailHasBeenSet = true;
44 m_sendEmail = value;
45 }
46 inline NotificationOptions& WithSendEmail(bool value) {
47 SetSendEmail(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetEmailMessage() const { return m_emailMessage; }
57 inline bool EmailMessageHasBeenSet() const { return m_emailMessageHasBeenSet; }
58 template <typename EmailMessageT = Aws::String>
59 void SetEmailMessage(EmailMessageT&& value) {
60 m_emailMessageHasBeenSet = true;
61 m_emailMessage = std::forward<EmailMessageT>(value);
62 }
63 template <typename EmailMessageT = Aws::String>
64 NotificationOptions& WithEmailMessage(EmailMessageT&& value) {
65 SetEmailMessage(std::forward<EmailMessageT>(value));
66 return *this;
67 }
69 private:
70 bool m_sendEmail{false};
71
72 Aws::String m_emailMessage;
73 bool m_sendEmailHasBeenSet = false;
74 bool m_emailMessageHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace WorkDocs
79} // namespace Aws
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WORKDOCS_API NotificationOptions()=default
AWS_WORKDOCS_API NotificationOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
NotificationOptions & WithSendEmail(bool value)
NotificationOptions & WithEmailMessage(EmailMessageT &&value)
AWS_WORKDOCS_API NotificationOptions(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue