AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
InAppMessageBodyConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9#include <aws/pinpoint/model/Alignment.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Pinpoint {
21namespace Model {
22
29 public:
30 AWS_PINPOINT_API InAppMessageBodyConfig() = default;
33 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline Alignment GetAlignment() const { return m_alignment; }
40 inline bool AlignmentHasBeenSet() const { return m_alignmentHasBeenSet; }
41 inline void SetAlignment(Alignment value) {
42 m_alignmentHasBeenSet = true;
43 m_alignment = value;
44 }
46 SetAlignment(value);
47 return *this;
48 }
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) {
59 m_bodyHasBeenSet = true;
60 m_body = std::forward<BodyT>(value);
61 }
62 template <typename BodyT = Aws::String>
64 SetBody(std::forward<BodyT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetTextColor() const { return m_textColor; }
74 inline bool TextColorHasBeenSet() const { return m_textColorHasBeenSet; }
75 template <typename TextColorT = Aws::String>
76 void SetTextColor(TextColorT&& value) {
77 m_textColorHasBeenSet = true;
78 m_textColor = std::forward<TextColorT>(value);
79 }
80 template <typename TextColorT = Aws::String>
82 SetTextColor(std::forward<TextColorT>(value));
83 return *this;
84 }
86 private:
87 Alignment m_alignment{Alignment::NOT_SET};
88 bool m_alignmentHasBeenSet = false;
89
90 Aws::String m_body;
91 bool m_bodyHasBeenSet = false;
92
93 Aws::String m_textColor;
94 bool m_textColorHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Pinpoint
99} // 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