AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CommandPayload.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.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 IoT
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOT_API CommandPayload() = default;
40
41
43
46 inline const Aws::Utils::ByteBuffer& GetContent() const { return m_content; }
47 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
48 template<typename ContentT = Aws::Utils::ByteBuffer>
49 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
50 template<typename ContentT = Aws::Utils::ByteBuffer>
51 CommandPayload& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
53
55
62 inline const Aws::String& GetContentType() const { return m_contentType; }
63 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
64 template<typename ContentTypeT = Aws::String>
65 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
66 template<typename ContentTypeT = Aws::String>
67 CommandPayload& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
69 private:
70
71 Aws::Utils::ByteBuffer m_content{};
72 bool m_contentHasBeenSet = false;
73
74 Aws::String m_contentType;
75 bool m_contentTypeHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace IoT
80} // namespace Aws
AWS_IOT_API CommandPayload()=default
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContentType(ContentTypeT &&value)
CommandPayload & WithContent(ContentT &&value)
CommandPayload & WithContentType(ContentTypeT &&value)
AWS_IOT_API CommandPayload & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContent(ContentT &&value)
const Aws::Utils::ByteBuffer & GetContent() const
AWS_IOT_API CommandPayload(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetContentType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue