/** * 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 PinpointEmail { namespace Model { /** *

A unique message ID that you receive when Amazon Pinpoint accepts an email * for sending.

See Also:

AWS * API Reference

*/ class AWS_PINPOINTEMAIL_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 Amazon Pinpoint * accepts the message.

It is possible for Amazon Pinpoint to accept * a message without sending it. This can happen when the message you're trying to * send has an attachment doesn't pass a virus check, 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 Amazon Pinpoint * accepts the message.

It is possible for Amazon Pinpoint to accept * a message without sending it. This can happen when the message you're trying to * send has an attachment doesn't pass a virus check, 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 Amazon Pinpoint * accepts the message.

It is possible for Amazon Pinpoint to accept * a message without sending it. This can happen when the message you're trying to * send has an attachment doesn't pass a virus check, 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 Amazon Pinpoint * accepts the message.

It is possible for Amazon Pinpoint to accept * a message without sending it. This can happen when the message you're trying to * send has an attachment doesn't pass a virus check, 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 Amazon Pinpoint * accepts the message.

It is possible for Amazon Pinpoint to accept * a message without sending it. This can happen when the message you're trying to * send has an attachment doesn't pass a virus check, 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 Amazon Pinpoint * accepts the message.

It is possible for Amazon Pinpoint to accept * a message without sending it. This can happen when the message you're trying to * send has an attachment doesn't pass a virus check, 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 Amazon Pinpoint * accepts the message.

It is possible for Amazon Pinpoint to accept * a message without sending it. This can happen when the message you're trying to * send has an attachment doesn't pass a virus check, 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 PinpointEmail } // namespace Aws