AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
ReceiptRuleSetMetadata.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/email/SES_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace SES {
21namespace Model {
22
34 public:
35 AWS_SES_API ReceiptRuleSetMetadata() = default;
38
39 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template <typename NameT = Aws::String>
53 void SetName(NameT&& value) {
54 m_nameHasBeenSet = true;
55 m_name = std::forward<NameT>(value);
56 }
57 template <typename NameT = Aws::String>
59 SetName(std::forward<NameT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
69 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
70 template <typename CreatedTimestampT = Aws::Utils::DateTime>
71 void SetCreatedTimestamp(CreatedTimestampT&& value) {
72 m_createdTimestampHasBeenSet = true;
73 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
74 }
75 template <typename CreatedTimestampT = Aws::Utils::DateTime>
76 ReceiptRuleSetMetadata& WithCreatedTimestamp(CreatedTimestampT&& value) {
77 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_name;
83
84 Aws::Utils::DateTime m_createdTimestamp{};
85 bool m_nameHasBeenSet = false;
86 bool m_createdTimestampHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace SES
91} // namespace Aws
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetCreatedTimestamp(CreatedTimestampT &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
ReceiptRuleSetMetadata & WithName(NameT &&value)
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_SES_API ReceiptRuleSetMetadata(const Aws::Utils::Xml::XmlNode &xmlNode)
ReceiptRuleSetMetadata & WithCreatedTimestamp(CreatedTimestampT &&value)
AWS_SES_API ReceiptRuleSetMetadata & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SES_API ReceiptRuleSetMetadata()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream