/**
 * 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 <utility>

namespace Aws {
namespace Utils {
namespace Json {
class JsonValue;
class JsonView;
}  // namespace Json
}  // namespace Utils
namespace SESV2 {
namespace Model {

/**
 * <p>Represents the body of the email message.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/Body">AWS API
 * Reference</a></p>
 */
class Body {
 public:
  AWS_SESV2_API Body() = default;
  AWS_SESV2_API Body(Aws::Utils::Json::JsonView jsonValue);
  AWS_SESV2_API Body& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>An object that represents the version of the message that is displayed in
   * email clients that don't support HTML, or clients where the recipient has
   * disabled HTML rendering.</p>
   */
  inline const Content& GetText() const { return m_text; }
  inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
  template <typename TextT = Content>
  void SetText(TextT&& value) {
    m_textHasBeenSet = true;
    m_text = std::forward<TextT>(value);
  }
  template <typename TextT = Content>
  Body& WithText(TextT&& value) {
    SetText(std::forward<TextT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>An object that represents the version of the message that is displayed in
   * email clients that support HTML. HTML messages can include formatted text,
   * hyperlinks, images, and more. </p>
   */
  inline const Content& GetHtml() const { return m_html; }
  inline bool HtmlHasBeenSet() const { return m_htmlHasBeenSet; }
  template <typename HtmlT = Content>
  void SetHtml(HtmlT&& value) {
    m_htmlHasBeenSet = true;
    m_html = std::forward<HtmlT>(value);
  }
  template <typename HtmlT = Content>
  Body& WithHtml(HtmlT&& value) {
    SetHtml(std::forward<HtmlT>(value));
    return *this;
  }
  ///@}
 private:
  Content m_text;

  Content m_html;
  bool m_textHasBeenSet = false;
  bool m_htmlHasBeenSet = false;
};

}  // namespace Model
}  // namespace SESV2
}  // namespace Aws
