AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Attribution.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-agent-runtime/model/Citation.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 Attribution() = default;
37 AWS_BEDROCKAGENTRUNTIME_API Attribution(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTRUNTIME_API Attribution& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<Citation>& GetCitations() const { return m_citations; }
48 inline bool CitationsHasBeenSet() const { return m_citationsHasBeenSet; }
49 template<typename CitationsT = Aws::Vector<Citation>>
50 void SetCitations(CitationsT&& value) { m_citationsHasBeenSet = true; m_citations = std::forward<CitationsT>(value); }
51 template<typename CitationsT = Aws::Vector<Citation>>
52 Attribution& WithCitations(CitationsT&& value) { SetCitations(std::forward<CitationsT>(value)); return *this;}
53 template<typename CitationsT = Citation>
54 Attribution& AddCitations(CitationsT&& value) { m_citationsHasBeenSet = true; m_citations.emplace_back(std::forward<CitationsT>(value)); return *this; }
56 private:
57
58 Aws::Vector<Citation> m_citations;
59 bool m_citationsHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace BedrockAgentRuntime
64} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Attribution()=default
const Aws::Vector< Citation > & GetCitations() const
Definition Attribution.h:47
Attribution & WithCitations(CitationsT &&value)
Definition Attribution.h:52
AWS_BEDROCKAGENTRUNTIME_API Attribution & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API Attribution(Aws::Utils::Json::JsonView jsonValue)
Attribution & AddCitations(CitationsT &&value)
Definition Attribution.h:54
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue