7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/CitationsConfig.h>
9#include <aws/bedrock-runtime/model/SearchResultContentBlock.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
22namespace BedrockRuntime {
46 template <
typename SourceT = Aws::String>
48 m_sourceHasBeenSet =
true;
49 m_source = std::forward<SourceT>(value);
51 template <
typename SourceT = Aws::String>
64 template <
typename TitleT = Aws::String>
66 m_titleHasBeenSet =
true;
67 m_title = std::forward<TitleT>(value);
69 template <
typename TitleT = Aws::String>
71 SetTitle(std::forward<TitleT>(value));
82 template <
typename ContentT = Aws::Vector<SearchResultContentBlock>>
84 m_contentHasBeenSet =
true;
85 m_content = std::forward<ContentT>(value);
87 template <
typename ContentT = Aws::Vector<SearchResultContentBlock>>
92 template <
typename ContentT = SearchResultContentBlock>
94 m_contentHasBeenSet =
true;
95 m_content.emplace_back(std::forward<ContentT>(value));
106 template <
typename CitationsT = CitationsConfig>
108 m_citationsHasBeenSet =
true;
109 m_citations = std::forward<CitationsT>(value);
111 template <
typename CitationsT = CitationsConfig>
125 bool m_sourceHasBeenSet =
false;
126 bool m_titleHasBeenSet =
false;
127 bool m_contentHasBeenSet =
false;
128 bool m_citationsHasBeenSet =
false;
const Aws::String & GetSource() const
SearchResultBlock & WithCitations(CitationsT &&value)
AWS_BEDROCKRUNTIME_API SearchResultBlock()=default
SearchResultBlock & AddContent(ContentT &&value)
bool ContentHasBeenSet() const
SearchResultBlock & WithSource(SourceT &&value)
const Aws::String & GetTitle() const
void SetCitations(CitationsT &&value)
bool TitleHasBeenSet() const
const CitationsConfig & GetCitations() const
bool CitationsHasBeenSet() const
void SetSource(SourceT &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
SearchResultBlock & WithTitle(TitleT &&value)
const Aws::Vector< SearchResultContentBlock > & GetContent() const
SearchResultBlock & WithContent(ContentT &&value)
AWS_BEDROCKRUNTIME_API SearchResultBlock(Aws::Utils::Json::JsonView jsonValue)
bool SourceHasBeenSet() const
void SetTitle(TitleT &&value)
void SetContent(ContentT &&value)
AWS_BEDROCKRUNTIME_API SearchResultBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue