AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/S3ObjectDoc.h>
10#include <aws/bedrock-agent-runtime/model/ExternalSourceType.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 ExternalSource() = default;
38 AWS_BEDROCKAGENTRUNTIME_API ExternalSource(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API ExternalSource& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const ByteContentDoc& GetByteContent() const { return m_byteContent; }
49 inline bool ByteContentHasBeenSet() const { return m_byteContentHasBeenSet; }
50 template<typename ByteContentT = ByteContentDoc>
51 void SetByteContent(ByteContentT&& value) { m_byteContentHasBeenSet = true; m_byteContent = std::forward<ByteContentT>(value); }
52 template<typename ByteContentT = ByteContentDoc>
53 ExternalSource& WithByteContent(ByteContentT&& value) { SetByteContent(std::forward<ByteContentT>(value)); return *this;}
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) { m_s3LocationHasBeenSet = true; m_s3Location = std::forward<S3LocationT>(value); }
64 template<typename S3LocationT = S3ObjectDoc>
65 ExternalSource& WithS3Location(S3LocationT&& value) { SetS3Location(std::forward<S3LocationT>(value)); return *this;}
67
69
72 inline ExternalSourceType GetSourceType() const { return m_sourceType; }
73 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
74 inline void SetSourceType(ExternalSourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
75 inline ExternalSource& WithSourceType(ExternalSourceType value) { SetSourceType(value); return *this;}
77 private:
78
79 ByteContentDoc m_byteContent;
80 bool m_byteContentHasBeenSet = false;
81
82 S3ObjectDoc m_s3Location;
83 bool m_s3LocationHasBeenSet = false;
84
86 bool m_sourceTypeHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace BedrockAgentRuntime
91} // 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)
Aws::Utils::Json::JsonValue JsonValue