AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
PayloadPart.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockRuntime {
20namespace Model {
21
28 public:
29 AWS_BEDROCKRUNTIME_API PayloadPart() = default;
32 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::Utils::CryptoBuffer& GetBytes() const { return m_bytes; }
39 inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
40 template <typename BytesT = Aws::Utils::CryptoBuffer>
41 void SetBytes(BytesT&& value) {
42 m_bytesHasBeenSet = true;
43 m_bytes = std::forward<BytesT>(value);
44 }
45 template <typename BytesT = Aws::Utils::CryptoBuffer>
47 SetBytes(std::forward<BytesT>(value));
48 return *this;
49 }
51 private:
53 bool m_bytesHasBeenSet = false;
54};
55
56} // namespace Model
57} // namespace BedrockRuntime
58} // namespace Aws
const Aws::Utils::CryptoBuffer & GetBytes() const
Definition PayloadPart.h:38
AWS_BEDROCKRUNTIME_API PayloadPart()=default
PayloadPart & WithBytes(BytesT &&value)
Definition PayloadPart.h:46
AWS_BEDROCKRUNTIME_API PayloadPart(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API PayloadPart & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue