AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; }
48 inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
49 inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); }
50 inline Content& WithData(const Aws::String& value) { SetData(value); return *this;}
51 inline Content& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;}
52 inline Content& WithData(const char* value) { SetData(value); return *this;}
54
56
63 inline const Aws::String& GetCharset() const{ return m_charset; }
64 inline bool CharsetHasBeenSet() const { return m_charsetHasBeenSet; }
65 inline void SetCharset(const Aws::String& value) { m_charsetHasBeenSet = true; m_charset = value; }
66 inline void SetCharset(Aws::String&& value) { m_charsetHasBeenSet = true; m_charset = std::move(value); }
67 inline void SetCharset(const char* value) { m_charsetHasBeenSet = true; m_charset.assign(value); }
68 inline Content& WithCharset(const Aws::String& value) { SetCharset(value); return *this;}
69 inline Content& WithCharset(Aws::String&& value) { SetCharset(std::move(value)); return *this;}
70 inline Content& WithCharset(const char* value) { SetCharset(value); return *this;}
72 private:
73
74 Aws::String m_data;
75 bool m_dataHasBeenSet = false;
76
77 Aws::String m_charset;
78 bool m_charsetHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace PinpointEmail
83} // namespace Aws
void SetCharset(const Aws::String &value)
Definition Content.h:65
void SetCharset(const char *value)
Definition Content.h:67
void SetData(const char *value)
Definition Content.h:49
Content & WithData(const char *value)
Definition Content.h:52
Content & WithCharset(const char *value)
Definition Content.h:70
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCharset(Aws::String &&value)
Definition Content.h:66
AWS_PINPOINTEMAIL_API Content(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCharset() const
Definition Content.h:63
Content & WithCharset(Aws::String &&value)
Definition Content.h:69
AWS_PINPOINTEMAIL_API Content()
Content & WithCharset(const Aws::String &value)
Definition Content.h:68
Content & WithData(const Aws::String &value)
Definition Content.h:50
void SetData(const Aws::String &value)
Definition Content.h:47
void SetData(Aws::String &&value)
Definition Content.h:48
const Aws::String & GetData() const
Definition Content.h:45
Content & WithData(Aws::String &&value)
Definition Content.h:51
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