AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ByteContentDoc.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_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 BedrockAgentRuntime {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API ByteContentDoc() = default;
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetContentType() const { return m_contentType; }
41 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
42 template <typename ContentTypeT = Aws::String>
44 m_contentTypeHasBeenSet = true;
45 m_contentType = std::forward<ContentTypeT>(value);
46 }
47 template <typename ContentTypeT = Aws::String>
49 SetContentType(std::forward<ContentTypeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Utils::CryptoBuffer& GetData() const { return m_data; }
59 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
60 template <typename DataT = Aws::Utils::CryptoBuffer>
61 void SetData(DataT&& value) {
62 m_dataHasBeenSet = true;
63 m_data = std::forward<DataT>(value);
64 }
65 template <typename DataT = Aws::Utils::CryptoBuffer>
67 SetData(std::forward<DataT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetIdentifier() const { return m_identifier; }
77 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
78 template <typename IdentifierT = Aws::String>
79 void SetIdentifier(IdentifierT&& value) {
80 m_identifierHasBeenSet = true;
81 m_identifier = std::forward<IdentifierT>(value);
82 }
83 template <typename IdentifierT = Aws::String>
85 SetIdentifier(std::forward<IdentifierT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_contentType;
91
93
94 Aws::String m_identifier;
95 bool m_contentTypeHasBeenSet = false;
96 bool m_dataHasBeenSet = false;
97 bool m_identifierHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace BedrockAgentRuntime
102} // namespace Aws
ByteContentDoc & WithContentType(ContentTypeT &&value)
AWS_BEDROCKAGENTRUNTIME_API ByteContentDoc()=default
AWS_BEDROCKAGENTRUNTIME_API ByteContentDoc(Aws::Utils::Json::JsonView jsonValue)
ByteContentDoc & WithData(DataT &&value)
ByteContentDoc & WithIdentifier(IdentifierT &&value)
AWS_BEDROCKAGENTRUNTIME_API ByteContentDoc & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::CryptoBuffer & GetData() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
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