AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EventPayload.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_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 CodeCatalyst
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CODECATALYST_API EventPayload();
36 AWS_CODECATALYST_API EventPayload(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODECATALYST_API EventPayload& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetContentType() const{ return m_contentType; }
46 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
47 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
48 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
49 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
50 inline EventPayload& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
51 inline EventPayload& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
52 inline EventPayload& WithContentType(const char* value) { SetContentType(value); return *this;}
54
56
59 inline const Aws::String& GetData() const{ return m_data; }
60 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
61 inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; }
62 inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
63 inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); }
64 inline EventPayload& WithData(const Aws::String& value) { SetData(value); return *this;}
65 inline EventPayload& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;}
66 inline EventPayload& WithData(const char* value) { SetData(value); return *this;}
68 private:
69
70 Aws::String m_contentType;
71 bool m_contentTypeHasBeenSet = false;
72
73 Aws::String m_data;
74 bool m_dataHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace CodeCatalyst
79} // namespace Aws
void SetContentType(const char *value)
AWS_CODECATALYST_API EventPayload & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetData() const
void SetContentType(Aws::String &&value)
EventPayload & WithContentType(const char *value)
AWS_CODECATALYST_API EventPayload(Aws::Utils::Json::JsonView jsonValue)
EventPayload & WithContentType(const Aws::String &value)
EventPayload & WithContentType(Aws::String &&value)
void SetContentType(const Aws::String &value)
AWS_CODECATALYST_API EventPayload()
void SetData(const Aws::String &value)
AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const
EventPayload & WithData(const char *value)
void SetData(Aws::String &&value)
const Aws::String & GetContentType() const
EventPayload & WithData(Aws::String &&value)
EventPayload & WithData(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue