This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-sesv2/include/aws/sesv2/model/Message.h

139 lines
4.8 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sesv2/SESV2_EXPORTS.h>
#include <aws/sesv2/model/Content.h>
#include <aws/sesv2/model/Body.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SESV2
{
namespace Model
{
/**
* <p>Represents the email message that you're sending. The <code>Message</code>
* object consists of a subject line and a message body.</p><p><h3>See Also:</h3>
* <a href="http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/Message">AWS
* API Reference</a></p>
*/
class AWS_SESV2_API Message
{
public:
Message();
Message(Aws::Utils::Json::JsonView jsonValue);
Message& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The subject line of the email. The subject line can only contain 7-bit ASCII
* characters. However, you can specify non-ASCII characters in the subject line by
* using encoded-word syntax, as described in <a
* href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>.</p>
*/
inline const Content& GetSubject() const{ return m_subject; }
/**
* <p>The subject line of the email. The subject line can only contain 7-bit ASCII
* characters. However, you can specify non-ASCII characters in the subject line by
* using encoded-word syntax, as described in <a
* href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>.</p>
*/
inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
/**
* <p>The subject line of the email. The subject line can only contain 7-bit ASCII
* characters. However, you can specify non-ASCII characters in the subject line by
* using encoded-word syntax, as described in <a
* href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>.</p>
*/
inline void SetSubject(const Content& value) { m_subjectHasBeenSet = true; m_subject = value; }
/**
* <p>The subject line of the email. The subject line can only contain 7-bit ASCII
* characters. However, you can specify non-ASCII characters in the subject line by
* using encoded-word syntax, as described in <a
* href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>.</p>
*/
inline void SetSubject(Content&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
/**
* <p>The subject line of the email. The subject line can only contain 7-bit ASCII
* characters. However, you can specify non-ASCII characters in the subject line by
* using encoded-word syntax, as described in <a
* href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>.</p>
*/
inline Message& WithSubject(const Content& value) { SetSubject(value); return *this;}
/**
* <p>The subject line of the email. The subject line can only contain 7-bit ASCII
* characters. However, you can specify non-ASCII characters in the subject line by
* using encoded-word syntax, as described in <a
* href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>.</p>
*/
inline Message& WithSubject(Content&& value) { SetSubject(std::move(value)); return *this;}
/**
* <p>The body of the message. You can specify an HTML version of the message, a
* text-only version of the message, or both.</p>
*/
inline const Body& GetBody() const{ return m_body; }
/**
* <p>The body of the message. You can specify an HTML version of the message, a
* text-only version of the message, or both.</p>
*/
inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
/**
* <p>The body of the message. You can specify an HTML version of the message, a
* text-only version of the message, or both.</p>
*/
inline void SetBody(const Body& value) { m_bodyHasBeenSet = true; m_body = value; }
/**
* <p>The body of the message. You can specify an HTML version of the message, a
* text-only version of the message, or both.</p>
*/
inline void SetBody(Body&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
/**
* <p>The body of the message. You can specify an HTML version of the message, a
* text-only version of the message, or both.</p>
*/
inline Message& WithBody(const Body& value) { SetBody(value); return *this;}
/**
* <p>The body of the message. You can specify an HTML version of the message, a
* text-only version of the message, or both.</p>
*/
inline Message& WithBody(Body&& value) { SetBody(std::move(value)); return *this;}
private:
Content m_subject;
bool m_subjectHasBeenSet;
Body m_body;
bool m_bodyHasBeenSet;
};
} // namespace Model
} // namespace SESV2
} // namespace Aws