AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#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 BedrockAgent
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BEDROCKAGENT_API ByteContentDoc() = default;
37 AWS_BEDROCKAGENT_API ByteContentDoc(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENT_API ByteContentDoc& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Utils::CryptoBuffer& GetData() const { return m_data; }
47 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
48 template<typename DataT = Aws::Utils::CryptoBuffer>
49 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
50 template<typename DataT = Aws::Utils::CryptoBuffer>
51 ByteContentDoc& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
53
55
79 inline const Aws::String& GetMimeType() const { return m_mimeType; }
80 inline bool MimeTypeHasBeenSet() const { return m_mimeTypeHasBeenSet; }
81 template<typename MimeTypeT = Aws::String>
82 void SetMimeType(MimeTypeT&& value) { m_mimeTypeHasBeenSet = true; m_mimeType = std::forward<MimeTypeT>(value); }
83 template<typename MimeTypeT = Aws::String>
84 ByteContentDoc& WithMimeType(MimeTypeT&& value) { SetMimeType(std::forward<MimeTypeT>(value)); return *this;}
86 private:
87
89 bool m_dataHasBeenSet = false;
90
91 Aws::String m_mimeType;
92 bool m_mimeTypeHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace BedrockAgent
97} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue