AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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 ByteContentFile() = default;
37 AWS_BEDROCKAGENTRUNTIME_API ByteContentFile(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTRUNTIME_API ByteContentFile& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Utils::CryptoBuffer& GetData() const { return m_data; }
48 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
49 template<typename DataT = Aws::Utils::CryptoBuffer>
50 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
51 template<typename DataT = Aws::Utils::CryptoBuffer>
52 ByteContentFile& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
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) { m_mediaTypeHasBeenSet = true; m_mediaType = std::forward<MediaTypeT>(value); }
63 template<typename MediaTypeT = Aws::String>
64 ByteContentFile& WithMediaType(MediaTypeT&& value) { SetMediaType(std::forward<MediaTypeT>(value)); return *this;}
66 private:
67
69 bool m_dataHasBeenSet = false;
70
71 Aws::String m_mediaType;
72 bool m_mediaTypeHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace BedrockAgentRuntime
77} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue