AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
FileSource.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ByteContentFile.h>
9#include <aws/bedrock-agent-runtime/model/FileSourceType.h>
10#include <aws/bedrock-agent-runtime/model/S3ObjectFile.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 FileSource() = default;
33 AWS_BEDROCKAGENTRUNTIME_API FileSource(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const ByteContentFile& GetByteContent() const { return m_byteContent; }
42 inline bool ByteContentHasBeenSet() const { return m_byteContentHasBeenSet; }
43 template <typename ByteContentT = ByteContentFile>
45 m_byteContentHasBeenSet = true;
46 m_byteContent = std::forward<ByteContentT>(value);
47 }
48 template <typename ByteContentT = ByteContentFile>
50 SetByteContent(std::forward<ByteContentT>(value));
51 return *this;
52 }
54
56
59 inline const S3ObjectFile& GetS3Location() const { return m_s3Location; }
60 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
61 template <typename S3LocationT = S3ObjectFile>
62 void SetS3Location(S3LocationT&& value) {
63 m_s3LocationHasBeenSet = true;
64 m_s3Location = std::forward<S3LocationT>(value);
65 }
66 template <typename S3LocationT = S3ObjectFile>
68 SetS3Location(std::forward<S3LocationT>(value));
69 return *this;
70 }
72
74
77 inline FileSourceType GetSourceType() const { return m_sourceType; }
78 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
79 inline void SetSourceType(FileSourceType value) {
80 m_sourceTypeHasBeenSet = true;
81 m_sourceType = value;
82 }
84 SetSourceType(value);
85 return *this;
86 }
88 private:
89 ByteContentFile m_byteContent;
90
91 S3ObjectFile m_s3Location;
92
94 bool m_byteContentHasBeenSet = false;
95 bool m_s3LocationHasBeenSet = false;
96 bool m_sourceTypeHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace BedrockAgentRuntime
101} // namespace Aws
FileSource & WithSourceType(FileSourceType value)
Definition FileSource.h:83
void SetSourceType(FileSourceType value)
Definition FileSource.h:79
void SetByteContent(ByteContentT &&value)
Definition FileSource.h:44
const ByteContentFile & GetByteContent() const
Definition FileSource.h:41
AWS_BEDROCKAGENTRUNTIME_API FileSource(Aws::Utils::Json::JsonView jsonValue)
void SetS3Location(S3LocationT &&value)
Definition FileSource.h:62
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API FileSource()=default
const S3ObjectFile & GetS3Location() const
Definition FileSource.h:59
AWS_BEDROCKAGENTRUNTIME_API FileSource & operator=(Aws::Utils::Json::JsonView jsonValue)
FileSource & WithS3Location(S3LocationT &&value)
Definition FileSource.h:67
FileSource & WithByteContent(ByteContentT &&value)
Definition FileSource.h:49
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue