AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
InAppMessageHeaderConfig.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 InAppMessageHeaderConfig() = 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 InAppMessageHeaderConfig& WithAlignment(Alignment value) { SetAlignment(value); return *this;}
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) { m_headerHasBeenSet = true; m_header = std::forward<HeaderT>(value); }
59 template<typename HeaderT = Aws::String>
60 InAppMessageHeaderConfig& WithHeader(HeaderT&& value) { SetHeader(std::forward<HeaderT>(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 InAppMessageHeaderConfig& 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_header;
80 bool m_headerHasBeenSet = 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 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