AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ResourceContent.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/ResourceContentType.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentCore {
22namespace Model {
23
30 public:
31 AWS_BEDROCKAGENTCORE_API ResourceContent() = default;
32 AWS_BEDROCKAGENTCORE_API ResourceContent(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BEDROCKAGENTCORE_API ResourceContent& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline ResourceContentType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(ResourceContentType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetUri() const { return m_uri; }
57 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
58 template <typename UriT = Aws::String>
59 void SetUri(UriT&& value) {
60 m_uriHasBeenSet = true;
61 m_uri = std::forward<UriT>(value);
62 }
63 template <typename UriT = Aws::String>
64 ResourceContent& WithUri(UriT&& value) {
65 SetUri(std::forward<UriT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetMimeType() const { return m_mimeType; }
75 inline bool MimeTypeHasBeenSet() const { return m_mimeTypeHasBeenSet; }
76 template <typename MimeTypeT = Aws::String>
77 void SetMimeType(MimeTypeT&& value) {
78 m_mimeTypeHasBeenSet = true;
79 m_mimeType = std::forward<MimeTypeT>(value);
80 }
81 template <typename MimeTypeT = Aws::String>
82 ResourceContent& WithMimeType(MimeTypeT&& value) {
83 SetMimeType(std::forward<MimeTypeT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetText() const { return m_text; }
93 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
94 template <typename TextT = Aws::String>
95 void SetText(TextT&& value) {
96 m_textHasBeenSet = true;
97 m_text = std::forward<TextT>(value);
98 }
99 template <typename TextT = Aws::String>
100 ResourceContent& WithText(TextT&& value) {
101 SetText(std::forward<TextT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Utils::ByteBuffer& GetBlob() const { return m_blob; }
111 inline bool BlobHasBeenSet() const { return m_blobHasBeenSet; }
112 template <typename BlobT = Aws::Utils::ByteBuffer>
113 void SetBlob(BlobT&& value) {
114 m_blobHasBeenSet = true;
115 m_blob = std::forward<BlobT>(value);
116 }
117 template <typename BlobT = Aws::Utils::ByteBuffer>
118 ResourceContent& WithBlob(BlobT&& value) {
119 SetBlob(std::forward<BlobT>(value));
120 return *this;
121 }
123 private:
125
126 Aws::String m_uri;
127
128 Aws::String m_mimeType;
129
130 Aws::String m_text;
131
132 Aws::Utils::ByteBuffer m_blob{};
133 bool m_typeHasBeenSet = false;
134 bool m_uriHasBeenSet = false;
135 bool m_mimeTypeHasBeenSet = false;
136 bool m_textHasBeenSet = false;
137 bool m_blobHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace BedrockAgentCore
142} // namespace Aws
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceContent & WithBlob(BlobT &&value)
ResourceContent & WithType(ResourceContentType value)
ResourceContent & WithText(TextT &&value)
ResourceContent & WithMimeType(MimeTypeT &&value)
void SetType(ResourceContentType value)
const Aws::Utils::ByteBuffer & GetBlob() const
ResourceContent & WithUri(UriT &&value)
AWS_BEDROCKAGENTCORE_API ResourceContent()=default
AWS_BEDROCKAGENTCORE_API ResourceContent(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTCORE_API ResourceContent & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue