AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ContentBlockStartEvent.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/ContentBlockStart.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 ContentBlockStartEvent() = default;
32 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const ContentBlockStart& GetStart() const { return m_start; }
39 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
40 template <typename StartT = ContentBlockStart>
41 void SetStart(StartT&& value) {
42 m_startHasBeenSet = true;
43 m_start = std::forward<StartT>(value);
44 }
45 template <typename StartT = ContentBlockStart>
47 SetStart(std::forward<StartT>(value));
48 return *this;
49 }
51
53
56 inline int GetContentBlockIndex() const { return m_contentBlockIndex; }
57 inline bool ContentBlockIndexHasBeenSet() const { return m_contentBlockIndexHasBeenSet; }
58 inline void SetContentBlockIndex(int value) {
59 m_contentBlockIndexHasBeenSet = true;
60 m_contentBlockIndex = value;
61 }
64 return *this;
65 }
67 private:
68 ContentBlockStart m_start;
69
70 int m_contentBlockIndex{0};
71 bool m_startHasBeenSet = false;
72 bool m_contentBlockIndexHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace BedrockRuntime
77} // namespace Aws
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ContentBlockStartEvent & WithContentBlockIndex(int value)
AWS_BEDROCKRUNTIME_API ContentBlockStartEvent()=default
AWS_BEDROCKRUNTIME_API ContentBlockStartEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API ContentBlockStartEvent(Aws::Utils::Json::JsonView jsonValue)
ContentBlockStartEvent & WithStart(StartT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue