AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetByteContent(const ByteContentDoc& value) { m_byteContentHasBeenSet = true; m_byteContent = value; }
51 inline void SetByteContent(ByteContentDoc&& value) { m_byteContentHasBeenSet = true; m_byteContent = std::move(value); }
52 inline ExternalSource& WithByteContent(const ByteContentDoc& value) { SetByteContent(value); return *this;}
53 inline ExternalSource& WithByteContent(ByteContentDoc&& value) { SetByteContent(std::move(value)); return *this;}
55
57
60 inline const S3ObjectDoc& GetS3Location() const{ return m_s3Location; }
61 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
62 inline void SetS3Location(const S3ObjectDoc& value) { m_s3LocationHasBeenSet = true; m_s3Location = value; }
63 inline void SetS3Location(S3ObjectDoc&& value) { m_s3LocationHasBeenSet = true; m_s3Location = std::move(value); }
64 inline ExternalSource& WithS3Location(const S3ObjectDoc& value) { SetS3Location(value); return *this;}
65 inline ExternalSource& WithS3Location(S3ObjectDoc&& value) { SetS3Location(std::move(value)); return *this;}
67
69
72 inline const ExternalSourceType& GetSourceType() const{ return m_sourceType; }
73 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
74 inline void SetSourceType(const ExternalSourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
75 inline void SetSourceType(ExternalSourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
76 inline ExternalSource& WithSourceType(const ExternalSourceType& value) { SetSourceType(value); return *this;}
77 inline ExternalSource& WithSourceType(ExternalSourceType&& value) { SetSourceType(std::move(value)); return *this;}
79 private:
80
81 ByteContentDoc m_byteContent;
82 bool m_byteContentHasBeenSet = false;
83
84 S3ObjectDoc m_s3Location;
85 bool m_s3LocationHasBeenSet = false;
86
87 ExternalSourceType m_sourceType;
88 bool m_sourceTypeHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace BedrockAgentRuntime
93} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const ExternalSourceType & GetSourceType() const
ExternalSource & WithS3Location(S3ObjectDoc &&value)
void SetSourceType(ExternalSourceType &&value)
void SetSourceType(const ExternalSourceType &value)
void SetS3Location(const S3ObjectDoc &value)
AWS_BEDROCKAGENTRUNTIME_API ExternalSource()
const ByteContentDoc & GetByteContent() const
ExternalSource & WithS3Location(const S3ObjectDoc &value)
ExternalSource & WithSourceType(ExternalSourceType &&value)
ExternalSource & WithByteContent(ByteContentDoc &&value)
ExternalSource & WithByteContent(const ByteContentDoc &value)
ExternalSource & WithSourceType(const ExternalSourceType &value)
AWS_BEDROCKAGENTRUNTIME_API ExternalSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetByteContent(const ByteContentDoc &value)
AWS_BEDROCKAGENTRUNTIME_API ExternalSource(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue