AWS SDK for C++

AWS SDK for C++ Version 1.11.774

Loading...
Searching...
No Matches
AutomatedReasoningPolicyAnnotatedChunk.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/AutomatedReasoningPolicyAnnotatedContent.h>
9#include <aws/core/utils/memory/stl/AWSVector.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
31 public:
32 AWS_BEDROCK_API AutomatedReasoningPolicyAnnotatedChunk() = default;
35 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline int GetPageNumber() const { return m_pageNumber; }
43 inline bool PageNumberHasBeenSet() const { return m_pageNumberHasBeenSet; }
44 inline void SetPageNumber(int value) {
45 m_pageNumberHasBeenSet = true;
46 m_pageNumber = value;
47 }
49 SetPageNumber(value);
50 return *this;
51 }
53
55
59 inline const Aws::Vector<AutomatedReasoningPolicyAnnotatedContent>& GetContent() const { return m_content; }
60 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
61 template <typename ContentT = Aws::Vector<AutomatedReasoningPolicyAnnotatedContent>>
62 void SetContent(ContentT&& value) {
63 m_contentHasBeenSet = true;
64 m_content = std::forward<ContentT>(value);
65 }
66 template <typename ContentT = Aws::Vector<AutomatedReasoningPolicyAnnotatedContent>>
68 SetContent(std::forward<ContentT>(value));
69 return *this;
70 }
71 template <typename ContentT = AutomatedReasoningPolicyAnnotatedContent>
73 m_contentHasBeenSet = true;
74 m_content.emplace_back(std::forward<ContentT>(value));
75 return *this;
76 }
78 private:
79 int m_pageNumber{0};
80
82 bool m_pageNumberHasBeenSet = false;
83 bool m_contentHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Bedrock
88} // namespace Aws
AWS_BEDROCK_API AutomatedReasoningPolicyAnnotatedChunk & operator=(Aws::Utils::Json::JsonView jsonValue)
AutomatedReasoningPolicyAnnotatedChunk & AddContent(ContentT &&value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AutomatedReasoningPolicyAnnotatedChunk & WithContent(ContentT &&value)
const Aws::Vector< AutomatedReasoningPolicyAnnotatedContent > & GetContent() const
AWS_BEDROCK_API AutomatedReasoningPolicyAnnotatedChunk(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue