AWS SDK for C++

AWS SDK for C++ Version 1.11.911

Loading...
Searching...
No Matches
MessageComponents.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/notifications/Notifications_EXPORTS.h>
10#include <aws/notifications/model/Dimension.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Notifications {
22namespace Model {
23
31 public:
32 AWS_NOTIFICATIONS_API MessageComponents() = default;
33 AWS_NOTIFICATIONS_API MessageComponents(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NOTIFICATIONS_API MessageComponents& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetHeadline() const { return m_headline; }
42 inline bool HeadlineHasBeenSet() const { return m_headlineHasBeenSet; }
43 template <typename HeadlineT = Aws::String>
44 void SetHeadline(HeadlineT&& value) {
45 m_headlineHasBeenSet = true;
46 m_headline = std::forward<HeadlineT>(value);
47 }
48 template <typename HeadlineT = Aws::String>
49 MessageComponents& WithHeadline(HeadlineT&& value) {
50 SetHeadline(std::forward<HeadlineT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetParagraphSummary() const { return m_paragraphSummary; }
61 inline bool ParagraphSummaryHasBeenSet() const { return m_paragraphSummaryHasBeenSet; }
62 template <typename ParagraphSummaryT = Aws::String>
63 void SetParagraphSummary(ParagraphSummaryT&& value) {
64 m_paragraphSummaryHasBeenSet = true;
65 m_paragraphSummary = std::forward<ParagraphSummaryT>(value);
66 }
67 template <typename ParagraphSummaryT = Aws::String>
68 MessageComponents& WithParagraphSummary(ParagraphSummaryT&& value) {
69 SetParagraphSummary(std::forward<ParagraphSummaryT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetCompleteDescription() const { return m_completeDescription; }
79 inline bool CompleteDescriptionHasBeenSet() const { return m_completeDescriptionHasBeenSet; }
80 template <typename CompleteDescriptionT = Aws::String>
81 void SetCompleteDescription(CompleteDescriptionT&& value) {
82 m_completeDescriptionHasBeenSet = true;
83 m_completeDescription = std::forward<CompleteDescriptionT>(value);
84 }
85 template <typename CompleteDescriptionT = Aws::String>
86 MessageComponents& WithCompleteDescription(CompleteDescriptionT&& value) {
87 SetCompleteDescription(std::forward<CompleteDescriptionT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::String& GetMarkupDescription() const { return m_markupDescription; }
99 inline bool MarkupDescriptionHasBeenSet() const { return m_markupDescriptionHasBeenSet; }
100 template <typename MarkupDescriptionT = Aws::String>
101 void SetMarkupDescription(MarkupDescriptionT&& value) {
102 m_markupDescriptionHasBeenSet = true;
103 m_markupDescription = std::forward<MarkupDescriptionT>(value);
104 }
105 template <typename MarkupDescriptionT = Aws::String>
106 MessageComponents& WithMarkupDescription(MarkupDescriptionT&& value) {
107 SetMarkupDescription(std::forward<MarkupDescriptionT>(value));
108 return *this;
109 }
111
113
119 inline const Aws::Vector<Dimension>& GetDimensions() const { return m_dimensions; }
120 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
121 template <typename DimensionsT = Aws::Vector<Dimension>>
122 void SetDimensions(DimensionsT&& value) {
123 m_dimensionsHasBeenSet = true;
124 m_dimensions = std::forward<DimensionsT>(value);
125 }
126 template <typename DimensionsT = Aws::Vector<Dimension>>
127 MessageComponents& WithDimensions(DimensionsT&& value) {
128 SetDimensions(std::forward<DimensionsT>(value));
129 return *this;
130 }
131 template <typename DimensionsT = Dimension>
132 MessageComponents& AddDimensions(DimensionsT&& value) {
133 m_dimensionsHasBeenSet = true;
134 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_headline;
140
141 Aws::String m_paragraphSummary;
142
143 Aws::String m_completeDescription;
144
145 Aws::String m_markupDescription;
146
147 Aws::Vector<Dimension> m_dimensions;
148 bool m_headlineHasBeenSet = false;
149 bool m_paragraphSummaryHasBeenSet = false;
150 bool m_completeDescriptionHasBeenSet = false;
151 bool m_markupDescriptionHasBeenSet = false;
152 bool m_dimensionsHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace Notifications
157} // namespace Aws
const Aws::String & GetCompleteDescription() const
const Aws::String & GetParagraphSummary() const
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
MessageComponents & WithParagraphSummary(ParagraphSummaryT &&value)
void SetParagraphSummary(ParagraphSummaryT &&value)
MessageComponents & WithHeadline(HeadlineT &&value)
void SetMarkupDescription(MarkupDescriptionT &&value)
MessageComponents & AddDimensions(DimensionsT &&value)
AWS_NOTIFICATIONS_API MessageComponents(Aws::Utils::Json::JsonView jsonValue)
MessageComponents & WithCompleteDescription(CompleteDescriptionT &&value)
MessageComponents & WithDimensions(DimensionsT &&value)
AWS_NOTIFICATIONS_API MessageComponents & operator=(Aws::Utils::Json::JsonView jsonValue)
MessageComponents & WithMarkupDescription(MarkupDescriptionT &&value)
const Aws::Vector< Dimension > & GetDimensions() const
void SetCompleteDescription(CompleteDescriptionT &&value)
const Aws::String & GetMarkupDescription() const
AWS_NOTIFICATIONS_API MessageComponents()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue