AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ByteContentFile.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 ByteContentFile() = default;
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Utils::CryptoBuffer& GetData() const { return m_data; }
42 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
43 template <typename DataT = Aws::Utils::CryptoBuffer>
44 void SetData(DataT&& value) {
45 m_dataHasBeenSet = true;
46 m_data = std::forward<DataT>(value);
47 }
48 template <typename DataT = Aws::Utils::CryptoBuffer>
50 SetData(std::forward<DataT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetMediaType() const { return m_mediaType; }
60 inline bool MediaTypeHasBeenSet() const { return m_mediaTypeHasBeenSet; }
61 template <typename MediaTypeT = Aws::String>
62 void SetMediaType(MediaTypeT&& value) {
63 m_mediaTypeHasBeenSet = true;
64 m_mediaType = std::forward<MediaTypeT>(value);
65 }
66 template <typename MediaTypeT = Aws::String>
68 SetMediaType(std::forward<MediaTypeT>(value));
69 return *this;
70 }
72 private:
74
75 Aws::String m_mediaType;
76 bool m_dataHasBeenSet = false;
77 bool m_mediaTypeHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace BedrockAgentRuntime
82} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API ByteContentFile()=default
const Aws::Utils::CryptoBuffer & GetData() const
ByteContentFile & WithMediaType(MediaTypeT &&value)
ByteContentFile & WithData(DataT &&value)
AWS_BEDROCKAGENTRUNTIME_API ByteContentFile(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API ByteContentFile & operator=(Aws::Utils::Json::JsonView jsonValue)
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