AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Conversational.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/Content.h>
9#include <aws/bedrock-agentcore/model/Role.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentCore {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENTCORE_API Conversational() = default;
32 AWS_BEDROCKAGENTCORE_API Conversational(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BEDROCKAGENTCORE_API Conversational& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Content& GetContent() const { return m_content; }
41 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
42 template <typename ContentT = Content>
43 void SetContent(ContentT&& value) {
44 m_contentHasBeenSet = true;
45 m_content = std::forward<ContentT>(value);
46 }
47 template <typename ContentT = Content>
48 Conversational& WithContent(ContentT&& value) {
49 SetContent(std::forward<ContentT>(value));
50 return *this;
51 }
53
55
59 inline Role GetRole() const { return m_role; }
60 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
61 inline void SetRole(Role value) {
62 m_roleHasBeenSet = true;
63 m_role = value;
64 }
65 inline Conversational& WithRole(Role value) {
66 SetRole(value);
67 return *this;
68 }
70 private:
71 Content m_content;
72
73 Role m_role{Role::NOT_SET};
74 bool m_contentHasBeenSet = false;
75 bool m_roleHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace BedrockAgentCore
80} // namespace Aws
AWS_BEDROCKAGENTCORE_API Conversational()=default
AWS_BEDROCKAGENTCORE_API Conversational & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTCORE_API Conversational(Aws::Utils::Json::JsonView jsonValue)
Conversational & WithContent(ContentT &&value)
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue