AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
InvocationStepPayload.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/BedrockSessionContentBlock.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API InvocationStepPayload() = default;
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<BedrockSessionContentBlock>& GetContentBlocks() const { return m_contentBlocks; }
41 inline bool ContentBlocksHasBeenSet() const { return m_contentBlocksHasBeenSet; }
42 template <typename ContentBlocksT = Aws::Vector<BedrockSessionContentBlock>>
44 m_contentBlocksHasBeenSet = true;
45 m_contentBlocks = std::forward<ContentBlocksT>(value);
46 }
47 template <typename ContentBlocksT = Aws::Vector<BedrockSessionContentBlock>>
49 SetContentBlocks(std::forward<ContentBlocksT>(value));
50 return *this;
51 }
52 template <typename ContentBlocksT = BedrockSessionContentBlock>
54 m_contentBlocksHasBeenSet = true;
55 m_contentBlocks.emplace_back(std::forward<ContentBlocksT>(value));
56 return *this;
57 }
59 private:
61 bool m_contentBlocksHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace BedrockAgentRuntime
66} // namespace Aws
InvocationStepPayload & AddContentBlocks(ContentBlocksT &&value)
AWS_BEDROCKAGENTRUNTIME_API InvocationStepPayload()=default
const Aws::Vector< BedrockSessionContentBlock > & GetContentBlocks() const
AWS_BEDROCKAGENTRUNTIME_API InvocationStepPayload(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API InvocationStepPayload & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
InvocationStepPayload & WithContentBlocks(ContentBlocksT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue