AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
38 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Alignment& GetAlignment() const{ return m_alignment; }
46 inline bool AlignmentHasBeenSet() const { return m_alignmentHasBeenSet; }
47 inline void SetAlignment(const Alignment& value) { m_alignmentHasBeenSet = true; m_alignment = value; }
48 inline void SetAlignment(Alignment&& value) { m_alignmentHasBeenSet = true; m_alignment = std::move(value); }
49 inline InAppMessageBodyConfig& WithAlignment(const Alignment& value) { SetAlignment(value); return *this;}
50 inline InAppMessageBodyConfig& WithAlignment(Alignment&& value) { SetAlignment(std::move(value)); return *this;}
52
54
57 inline const Aws::String& GetBody() const{ return m_body; }
58 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
59 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
60 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
61 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
62 inline InAppMessageBodyConfig& WithBody(const Aws::String& value) { SetBody(value); return *this;}
63 inline InAppMessageBodyConfig& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
64 inline InAppMessageBodyConfig& WithBody(const char* value) { SetBody(value); return *this;}
66
68
71 inline const Aws::String& GetTextColor() const{ return m_textColor; }
72 inline bool TextColorHasBeenSet() const { return m_textColorHasBeenSet; }
73 inline void SetTextColor(const Aws::String& value) { m_textColorHasBeenSet = true; m_textColor = value; }
74 inline void SetTextColor(Aws::String&& value) { m_textColorHasBeenSet = true; m_textColor = std::move(value); }
75 inline void SetTextColor(const char* value) { m_textColorHasBeenSet = true; m_textColor.assign(value); }
76 inline InAppMessageBodyConfig& WithTextColor(const Aws::String& value) { SetTextColor(value); return *this;}
77 inline InAppMessageBodyConfig& WithTextColor(Aws::String&& value) { SetTextColor(std::move(value)); return *this;}
78 inline InAppMessageBodyConfig& WithTextColor(const char* value) { SetTextColor(value); return *this;}
80 private:
81
82 Alignment m_alignment;
83 bool m_alignmentHasBeenSet = false;
84
85 Aws::String m_body;
86 bool m_bodyHasBeenSet = false;
87
88 Aws::String m_textColor;
89 bool m_textColorHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Pinpoint
94} // namespace Aws
AWS_PINPOINT_API InAppMessageBodyConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
InAppMessageBodyConfig & WithAlignment(const Alignment &value)
InAppMessageBodyConfig & WithBody(const Aws::String &value)
InAppMessageBodyConfig & WithAlignment(Alignment &&value)
AWS_PINPOINT_API InAppMessageBodyConfig(Aws::Utils::Json::JsonView jsonValue)
InAppMessageBodyConfig & WithTextColor(const char *value)
InAppMessageBodyConfig & WithBody(Aws::String &&value)
InAppMessageBodyConfig & WithTextColor(Aws::String &&value)
InAppMessageBodyConfig & WithBody(const char *value)
InAppMessageBodyConfig & WithTextColor(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue