AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RenderMessageTemplateResult.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/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/MessageTemplateAttachment.h>
11#include <aws/qconnect/model/MessageTemplateContentProvider.h>
12#include <aws/qconnect/model/MessageTemplateSourceConfigurationSummary.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace QConnect {
26namespace Model {
28 public:
29 AWS_QCONNECT_API RenderMessageTemplateResult() = default;
32
34
37 inline const MessageTemplateContentProvider& GetContent() const { return m_content; }
38 template <typename ContentT = MessageTemplateContentProvider>
39 void SetContent(ContentT&& value) {
40 m_contentHasBeenSet = true;
41 m_content = std::forward<ContentT>(value);
42 }
43 template <typename ContentT = MessageTemplateContentProvider>
45 SetContent(std::forward<ContentT>(value));
46 return *this;
47 }
49
51
54 inline const MessageTemplateSourceConfigurationSummary& GetSourceConfigurationSummary() const { return m_sourceConfigurationSummary; }
55 template <typename SourceConfigurationSummaryT = MessageTemplateSourceConfigurationSummary>
57 m_sourceConfigurationSummaryHasBeenSet = true;
58 m_sourceConfigurationSummary = std::forward<SourceConfigurationSummaryT>(value);
59 }
60 template <typename SourceConfigurationSummaryT = MessageTemplateSourceConfigurationSummary>
62 SetSourceConfigurationSummary(std::forward<SourceConfigurationSummaryT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::Vector<Aws::String>& GetAttributesNotInterpolated() const { return m_attributesNotInterpolated; }
72 template <typename AttributesNotInterpolatedT = Aws::Vector<Aws::String>>
74 m_attributesNotInterpolatedHasBeenSet = true;
75 m_attributesNotInterpolated = std::forward<AttributesNotInterpolatedT>(value);
76 }
77 template <typename AttributesNotInterpolatedT = Aws::Vector<Aws::String>>
79 SetAttributesNotInterpolated(std::forward<AttributesNotInterpolatedT>(value));
80 return *this;
81 }
82 template <typename AttributesNotInterpolatedT = Aws::String>
84 m_attributesNotInterpolatedHasBeenSet = true;
85 m_attributesNotInterpolated.emplace_back(std::forward<AttributesNotInterpolatedT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Vector<MessageTemplateAttachment>& GetAttachments() const { return m_attachments; }
95 template <typename AttachmentsT = Aws::Vector<MessageTemplateAttachment>>
97 m_attachmentsHasBeenSet = true;
98 m_attachments = std::forward<AttachmentsT>(value);
99 }
100 template <typename AttachmentsT = Aws::Vector<MessageTemplateAttachment>>
102 SetAttachments(std::forward<AttachmentsT>(value));
103 return *this;
104 }
105 template <typename AttachmentsT = MessageTemplateAttachment>
107 m_attachmentsHasBeenSet = true;
108 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
109 return *this;
110 }
112
114
115 inline const Aws::String& GetRequestId() const { return m_requestId; }
116 template <typename RequestIdT = Aws::String>
117 void SetRequestId(RequestIdT&& value) {
118 m_requestIdHasBeenSet = true;
119 m_requestId = std::forward<RequestIdT>(value);
120 }
121 template <typename RequestIdT = Aws::String>
123 SetRequestId(std::forward<RequestIdT>(value));
124 return *this;
125 }
127 private:
129
130 MessageTemplateSourceConfigurationSummary m_sourceConfigurationSummary;
131
132 Aws::Vector<Aws::String> m_attributesNotInterpolated;
133
135
136 Aws::String m_requestId;
137 bool m_contentHasBeenSet = false;
138 bool m_sourceConfigurationSummaryHasBeenSet = false;
139 bool m_attributesNotInterpolatedHasBeenSet = false;
140 bool m_attachmentsHasBeenSet = false;
141 bool m_requestIdHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace QConnect
146} // namespace Aws
AWS_QCONNECT_API RenderMessageTemplateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const MessageTemplateSourceConfigurationSummary & GetSourceConfigurationSummary() const
AWS_QCONNECT_API RenderMessageTemplateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RenderMessageTemplateResult & WithAttributesNotInterpolated(AttributesNotInterpolatedT &&value)
RenderMessageTemplateResult & WithContent(ContentT &&value)
AWS_QCONNECT_API RenderMessageTemplateResult()=default
const Aws::Vector< MessageTemplateAttachment > & GetAttachments() const
RenderMessageTemplateResult & WithAttachments(AttachmentsT &&value)
RenderMessageTemplateResult & WithSourceConfigurationSummary(SourceConfigurationSummaryT &&value)
RenderMessageTemplateResult & WithRequestId(RequestIdT &&value)
RenderMessageTemplateResult & AddAttributesNotInterpolated(AttributesNotInterpolatedT &&value)
const MessageTemplateContentProvider & GetContent() const
RenderMessageTemplateResult & AddAttachments(AttachmentsT &&value)
void SetSourceConfigurationSummary(SourceConfigurationSummaryT &&value)
void SetAttributesNotInterpolated(AttributesNotInterpolatedT &&value)
const Aws::Vector< Aws::String > & GetAttributesNotInterpolated() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue