AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
BulkEmailEntryResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sesv2/SESV2_EXPORTS.h>
9#include <aws/sesv2/model/BulkEmailStatus.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
30 public:
31 AWS_SESV2_API BulkEmailEntryResult() = default;
34 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
70 inline BulkEmailStatus GetStatus() const { return m_status; }
71 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
72 inline void SetStatus(BulkEmailStatus value) {
73 m_statusHasBeenSet = true;
74 m_status = value;
75 }
77 SetStatus(value);
78 return *this;
79 }
81
83
87 inline const Aws::String& GetError() const { return m_error; }
88 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
89 template <typename ErrorT = Aws::String>
90 void SetError(ErrorT&& value) {
91 m_errorHasBeenSet = true;
92 m_error = std::forward<ErrorT>(value);
93 }
94 template <typename ErrorT = Aws::String>
96 SetError(std::forward<ErrorT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::String& GetMessageId() const { return m_messageId; }
107 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
108 template <typename MessageIdT = Aws::String>
109 void SetMessageId(MessageIdT&& value) {
110 m_messageIdHasBeenSet = true;
111 m_messageId = std::forward<MessageIdT>(value);
112 }
113 template <typename MessageIdT = Aws::String>
114 BulkEmailEntryResult& WithMessageId(MessageIdT&& value) {
115 SetMessageId(std::forward<MessageIdT>(value));
116 return *this;
117 }
119 private:
121
122 Aws::String m_error;
123
124 Aws::String m_messageId;
125 bool m_statusHasBeenSet = false;
126 bool m_errorHasBeenSet = false;
127 bool m_messageIdHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace SESV2
132} // namespace Aws
void SetStatus(BulkEmailStatus value)
void SetError(ErrorT &&value)
AWS_SESV2_API BulkEmailEntryResult(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API BulkEmailEntryResult & operator=(Aws::Utils::Json::JsonView jsonValue)
BulkEmailEntryResult & WithError(ErrorT &&value)
BulkEmailStatus GetStatus() const
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMessageId(MessageIdT &&value)
const Aws::String & GetError() const
BulkEmailEntryResult & WithMessageId(MessageIdT &&value)
AWS_SESV2_API BulkEmailEntryResult()=default
bool ErrorHasBeenSet() const
bool StatusHasBeenSet() const
BulkEmailEntryResult & WithStatus(BulkEmailStatus value)
bool MessageIdHasBeenSet() const
const Aws::String & GetMessageId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue