AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ContentBlockDeltaEvent.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/ContentBlockDelta.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 ContentBlockDeltaEvent() = default;
32 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const ContentBlockDelta& GetDelta() const { return m_delta; }
39 inline bool DeltaHasBeenSet() const { return m_deltaHasBeenSet; }
40 template <typename DeltaT = ContentBlockDelta>
41 void SetDelta(DeltaT&& value) {
42 m_deltaHasBeenSet = true;
43 m_delta = std::forward<DeltaT>(value);
44 }
45 template <typename DeltaT = ContentBlockDelta>
47 SetDelta(std::forward<DeltaT>(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 ContentBlockDelta m_delta;
69
70 int m_contentBlockIndex{0};
71 bool m_deltaHasBeenSet = false;
72 bool m_contentBlockIndexHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace BedrockRuntime
77} // namespace Aws
AWS_BEDROCKRUNTIME_API ContentBlockDeltaEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API ContentBlockDeltaEvent()=default
ContentBlockDeltaEvent & WithDelta(DeltaT &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ContentBlockDeltaEvent & WithContentBlockIndex(int value)
AWS_BEDROCKRUNTIME_API ContentBlockDeltaEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue