AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Payload.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotevents/model/PayloadType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTEvents
23{
24namespace Model
25{
26
37 class Payload
38 {
39 public:
40 AWS_IOTEVENTS_API Payload();
41 AWS_IOTEVENTS_API Payload(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IOTEVENTS_API Payload& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
55 inline const Aws::String& GetContentExpression() const{ return m_contentExpression; }
56 inline bool ContentExpressionHasBeenSet() const { return m_contentExpressionHasBeenSet; }
57 inline void SetContentExpression(const Aws::String& value) { m_contentExpressionHasBeenSet = true; m_contentExpression = value; }
58 inline void SetContentExpression(Aws::String&& value) { m_contentExpressionHasBeenSet = true; m_contentExpression = std::move(value); }
59 inline void SetContentExpression(const char* value) { m_contentExpressionHasBeenSet = true; m_contentExpression.assign(value); }
60 inline Payload& WithContentExpression(const Aws::String& value) { SetContentExpression(value); return *this;}
61 inline Payload& WithContentExpression(Aws::String&& value) { SetContentExpression(std::move(value)); return *this;}
62 inline Payload& WithContentExpression(const char* value) { SetContentExpression(value); return *this;}
64
66
70 inline const PayloadType& GetType() const{ return m_type; }
71 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
72 inline void SetType(const PayloadType& value) { m_typeHasBeenSet = true; m_type = value; }
73 inline void SetType(PayloadType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
74 inline Payload& WithType(const PayloadType& value) { SetType(value); return *this;}
75 inline Payload& WithType(PayloadType&& value) { SetType(std::move(value)); return *this;}
77 private:
78
79 Aws::String m_contentExpression;
80 bool m_contentExpressionHasBeenSet = false;
81
82 PayloadType m_type;
83 bool m_typeHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace IoTEvents
88} // namespace Aws
Payload & WithContentExpression(Aws::String &&value)
Definition Payload.h:61
const Aws::String & GetContentExpression() const
Definition Payload.h:55
const PayloadType & GetType() const
Definition Payload.h:70
void SetContentExpression(const Aws::String &value)
Definition Payload.h:57
void SetType(PayloadType &&value)
Definition Payload.h:73
Payload & WithType(const PayloadType &value)
Definition Payload.h:74
AWS_IOTEVENTS_API Payload(Aws::Utils::Json::JsonView jsonValue)
void SetContentExpression(const char *value)
Definition Payload.h:59
bool ContentExpressionHasBeenSet() const
Definition Payload.h:56
Payload & WithType(PayloadType &&value)
Definition Payload.h:75
AWS_IOTEVENTS_API Payload()
Payload & WithContentExpression(const Aws::String &value)
Definition Payload.h:60
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(const PayloadType &value)
Definition Payload.h:72
Payload & WithContentExpression(const char *value)
Definition Payload.h:62
void SetContentExpression(Aws::String &&value)
Definition Payload.h:58
AWS_IOTEVENTS_API Payload & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue