AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/S3ObjectFile.h>
10#include <aws/bedrock-agent-runtime/model/FileSourceType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgentRuntime
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BEDROCKAGENTRUNTIME_API FileSource() = default;
38 AWS_BEDROCKAGENTRUNTIME_API FileSource(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API FileSource& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const ByteContentFile& GetByteContent() const { return m_byteContent; }
48 inline bool ByteContentHasBeenSet() const { return m_byteContentHasBeenSet; }
49 template<typename ByteContentT = ByteContentFile>
50 void SetByteContent(ByteContentT&& value) { m_byteContentHasBeenSet = true; m_byteContent = std::forward<ByteContentT>(value); }
51 template<typename ByteContentT = ByteContentFile>
52 FileSource& WithByteContent(ByteContentT&& value) { SetByteContent(std::forward<ByteContentT>(value)); return *this;}
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) { m_s3LocationHasBeenSet = true; m_s3Location = std::forward<S3LocationT>(value); }
63 template<typename S3LocationT = S3ObjectFile>
64 FileSource& WithS3Location(S3LocationT&& value) { SetS3Location(std::forward<S3LocationT>(value)); return *this;}
66
68
71 inline FileSourceType GetSourceType() const { return m_sourceType; }
72 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
73 inline void SetSourceType(FileSourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
74 inline FileSource& WithSourceType(FileSourceType value) { SetSourceType(value); return *this;}
76 private:
77
78 ByteContentFile m_byteContent;
79 bool m_byteContentHasBeenSet = false;
80
81 S3ObjectFile m_s3Location;
82 bool m_s3LocationHasBeenSet = false;
83
85 bool m_sourceTypeHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace BedrockAgentRuntime
90} // namespace Aws
FileSource & WithSourceType(FileSourceType value)
Definition FileSource.h:74
void SetSourceType(FileSourceType value)
Definition FileSource.h:73
void SetByteContent(ByteContentT &&value)
Definition FileSource.h:50
const ByteContentFile & GetByteContent() const
Definition FileSource.h:47
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:64
FileSource & WithByteContent(ByteContentT &&value)
Definition FileSource.h:52
Aws::Utils::Json::JsonValue JsonValue