AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
ContentSource.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/InlineMemoryContent.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockAgentCore {
20namespace Model {
21
29 public:
30 AWS_BEDROCKAGENTCORE_API ContentSource() = default;
31 AWS_BEDROCKAGENTCORE_API ContentSource(Aws::Utils::Json::JsonView jsonValue);
32 AWS_BEDROCKAGENTCORE_API ContentSource& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const InlineMemoryContent& GetInline() const { return m_inline; }
40 inline bool InlineHasBeenSet() const { return m_inlineHasBeenSet; }
41 template <typename InlineT = InlineMemoryContent>
42 void SetInline(InlineT&& value) {
43 m_inlineHasBeenSet = true;
44 m_inline = std::forward<InlineT>(value);
45 }
46 template <typename InlineT = InlineMemoryContent>
47 ContentSource& WithInline(InlineT&& value) {
48 SetInline(std::forward<InlineT>(value));
49 return *this;
50 }
52 private:
53 InlineMemoryContent m_inline;
54 bool m_inlineHasBeenSet = false;
55};
56
57} // namespace Model
58} // namespace BedrockAgentCore
59} // namespace Aws
AWS_BEDROCKAGENTCORE_API ContentSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTCORE_API ContentSource()=default
const InlineMemoryContent & GetInline() const
AWS_BEDROCKAGENTCORE_API ContentSource(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
ContentSource & WithInline(InlineT &&value)
Aws::Utils::Json::JsonValue JsonValue