AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CommandPayload.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
30 public:
31 AWS_IOT_API CommandPayload() = default;
35
37
40 inline const Aws::Utils::ByteBuffer& GetContent() const { return m_content; }
41 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
42 template <typename ContentT = Aws::Utils::ByteBuffer>
43 void SetContent(ContentT&& value) {
44 m_contentHasBeenSet = true;
45 m_content = std::forward<ContentT>(value);
46 }
47 template <typename ContentT = Aws::Utils::ByteBuffer>
48 CommandPayload& WithContent(ContentT&& value) {
49 SetContent(std::forward<ContentT>(value));
50 return *this;
51 }
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) {
66 m_contentTypeHasBeenSet = true;
67 m_contentType = std::forward<ContentTypeT>(value);
68 }
69 template <typename ContentTypeT = Aws::String>
70 CommandPayload& WithContentType(ContentTypeT&& value) {
71 SetContentType(std::forward<ContentTypeT>(value));
72 return *this;
73 }
75 private:
76 Aws::Utils::ByteBuffer m_content{};
77 bool m_contentHasBeenSet = false;
78
79 Aws::String m_contentType;
80 bool m_contentTypeHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace IoT
85} // 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