AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ExternalSource.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ByteContentDoc.h>
9#include <aws/bedrock-agent-runtime/model/ExternalSourceType.h>
10#include <aws/bedrock-agent-runtime/model/S3ObjectDoc.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentRuntime {
22namespace Model {
23
31 public:
32 AWS_BEDROCKAGENTRUNTIME_API ExternalSource() = default;
35 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const ByteContentDoc& GetByteContent() const { return m_byteContent; }
43 inline bool ByteContentHasBeenSet() const { return m_byteContentHasBeenSet; }
44 template <typename ByteContentT = ByteContentDoc>
46 m_byteContentHasBeenSet = true;
47 m_byteContent = std::forward<ByteContentT>(value);
48 }
49 template <typename ByteContentT = ByteContentDoc>
51 SetByteContent(std::forward<ByteContentT>(value));
52 return *this;
53 }
55
57
60 inline const S3ObjectDoc& GetS3Location() const { return m_s3Location; }
61 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
62 template <typename S3LocationT = S3ObjectDoc>
63 void SetS3Location(S3LocationT&& value) {
64 m_s3LocationHasBeenSet = true;
65 m_s3Location = std::forward<S3LocationT>(value);
66 }
67 template <typename S3LocationT = S3ObjectDoc>
69 SetS3Location(std::forward<S3LocationT>(value));
70 return *this;
71 }
73
75
78 inline ExternalSourceType GetSourceType() const { return m_sourceType; }
79 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
80 inline void SetSourceType(ExternalSourceType value) {
81 m_sourceTypeHasBeenSet = true;
82 m_sourceType = value;
83 }
85 SetSourceType(value);
86 return *this;
87 }
89 private:
90 ByteContentDoc m_byteContent;
91
92 S3ObjectDoc m_s3Location;
93
95 bool m_byteContentHasBeenSet = false;
96 bool m_s3LocationHasBeenSet = false;
97 bool m_sourceTypeHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace BedrockAgentRuntime
102} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ExternalSource & WithSourceType(ExternalSourceType value)
ExternalSource & WithByteContent(ByteContentT &&value)
ExternalSource & WithS3Location(S3LocationT &&value)
const ByteContentDoc & GetByteContent() const
void SetSourceType(ExternalSourceType value)
AWS_BEDROCKAGENTRUNTIME_API ExternalSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API ExternalSource()=default
AWS_BEDROCKAGENTRUNTIME_API ExternalSource(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue