AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
RetrievalInstructionContent.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockAgent {
20namespace Model {
21
30 public:
31 AWS_BEDROCKAGENT_API RetrievalInstructionContent() = default;
34 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetRetrievalGuidance() const { return m_retrievalGuidance; }
42 inline bool RetrievalGuidanceHasBeenSet() const { return m_retrievalGuidanceHasBeenSet; }
43 template <typename RetrievalGuidanceT = Aws::String>
44 void SetRetrievalGuidance(RetrievalGuidanceT&& value) {
45 m_retrievalGuidanceHasBeenSet = true;
46 m_retrievalGuidance = std::forward<RetrievalGuidanceT>(value);
47 }
48 template <typename RetrievalGuidanceT = Aws::String>
50 SetRetrievalGuidance(std::forward<RetrievalGuidanceT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetPersona() const { return m_persona; }
60 inline bool PersonaHasBeenSet() const { return m_personaHasBeenSet; }
61 template <typename PersonaT = Aws::String>
62 void SetPersona(PersonaT&& value) {
63 m_personaHasBeenSet = true;
64 m_persona = std::forward<PersonaT>(value);
65 }
66 template <typename PersonaT = Aws::String>
68 SetPersona(std::forward<PersonaT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetAnswerFormat() const { return m_answerFormat; }
78 inline bool AnswerFormatHasBeenSet() const { return m_answerFormatHasBeenSet; }
79 template <typename AnswerFormatT = Aws::String>
80 void SetAnswerFormat(AnswerFormatT&& value) {
81 m_answerFormatHasBeenSet = true;
82 m_answerFormat = std::forward<AnswerFormatT>(value);
83 }
84 template <typename AnswerFormatT = Aws::String>
86 SetAnswerFormat(std::forward<AnswerFormatT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetAnswerPolicy() const { return m_answerPolicy; }
97 inline bool AnswerPolicyHasBeenSet() const { return m_answerPolicyHasBeenSet; }
98 template <typename AnswerPolicyT = Aws::String>
99 void SetAnswerPolicy(AnswerPolicyT&& value) {
100 m_answerPolicyHasBeenSet = true;
101 m_answerPolicy = std::forward<AnswerPolicyT>(value);
102 }
103 template <typename AnswerPolicyT = Aws::String>
105 SetAnswerPolicy(std::forward<AnswerPolicyT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_retrievalGuidance;
111
112 Aws::String m_persona;
113
114 Aws::String m_answerFormat;
115
116 Aws::String m_answerPolicy;
117 bool m_retrievalGuidanceHasBeenSet = false;
118 bool m_personaHasBeenSet = false;
119 bool m_answerFormatHasBeenSet = false;
120 bool m_answerPolicyHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace BedrockAgent
125} // namespace Aws
RetrievalInstructionContent & WithAnswerFormat(AnswerFormatT &&value)
AWS_BEDROCKAGENT_API RetrievalInstructionContent(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENT_API RetrievalInstructionContent()=default
RetrievalInstructionContent & WithPersona(PersonaT &&value)
RetrievalInstructionContent & WithAnswerPolicy(AnswerPolicyT &&value)
AWS_BEDROCKAGENT_API RetrievalInstructionContent & operator=(Aws::Utils::Json::JsonView jsonValue)
RetrievalInstructionContent & WithRetrievalGuidance(RetrievalGuidanceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue