AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
RawMessage.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/sesv2/SESV2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SESV2 {
20namespace Model {
21
28 public:
29 AWS_SESV2_API RawMessage() = default;
30 AWS_SESV2_API RawMessage(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
52 inline const Aws::Utils::ByteBuffer& GetData() const { return m_data; }
53 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
54 template <typename DataT = Aws::Utils::ByteBuffer>
55 void SetData(DataT&& value) {
56 m_dataHasBeenSet = true;
57 m_data = std::forward<DataT>(value);
58 }
59 template <typename DataT = Aws::Utils::ByteBuffer>
60 RawMessage& WithData(DataT&& value) {
61 SetData(std::forward<DataT>(value));
62 return *this;
63 }
65 private:
67 bool m_dataHasBeenSet = false;
68};
69
70} // namespace Model
71} // namespace SESV2
72} // namespace Aws
AWS_SESV2_API RawMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API RawMessage()=default
RawMessage & WithData(DataT &&value)
Definition RawMessage.h:60
const Aws::Utils::ByteBuffer & GetData() const
Definition RawMessage.h:52
void SetData(DataT &&value)
Definition RawMessage.h:55
AWS_SESV2_API RawMessage(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue