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

A unique message ID that you receive when an email is accepted for * sending.

See Also:

AWS * API Reference

*/ class AWS_SESV2_API SendEmailResult { public: SendEmailResult(); SendEmailResult(const Aws::AmazonWebServiceResult& result); SendEmailResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A unique identifier for the message that is generated when the message is * accepted.

It's possible for Amazon SES to accept a message without * sending it. This can happen when the message that you're trying to send has an * attachment contains a virus, or when you send a templated email that contains * invalid personalization content, for example.

*/ inline const Aws::String& GetMessageId() const{ return m_messageId; } /** *

A unique identifier for the message that is generated when the message is * accepted.

It's possible for Amazon SES to accept a message without * sending it. This can happen when the message that you're trying to send has an * attachment contains a virus, or when you send a templated email that contains * invalid personalization content, for example.

*/ inline void SetMessageId(const Aws::String& value) { m_messageId = value; } /** *

A unique identifier for the message that is generated when the message is * accepted.

It's possible for Amazon SES to accept a message without * sending it. This can happen when the message that you're trying to send has an * attachment contains a virus, or when you send a templated email that contains * invalid personalization content, for example.

*/ inline void SetMessageId(Aws::String&& value) { m_messageId = std::move(value); } /** *

A unique identifier for the message that is generated when the message is * accepted.

It's possible for Amazon SES to accept a message without * sending it. This can happen when the message that you're trying to send has an * attachment contains a virus, or when you send a templated email that contains * invalid personalization content, for example.

*/ inline void SetMessageId(const char* value) { m_messageId.assign(value); } /** *

A unique identifier for the message that is generated when the message is * accepted.

It's possible for Amazon SES to accept a message without * sending it. This can happen when the message that you're trying to send has an * attachment contains a virus, or when you send a templated email that contains * invalid personalization content, for example.

*/ inline SendEmailResult& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;} /** *

A unique identifier for the message that is generated when the message is * accepted.

It's possible for Amazon SES to accept a message without * sending it. This can happen when the message that you're trying to send has an * attachment contains a virus, or when you send a templated email that contains * invalid personalization content, for example.

*/ inline SendEmailResult& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;} /** *

A unique identifier for the message that is generated when the message is * accepted.

It's possible for Amazon SES to accept a message without * sending it. This can happen when the message that you're trying to send has an * attachment contains a virus, or when you send a templated email that contains * invalid personalization content, for example.

*/ inline SendEmailResult& WithMessageId(const char* value) { SetMessageId(value); return *this;} private: Aws::String m_messageId; }; } // namespace Model } // namespace SESV2 } // namespace Aws