AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MessageComponents.h
1
6#pragma once
7#include <aws/notifications/Notifications_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/notifications/model/Dimension.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Notifications
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_NOTIFICATIONS_API MessageComponents() = default;
38 AWS_NOTIFICATIONS_API MessageComponents(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NOTIFICATIONS_API MessageComponents& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetHeadline() const { return m_headline; }
48 inline bool HeadlineHasBeenSet() const { return m_headlineHasBeenSet; }
49 template<typename HeadlineT = Aws::String>
50 void SetHeadline(HeadlineT&& value) { m_headlineHasBeenSet = true; m_headline = std::forward<HeadlineT>(value); }
51 template<typename HeadlineT = Aws::String>
52 MessageComponents& WithHeadline(HeadlineT&& value) { SetHeadline(std::forward<HeadlineT>(value)); return *this;}
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) { m_paragraphSummaryHasBeenSet = true; m_paragraphSummary = std::forward<ParagraphSummaryT>(value); }
64 template<typename ParagraphSummaryT = Aws::String>
65 MessageComponents& WithParagraphSummary(ParagraphSummaryT&& value) { SetParagraphSummary(std::forward<ParagraphSummaryT>(value)); return *this;}
67
69
72 inline const Aws::String& GetCompleteDescription() const { return m_completeDescription; }
73 inline bool CompleteDescriptionHasBeenSet() const { return m_completeDescriptionHasBeenSet; }
74 template<typename CompleteDescriptionT = Aws::String>
75 void SetCompleteDescription(CompleteDescriptionT&& value) { m_completeDescriptionHasBeenSet = true; m_completeDescription = std::forward<CompleteDescriptionT>(value); }
76 template<typename CompleteDescriptionT = Aws::String>
77 MessageComponents& WithCompleteDescription(CompleteDescriptionT&& value) { SetCompleteDescription(std::forward<CompleteDescriptionT>(value)); return *this;}
79
81
87 inline const Aws::Vector<Dimension>& GetDimensions() const { return m_dimensions; }
88 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
89 template<typename DimensionsT = Aws::Vector<Dimension>>
90 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
91 template<typename DimensionsT = Aws::Vector<Dimension>>
92 MessageComponents& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
93 template<typename DimensionsT = Dimension>
94 MessageComponents& AddDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace_back(std::forward<DimensionsT>(value)); return *this; }
96 private:
97
98 Aws::String m_headline;
99 bool m_headlineHasBeenSet = false;
100
101 Aws::String m_paragraphSummary;
102 bool m_paragraphSummaryHasBeenSet = false;
103
104 Aws::String m_completeDescription;
105 bool m_completeDescriptionHasBeenSet = false;
106
107 Aws::Vector<Dimension> m_dimensions;
108 bool m_dimensionsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Notifications
113} // 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