AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetByteContent(const ByteContentFile& value) { m_byteContentHasBeenSet = true; m_byteContent = value; }
50 inline void SetByteContent(ByteContentFile&& value) { m_byteContentHasBeenSet = true; m_byteContent = std::move(value); }
51 inline FileSource& WithByteContent(const ByteContentFile& value) { SetByteContent(value); return *this;}
52 inline FileSource& WithByteContent(ByteContentFile&& value) { SetByteContent(std::move(value)); return *this;}
54
56
59 inline const S3ObjectFile& GetS3Location() const{ return m_s3Location; }
60 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
61 inline void SetS3Location(const S3ObjectFile& value) { m_s3LocationHasBeenSet = true; m_s3Location = value; }
62 inline void SetS3Location(S3ObjectFile&& value) { m_s3LocationHasBeenSet = true; m_s3Location = std::move(value); }
63 inline FileSource& WithS3Location(const S3ObjectFile& value) { SetS3Location(value); return *this;}
64 inline FileSource& WithS3Location(S3ObjectFile&& value) { SetS3Location(std::move(value)); return *this;}
66
68
71 inline const FileSourceType& GetSourceType() const{ return m_sourceType; }
72 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
73 inline void SetSourceType(const FileSourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
74 inline void SetSourceType(FileSourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
75 inline FileSource& WithSourceType(const FileSourceType& value) { SetSourceType(value); return *this;}
76 inline FileSource& WithSourceType(FileSourceType&& value) { SetSourceType(std::move(value)); return *this;}
78 private:
79
80 ByteContentFile m_byteContent;
81 bool m_byteContentHasBeenSet = false;
82
83 S3ObjectFile m_s3Location;
84 bool m_s3LocationHasBeenSet = false;
85
86 FileSourceType m_sourceType;
87 bool m_sourceTypeHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace BedrockAgentRuntime
92} // namespace Aws
FileSource & WithSourceType(FileSourceType &&value)
Definition FileSource.h:76
const ByteContentFile & GetByteContent() const
Definition FileSource.h:47
void SetS3Location(S3ObjectFile &&value)
Definition FileSource.h:62
FileSource & WithS3Location(S3ObjectFile &&value)
Definition FileSource.h:64
FileSource & WithByteContent(ByteContentFile &&value)
Definition FileSource.h:52
AWS_BEDROCKAGENTRUNTIME_API FileSource(Aws::Utils::Json::JsonView jsonValue)
void SetByteContent(ByteContentFile &&value)
Definition FileSource.h:50
AWS_BEDROCKAGENTRUNTIME_API FileSource()
FileSource & WithByteContent(const ByteContentFile &value)
Definition FileSource.h:51
FileSource & WithS3Location(const S3ObjectFile &value)
Definition FileSource.h:63
void SetS3Location(const S3ObjectFile &value)
Definition FileSource.h:61
const FileSourceType & GetSourceType() const
Definition FileSource.h:71
FileSource & WithSourceType(const FileSourceType &value)
Definition FileSource.h:75
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const S3ObjectFile & GetS3Location() const
Definition FileSource.h:59
void SetSourceType(FileSourceType &&value)
Definition FileSource.h:74
AWS_BEDROCKAGENTRUNTIME_API FileSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetByteContent(const ByteContentFile &value)
Definition FileSource.h:49
void SetSourceType(const FileSourceType &value)
Definition FileSource.h:73
Aws::Utils::Json::JsonValue JsonValue