AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ByteContentDoc.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/Array.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 BedrockAgentRuntime
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BEDROCKAGENTRUNTIME_API ByteContentDoc() = default;
37 AWS_BEDROCKAGENTRUNTIME_API ByteContentDoc(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTRUNTIME_API ByteContentDoc& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetContentType() const { return m_contentType; }
47 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
48 template<typename ContentTypeT = Aws::String>
49 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
50 template<typename ContentTypeT = Aws::String>
51 ByteContentDoc& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
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) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
62 template<typename DataT = Aws::Utils::CryptoBuffer>
63 ByteContentDoc& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
65
67
70 inline const Aws::String& GetIdentifier() const { return m_identifier; }
71 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
72 template<typename IdentifierT = Aws::String>
73 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
74 template<typename IdentifierT = Aws::String>
75 ByteContentDoc& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
77 private:
78
79 Aws::String m_contentType;
80 bool m_contentTypeHasBeenSet = false;
81
83 bool m_dataHasBeenSet = false;
84
85 Aws::String m_identifier;
86 bool m_identifierHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace BedrockAgentRuntime
91} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue