AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
99 inline const Aws::Vector<Dimension>& GetDimensions() const { return m_dimensions; }
100 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
101 template <typename DimensionsT = Aws::Vector<Dimension>>
102 void SetDimensions(DimensionsT&& value) {
103 m_dimensionsHasBeenSet = true;
104 m_dimensions = std::forward<DimensionsT>(value);
105 }
106 template <typename DimensionsT = Aws::Vector<Dimension>>
107 MessageComponents& WithDimensions(DimensionsT&& value) {
108 SetDimensions(std::forward<DimensionsT>(value));
109 return *this;
110 }
111 template <typename DimensionsT = Dimension>
112 MessageComponents& AddDimensions(DimensionsT&& value) {
113 m_dimensionsHasBeenSet = true;
114 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_headline;
120
121 Aws::String m_paragraphSummary;
122
123 Aws::String m_completeDescription;
124
125 Aws::Vector<Dimension> m_dimensions;
126 bool m_headlineHasBeenSet = false;
127 bool m_paragraphSummaryHasBeenSet = false;
128 bool m_completeDescriptionHasBeenSet = false;
129 bool m_dimensionsHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace Notifications
134} // 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)
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)
const Aws::Vector< Dimension > & GetDimensions() const
void SetCompleteDescription(CompleteDescriptionT &&value)
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