AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
MessageStartEvent.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/ConversationRole.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockRuntime {
20namespace Model {
21
28 public:
29 AWS_BEDROCKRUNTIME_API MessageStartEvent() = default;
32 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline ConversationRole GetRole() const { return m_role; }
39 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
40 inline void SetRole(ConversationRole value) {
41 m_roleHasBeenSet = true;
42 m_role = value;
43 }
45 SetRole(value);
46 return *this;
47 }
49 private:
51 bool m_roleHasBeenSet = false;
52};
53
54} // namespace Model
55} // namespace BedrockRuntime
56} // namespace Aws
AWS_BEDROCKRUNTIME_API MessageStartEvent()=default
MessageStartEvent & WithRole(ConversationRole value)
AWS_BEDROCKRUNTIME_API MessageStartEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API MessageStartEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue