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-email/include/aws/email/model/Message.h

123 lines
3.3 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/email/SES_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/email/model/Content.h>
#include <aws/email/model/Body.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace SES
{
namespace Model
{
/**
* <p>Represents the message to be sent, composed of a subject and a
* body.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/Message">AWS API
* Reference</a></p>
*/
class AWS_SES_API Message
{
public:
Message();
Message(const Aws::Utils::Xml::XmlNode& xmlNode);
Message& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* <p>The subject of the message: A short summary of the content, which will appear
* in the recipient's inbox.</p>
*/
inline const Content& GetSubject() const{ return m_subject; }
/**
* <p>The subject of the message: A short summary of the content, which will appear
* in the recipient's inbox.</p>
*/
inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
/**
* <p>The subject of the message: A short summary of the content, which will appear
* in the recipient's inbox.</p>
*/
inline void SetSubject(const Content& value) { m_subjectHasBeenSet = true; m_subject = value; }
/**
* <p>The subject of the message: A short summary of the content, which will appear
* in the recipient's inbox.</p>
*/
inline void SetSubject(Content&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
/**
* <p>The subject of the message: A short summary of the content, which will appear
* in the recipient's inbox.</p>
*/
inline Message& WithSubject(const Content& value) { SetSubject(value); return *this;}
/**
* <p>The subject of the message: A short summary of the content, which will appear
* in the recipient's inbox.</p>
*/
inline Message& WithSubject(Content&& value) { SetSubject(std::move(value)); return *this;}
/**
* <p>The message body.</p>
*/
inline const Body& GetBody() const{ return m_body; }
/**
* <p>The message body.</p>
*/
inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
/**
* <p>The message body.</p>
*/
inline void SetBody(const Body& value) { m_bodyHasBeenSet = true; m_body = value; }
/**
* <p>The message body.</p>
*/
inline void SetBody(Body&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
/**
* <p>The message body.</p>
*/
inline Message& WithBody(const Body& value) { SetBody(value); return *this;}
/**
* <p>The message body.</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 SES
} // namespace Aws