AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
EmailTemplateMetadata.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sesv2/SESV2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SESV2 {
21namespace Model {
22
29 public:
30 AWS_SESV2_API EmailTemplateMetadata() = default;
33 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetTemplateName() const { return m_templateName; }
40 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
41 template <typename TemplateNameT = Aws::String>
42 void SetTemplateName(TemplateNameT&& value) {
43 m_templateNameHasBeenSet = true;
44 m_templateName = std::forward<TemplateNameT>(value);
45 }
46 template <typename TemplateNameT = Aws::String>
47 EmailTemplateMetadata& WithTemplateName(TemplateNameT&& value) {
48 SetTemplateName(std::forward<TemplateNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
58 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
59 template <typename CreatedTimestampT = Aws::Utils::DateTime>
60 void SetCreatedTimestamp(CreatedTimestampT&& value) {
61 m_createdTimestampHasBeenSet = true;
62 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
63 }
64 template <typename CreatedTimestampT = Aws::Utils::DateTime>
65 EmailTemplateMetadata& WithCreatedTimestamp(CreatedTimestampT&& value) {
66 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_templateName;
72
73 Aws::Utils::DateTime m_createdTimestamp{};
74 bool m_templateNameHasBeenSet = false;
75 bool m_createdTimestampHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace SESV2
80} // namespace Aws
const Aws::Utils::DateTime & GetCreatedTimestamp() const
EmailTemplateMetadata & WithTemplateName(TemplateNameT &&value)
AWS_SESV2_API EmailTemplateMetadata()=default
void SetCreatedTimestamp(CreatedTimestampT &&value)
EmailTemplateMetadata & WithCreatedTimestamp(CreatedTimestampT &&value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SESV2_API EmailTemplateMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API EmailTemplateMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue