/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace WorkDocs { namespace Model { /** *

Set of options which defines notification preferences of given * action.

See Also:

AWS * API Reference

*/ class NotificationOptions { public: AWS_WORKDOCS_API NotificationOptions(); AWS_WORKDOCS_API NotificationOptions(Aws::Utils::Json::JsonView jsonValue); AWS_WORKDOCS_API NotificationOptions& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Boolean value to indicate an email notification should be sent to the * recipients.

*/ inline bool GetSendEmail() const{ return m_sendEmail; } /** *

Boolean value to indicate an email notification should be sent to the * recipients.

*/ inline bool SendEmailHasBeenSet() const { return m_sendEmailHasBeenSet; } /** *

Boolean value to indicate an email notification should be sent to the * recipients.

*/ inline void SetSendEmail(bool value) { m_sendEmailHasBeenSet = true; m_sendEmail = value; } /** *

Boolean value to indicate an email notification should be sent to the * recipients.

*/ inline NotificationOptions& WithSendEmail(bool value) { SetSendEmail(value); return *this;} /** *

Text value to be included in the email body.

*/ inline const Aws::String& GetEmailMessage() const{ return m_emailMessage; } /** *

Text value to be included in the email body.

*/ inline bool EmailMessageHasBeenSet() const { return m_emailMessageHasBeenSet; } /** *

Text value to be included in the email body.

*/ inline void SetEmailMessage(const Aws::String& value) { m_emailMessageHasBeenSet = true; m_emailMessage = value; } /** *

Text value to be included in the email body.

*/ inline void SetEmailMessage(Aws::String&& value) { m_emailMessageHasBeenSet = true; m_emailMessage = std::move(value); } /** *

Text value to be included in the email body.

*/ inline void SetEmailMessage(const char* value) { m_emailMessageHasBeenSet = true; m_emailMessage.assign(value); } /** *

Text value to be included in the email body.

*/ inline NotificationOptions& WithEmailMessage(const Aws::String& value) { SetEmailMessage(value); return *this;} /** *

Text value to be included in the email body.

*/ inline NotificationOptions& WithEmailMessage(Aws::String&& value) { SetEmailMessage(std::move(value)); return *this;} /** *

Text value to be included in the email body.

*/ inline NotificationOptions& WithEmailMessage(const char* value) { SetEmailMessage(value); return *this;} private: bool m_sendEmail; bool m_sendEmailHasBeenSet = false; Aws::String m_emailMessage; bool m_emailMessageHasBeenSet = false; }; } // namespace Model } // namespace WorkDocs } // namespace Aws