AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
BulkEmailDestinationStatus.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/email/SES_EXPORTS.h>
10#include <aws/email/model/BulkEmailStatus.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
30 public:
31 AWS_SES_API BulkEmailDestinationStatus() = default;
34
35 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
69 inline BulkEmailStatus GetStatus() const { return m_status; }
70 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
71 inline void SetStatus(BulkEmailStatus value) {
72 m_statusHasBeenSet = true;
73 m_status = value;
74 }
76 SetStatus(value);
77 return *this;
78 }
80
82
86 inline const Aws::String& GetError() const { return m_error; }
87 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
88 template <typename ErrorT = Aws::String>
89 void SetError(ErrorT&& value) {
90 m_errorHasBeenSet = true;
91 m_error = std::forward<ErrorT>(value);
92 }
93 template <typename ErrorT = Aws::String>
95 SetError(std::forward<ErrorT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::String& GetMessageId() const { return m_messageId; }
106 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
107 template <typename MessageIdT = Aws::String>
108 void SetMessageId(MessageIdT&& value) {
109 m_messageIdHasBeenSet = true;
110 m_messageId = std::forward<MessageIdT>(value);
111 }
112 template <typename MessageIdT = Aws::String>
114 SetMessageId(std::forward<MessageIdT>(value));
115 return *this;
116 }
118 private:
120
121 Aws::String m_error;
122
123 Aws::String m_messageId;
124 bool m_statusHasBeenSet = false;
125 bool m_errorHasBeenSet = false;
126 bool m_messageIdHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace SES
131} // namespace Aws
BulkEmailDestinationStatus & WithMessageId(MessageIdT &&value)
AWS_SES_API BulkEmailDestinationStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SES_API BulkEmailDestinationStatus()=default
AWS_SES_API BulkEmailDestinationStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
BulkEmailDestinationStatus & WithStatus(BulkEmailStatus value)
BulkEmailDestinationStatus & WithError(ErrorT &&value)
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream