AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
ByteContentDoc.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_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 Bedrock {
21namespace Model {
22
30 public:
31 AWS_BEDROCK_API ByteContentDoc() = default;
32 AWS_BEDROCK_API ByteContentDoc(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetIdentifier() const { return m_identifier; }
41 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
42 template <typename IdentifierT = Aws::String>
43 void SetIdentifier(IdentifierT&& value) {
44 m_identifierHasBeenSet = true;
45 m_identifier = std::forward<IdentifierT>(value);
46 }
47 template <typename IdentifierT = Aws::String>
48 ByteContentDoc& WithIdentifier(IdentifierT&& value) {
49 SetIdentifier(std::forward<IdentifierT>(value));
50 return *this;
51 }
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) {
62 m_contentTypeHasBeenSet = true;
63 m_contentType = std::forward<ContentTypeT>(value);
64 }
65 template <typename ContentTypeT = Aws::String>
66 ByteContentDoc& WithContentType(ContentTypeT&& value) {
67 SetContentType(std::forward<ContentTypeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::CryptoBuffer& GetData() const { return m_data; }
77 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
78 template <typename DataT = Aws::Utils::CryptoBuffer>
79 void SetData(DataT&& value) {
80 m_dataHasBeenSet = true;
81 m_data = std::forward<DataT>(value);
82 }
83 template <typename DataT = Aws::Utils::CryptoBuffer>
84 ByteContentDoc& WithData(DataT&& value) {
85 SetData(std::forward<DataT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_identifier;
91 bool m_identifierHasBeenSet = false;
92
93 Aws::String m_contentType;
94 bool m_contentTypeHasBeenSet = false;
95
97 bool m_dataHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Bedrock
102} // 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