AWS SDK for C++

AWS SDK for C++ Version 1.11.610

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