AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Template.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sesv2/model/EmailTemplateContent.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sesv2/model/MessageHeader.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SESV2
25{
26namespace Model
27{
28
41 {
42 public:
43 AWS_SESV2_API Template();
44 AWS_SESV2_API Template(Aws::Utils::Json::JsonView jsonValue);
46 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
55 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
56 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
57 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
58 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
59 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
60 inline Template& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
61 inline Template& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
62 inline Template& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
64
66
69 inline const Aws::String& GetTemplateArn() const{ return m_templateArn; }
70 inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; }
71 inline void SetTemplateArn(const Aws::String& value) { m_templateArnHasBeenSet = true; m_templateArn = value; }
72 inline void SetTemplateArn(Aws::String&& value) { m_templateArnHasBeenSet = true; m_templateArn = std::move(value); }
73 inline void SetTemplateArn(const char* value) { m_templateArnHasBeenSet = true; m_templateArn.assign(value); }
74 inline Template& WithTemplateArn(const Aws::String& value) { SetTemplateArn(value); return *this;}
75 inline Template& WithTemplateArn(Aws::String&& value) { SetTemplateArn(std::move(value)); return *this;}
76 inline Template& WithTemplateArn(const char* value) { SetTemplateArn(value); return *this;}
78
80
86 inline const EmailTemplateContent& GetTemplateContent() const{ return m_templateContent; }
87 inline bool TemplateContentHasBeenSet() const { return m_templateContentHasBeenSet; }
88 inline void SetTemplateContent(const EmailTemplateContent& value) { m_templateContentHasBeenSet = true; m_templateContent = value; }
89 inline void SetTemplateContent(EmailTemplateContent&& value) { m_templateContentHasBeenSet = true; m_templateContent = std::move(value); }
90 inline Template& WithTemplateContent(const EmailTemplateContent& value) { SetTemplateContent(value); return *this;}
91 inline Template& WithTemplateContent(EmailTemplateContent&& value) { SetTemplateContent(std::move(value)); return *this;}
93
95
101 inline const Aws::String& GetTemplateData() const{ return m_templateData; }
102 inline bool TemplateDataHasBeenSet() const { return m_templateDataHasBeenSet; }
103 inline void SetTemplateData(const Aws::String& value) { m_templateDataHasBeenSet = true; m_templateData = value; }
104 inline void SetTemplateData(Aws::String&& value) { m_templateDataHasBeenSet = true; m_templateData = std::move(value); }
105 inline void SetTemplateData(const char* value) { m_templateDataHasBeenSet = true; m_templateData.assign(value); }
106 inline Template& WithTemplateData(const Aws::String& value) { SetTemplateData(value); return *this;}
107 inline Template& WithTemplateData(Aws::String&& value) { SetTemplateData(std::move(value)); return *this;}
108 inline Template& WithTemplateData(const char* value) { SetTemplateData(value); return *this;}
110
112
115 inline const Aws::Vector<MessageHeader>& GetHeaders() const{ return m_headers; }
116 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
117 inline void SetHeaders(const Aws::Vector<MessageHeader>& value) { m_headersHasBeenSet = true; m_headers = value; }
118 inline void SetHeaders(Aws::Vector<MessageHeader>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
119 inline Template& WithHeaders(const Aws::Vector<MessageHeader>& value) { SetHeaders(value); return *this;}
120 inline Template& WithHeaders(Aws::Vector<MessageHeader>&& value) { SetHeaders(std::move(value)); return *this;}
121 inline Template& AddHeaders(const MessageHeader& value) { m_headersHasBeenSet = true; m_headers.push_back(value); return *this; }
122 inline Template& AddHeaders(MessageHeader&& value) { m_headersHasBeenSet = true; m_headers.push_back(std::move(value)); return *this; }
124 private:
125
126 Aws::String m_templateName;
127 bool m_templateNameHasBeenSet = false;
128
129 Aws::String m_templateArn;
130 bool m_templateArnHasBeenSet = false;
131
132 EmailTemplateContent m_templateContent;
133 bool m_templateContentHasBeenSet = false;
134
135 Aws::String m_templateData;
136 bool m_templateDataHasBeenSet = false;
137
139 bool m_headersHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace SESV2
144} // namespace Aws
const Aws::String & GetTemplateName() const
Definition Template.h:55
Template & WithHeaders(const Aws::Vector< MessageHeader > &value)
Definition Template.h:119
const Aws::String & GetTemplateArn() const
Definition Template.h:69
void SetTemplateArn(const Aws::String &value)
Definition Template.h:71
const EmailTemplateContent & GetTemplateContent() const
Definition Template.h:86
bool TemplateArnHasBeenSet() const
Definition Template.h:70
Template & WithTemplateArn(const char *value)
Definition Template.h:76
void SetTemplateData(Aws::String &&value)
Definition Template.h:104
bool TemplateNameHasBeenSet() const
Definition Template.h:56
Template & AddHeaders(MessageHeader &&value)
Definition Template.h:122
Template & WithTemplateArn(Aws::String &&value)
Definition Template.h:75
Template & WithTemplateData(const char *value)
Definition Template.h:108
void SetTemplateContent(EmailTemplateContent &&value)
Definition Template.h:89
Template & WithTemplateContent(const EmailTemplateContent &value)
Definition Template.h:90
Template & WithTemplateName(const Aws::String &value)
Definition Template.h:60
void SetTemplateName(const Aws::String &value)
Definition Template.h:57
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
bool HeadersHasBeenSet() const
Definition Template.h:116
Template & AddHeaders(const MessageHeader &value)
Definition Template.h:121
const Aws::String & GetTemplateData() const
Definition Template.h:101
bool TemplateDataHasBeenSet() const
Definition Template.h:102
void SetHeaders(const Aws::Vector< MessageHeader > &value)
Definition Template.h:117
Template & WithHeaders(Aws::Vector< MessageHeader > &&value)
Definition Template.h:120
void SetTemplateContent(const EmailTemplateContent &value)
Definition Template.h:88
Template & WithTemplateData(Aws::String &&value)
Definition Template.h:107
Template & WithTemplateData(const Aws::String &value)
Definition Template.h:106
void SetTemplateData(const char *value)
Definition Template.h:105
Template & WithTemplateArn(const Aws::String &value)
Definition Template.h:74
AWS_SESV2_API Template & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TemplateContentHasBeenSet() const
Definition Template.h:87
const Aws::Vector< MessageHeader > & GetHeaders() const
Definition Template.h:115
void SetTemplateArn(const char *value)
Definition Template.h:73
Template & WithTemplateName(const char *value)
Definition Template.h:62
AWS_SESV2_API Template(Aws::Utils::Json::JsonView jsonValue)
void SetTemplateArn(Aws::String &&value)
Definition Template.h:72
Template & WithTemplateName(Aws::String &&value)
Definition Template.h:61
void SetTemplateName(Aws::String &&value)
Definition Template.h:58
void SetHeaders(Aws::Vector< MessageHeader > &&value)
Definition Template.h:118
Template & WithTemplateContent(EmailTemplateContent &&value)
Definition Template.h:91
void SetTemplateData(const Aws::String &value)
Definition Template.h:103
void SetTemplateName(const char *value)
Definition Template.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue