AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetData(const Aws::Utils::CryptoBuffer& value) { m_dataHasBeenSet = true; m_data = value; }
50 inline void SetData(Aws::Utils::CryptoBuffer&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
51 inline ByteContentFile& WithData(const Aws::Utils::CryptoBuffer& value) { SetData(value); return *this;}
52 inline ByteContentFile& WithData(Aws::Utils::CryptoBuffer&& value) { SetData(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetMediaType() const{ return m_mediaType; }
60 inline bool MediaTypeHasBeenSet() const { return m_mediaTypeHasBeenSet; }
61 inline void SetMediaType(const Aws::String& value) { m_mediaTypeHasBeenSet = true; m_mediaType = value; }
62 inline void SetMediaType(Aws::String&& value) { m_mediaTypeHasBeenSet = true; m_mediaType = std::move(value); }
63 inline void SetMediaType(const char* value) { m_mediaTypeHasBeenSet = true; m_mediaType.assign(value); }
64 inline ByteContentFile& WithMediaType(const Aws::String& value) { SetMediaType(value); return *this;}
65 inline ByteContentFile& WithMediaType(Aws::String&& value) { SetMediaType(std::move(value)); return *this;}
66 inline ByteContentFile& WithMediaType(const char* value) { SetMediaType(value); return *this;}
68 private:
69
71 bool m_dataHasBeenSet = false;
72
73 Aws::String m_mediaType;
74 bool m_mediaTypeHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace BedrockAgentRuntime
79} // namespace Aws
ByteContentFile & WithMediaType(const char *value)
ByteContentFile & WithData(const Aws::Utils::CryptoBuffer &value)
void SetData(Aws::Utils::CryptoBuffer &&value)
ByteContentFile & WithData(Aws::Utils::CryptoBuffer &&value)
ByteContentFile & WithMediaType(Aws::String &&value)
void SetData(const Aws::Utils::CryptoBuffer &value)
const Aws::Utils::CryptoBuffer & GetData() const
ByteContentFile & WithMediaType(const Aws::String &value)
AWS_BEDROCKAGENTRUNTIME_API ByteContentFile(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API ByteContentFile()
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