AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCitations(const Aws::Vector<Citation>& value) { m_citationsHasBeenSet = true; m_citations = value; }
50 inline void SetCitations(Aws::Vector<Citation>&& value) { m_citationsHasBeenSet = true; m_citations = std::move(value); }
51 inline Attribution& WithCitations(const Aws::Vector<Citation>& value) { SetCitations(value); return *this;}
52 inline Attribution& WithCitations(Aws::Vector<Citation>&& value) { SetCitations(std::move(value)); return *this;}
53 inline Attribution& AddCitations(const Citation& value) { m_citationsHasBeenSet = true; m_citations.push_back(value); return *this; }
54 inline Attribution& AddCitations(Citation&& value) { m_citationsHasBeenSet = true; m_citations.push_back(std::move(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
Attribution & AddCitations(const Citation &value)
Definition Attribution.h:53
const Aws::Vector< Citation > & GetCitations() const
Definition Attribution.h:47
void SetCitations(const Aws::Vector< Citation > &value)
Definition Attribution.h:49
void SetCitations(Aws::Vector< Citation > &&value)
Definition Attribution.h:50
AWS_BEDROCKAGENTRUNTIME_API Attribution()
Attribution & WithCitations(const Aws::Vector< Citation > &value)
Definition Attribution.h:51
AWS_BEDROCKAGENTRUNTIME_API Attribution & operator=(Aws::Utils::Json::JsonView jsonValue)
Attribution & AddCitations(Citation &&value)
Definition Attribution.h:54
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API Attribution(Aws::Utils::Json::JsonView jsonValue)
Attribution & WithCitations(Aws::Vector< Citation > &&value)
Definition Attribution.h:52
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue