AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ByteContentDoc.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgent {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENT_API ByteContentDoc() = default;
34 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
61 inline const Aws::String& GetMimeType() const { return m_mimeType; }
62 inline bool MimeTypeHasBeenSet() const { return m_mimeTypeHasBeenSet; }
63 template <typename MimeTypeT = Aws::String>
64 void SetMimeType(MimeTypeT&& value) {
65 m_mimeTypeHasBeenSet = true;
66 m_mimeType = std::forward<MimeTypeT>(value);
67 }
68 template <typename MimeTypeT = Aws::String>
70 SetMimeType(std::forward<MimeTypeT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Utils::CryptoBuffer& GetData() const { return m_data; }
80 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
81 template <typename DataT = Aws::Utils::CryptoBuffer>
82 void SetData(DataT&& value) {
83 m_dataHasBeenSet = true;
84 m_data = std::forward<DataT>(value);
85 }
86 template <typename DataT = Aws::Utils::CryptoBuffer>
88 SetData(std::forward<DataT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_mimeType;
94
96 bool m_mimeTypeHasBeenSet = false;
97 bool m_dataHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace BedrockAgent
102} // namespace Aws
ByteContentDoc & WithMimeType(MimeTypeT &&value)
AWS_BEDROCKAGENT_API ByteContentDoc(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::CryptoBuffer & GetData() const
AWS_BEDROCKAGENT_API ByteContentDoc()=default
const Aws::String & GetMimeType() const
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
ByteContentDoc & WithData(DataT &&value)
AWS_BEDROCKAGENT_API ByteContentDoc & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue