AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
InAppMessageHeaderConfig.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 InAppMessageHeaderConfig() = 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& GetHeader() const { return m_header; }
56 inline bool HeaderHasBeenSet() const { return m_headerHasBeenSet; }
57 template <typename HeaderT = Aws::String>
58 void SetHeader(HeaderT&& value) {
59 m_headerHasBeenSet = true;
60 m_header = std::forward<HeaderT>(value);
61 }
62 template <typename HeaderT = Aws::String>
64 SetHeader(std::forward<HeaderT>(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
89 Aws::String m_header;
90
91 Aws::String m_textColor;
92 bool m_alignmentHasBeenSet = false;
93 bool m_headerHasBeenSet = false;
94 bool m_textColorHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Pinpoint
99} // namespace Aws
AWS_PINPOINT_API InAppMessageHeaderConfig()=default
AWS_PINPOINT_API InAppMessageHeaderConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
InAppMessageHeaderConfig & WithTextColor(TextColorT &&value)
InAppMessageHeaderConfig & WithHeader(HeaderT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API InAppMessageHeaderConfig(Aws::Utils::Json::JsonView jsonValue)
InAppMessageHeaderConfig & WithAlignment(Alignment value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue