AWS SDK for C++  0.12.9
AWS SDK for C++
Body.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/email/SES_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace SES
30 {
31 namespace Model
32 {
33 
40  {
41  public:
42  Body();
43  Body(const Aws::Utils::Xml::XmlNode& xmlNode);
44  Body& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
53  inline const Content& GetText() const{ return m_text; }
54 
59  inline void SetText(const Content& value) { m_textHasBeenSet = true; m_text = value; }
60 
65  inline void SetText(Content&& value) { m_textHasBeenSet = true; m_text = value; }
66 
71  inline Body& WithText(const Content& value) { SetText(value); return *this;}
72 
77  inline Body& WithText(Content&& value) { SetText(value); return *this;}
78 
84  inline const Content& GetHtml() const{ return m_html; }
85 
91  inline void SetHtml(const Content& value) { m_htmlHasBeenSet = true; m_html = value; }
92 
98  inline void SetHtml(Content&& value) { m_htmlHasBeenSet = true; m_html = value; }
99 
105  inline Body& WithHtml(const Content& value) { SetHtml(value); return *this;}
106 
112  inline Body& WithHtml(Content&& value) { SetHtml(value); return *this;}
113 
114  private:
115  Content m_text;
116  bool m_textHasBeenSet;
117  Content m_html;
118  bool m_htmlHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace SES
123 } // namespace Aws
void SetHtml(const Content &value)
Definition: Body.h:91
const Content & GetHtml() const
Definition: Body.h:84
Body & WithText(const Content &value)
Definition: Body.h:71
void SetHtml(Content &&value)
Definition: Body.h:98
void SetText(Content &&value)
Definition: Body.h:65
Body & WithHtml(Content &&value)
Definition: Body.h:112
Body & WithText(Content &&value)
Definition: Body.h:77
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetText(const Content &value)
Definition: Body.h:59
Body & WithHtml(const Content &value)
Definition: Body.h:105
const Content & GetText() const
Definition: Body.h:53
#define AWS_SES_API
Definition: SES_EXPORTS.h:34
JSON (JavaScript Object Notation).