AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Content.h
1
6#pragma once
7#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PinpointEmail
22{
23namespace Model
24{
25
32 class Content
33 {
34 public:
35 AWS_PINPOINTEMAIL_API Content() = default;
36 AWS_PINPOINTEMAIL_API Content(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PINPOINTEMAIL_API Content& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetData() const { return m_data; }
46 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
47 template<typename DataT = Aws::String>
48 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
49 template<typename DataT = Aws::String>
50 Content& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
52
54
61 inline const Aws::String& GetCharset() const { return m_charset; }
62 inline bool CharsetHasBeenSet() const { return m_charsetHasBeenSet; }
63 template<typename CharsetT = Aws::String>
64 void SetCharset(CharsetT&& value) { m_charsetHasBeenSet = true; m_charset = std::forward<CharsetT>(value); }
65 template<typename CharsetT = Aws::String>
66 Content& WithCharset(CharsetT&& value) { SetCharset(std::forward<CharsetT>(value)); return *this;}
68 private:
69
70 Aws::String m_data;
71 bool m_dataHasBeenSet = false;
72
73 Aws::String m_charset;
74 bool m_charsetHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace PinpointEmail
79} // namespace Aws
AWS_PINPOINTEMAIL_API Content()=default
void SetCharset(CharsetT &&value)
Definition Content.h:64
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINTEMAIL_API Content(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCharset() const
Definition Content.h:61
Content & WithData(DataT &&value)
Definition Content.h:50
const Aws::String & GetData() const
Definition Content.h:45
Content & WithCharset(CharsetT &&value)
Definition Content.h:66
void SetData(DataT &&value)
Definition Content.h:48
AWS_PINPOINTEMAIL_API Content & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue