AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
InAppMessageBodyConfig.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/Alignment.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_PINPOINT_API InAppMessageBodyConfig() = default;
38 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline Alignment GetAlignment() const { return m_alignment; }
46 inline bool AlignmentHasBeenSet() const { return m_alignmentHasBeenSet; }
47 inline void SetAlignment(Alignment value) { m_alignmentHasBeenSet = true; m_alignment = value; }
48 inline InAppMessageBodyConfig& WithAlignment(Alignment value) { SetAlignment(value); return *this;}
50
52
55 inline const Aws::String& GetBody() const { return m_body; }
56 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
57 template<typename BodyT = Aws::String>
58 void SetBody(BodyT&& value) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
59 template<typename BodyT = Aws::String>
60 InAppMessageBodyConfig& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
62
64
67 inline const Aws::String& GetTextColor() const { return m_textColor; }
68 inline bool TextColorHasBeenSet() const { return m_textColorHasBeenSet; }
69 template<typename TextColorT = Aws::String>
70 void SetTextColor(TextColorT&& value) { m_textColorHasBeenSet = true; m_textColor = std::forward<TextColorT>(value); }
71 template<typename TextColorT = Aws::String>
72 InAppMessageBodyConfig& WithTextColor(TextColorT&& value) { SetTextColor(std::forward<TextColorT>(value)); return *this;}
74 private:
75
76 Alignment m_alignment{Alignment::NOT_SET};
77 bool m_alignmentHasBeenSet = false;
78
79 Aws::String m_body;
80 bool m_bodyHasBeenSet = false;
81
82 Aws::String m_textColor;
83 bool m_textColorHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Pinpoint
88} // namespace Aws
AWS_PINPOINT_API InAppMessageBodyConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API InAppMessageBodyConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API InAppMessageBodyConfig()=default
InAppMessageBodyConfig & WithAlignment(Alignment value)
InAppMessageBodyConfig & WithBody(BodyT &&value)
InAppMessageBodyConfig & WithTextColor(TextColorT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue