AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NotificationOptions.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WorkDocs
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_WORKDOCS_API NotificationOptions() = default;
38 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline bool GetSendEmail() const { return m_sendEmail; }
47 inline bool SendEmailHasBeenSet() const { return m_sendEmailHasBeenSet; }
48 inline void SetSendEmail(bool value) { m_sendEmailHasBeenSet = true; m_sendEmail = value; }
49 inline NotificationOptions& WithSendEmail(bool value) { SetSendEmail(value); return *this;}
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) { m_emailMessageHasBeenSet = true; m_emailMessage = std::forward<EmailMessageT>(value); }
60 template<typename EmailMessageT = Aws::String>
61 NotificationOptions& WithEmailMessage(EmailMessageT&& value) { SetEmailMessage(std::forward<EmailMessageT>(value)); return *this;}
63 private:
64
65 bool m_sendEmail{false};
66 bool m_sendEmailHasBeenSet = false;
67
68 Aws::String m_emailMessage;
69 bool m_emailMessageHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace WorkDocs
74} // 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