AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ExternalSource.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/ByteContentDoc.h>
9#include <aws/bedrock/model/ExternalSourceType.h>
10#include <aws/bedrock/model/S3ObjectDoc.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Bedrock {
22namespace Model {
23
31 public:
32 AWS_BEDROCK_API ExternalSource() = default;
35 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline ExternalSourceType GetSourceType() const { return m_sourceType; }
42 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
43 inline void SetSourceType(ExternalSourceType value) {
44 m_sourceTypeHasBeenSet = true;
45 m_sourceType = value;
46 }
48 SetSourceType(value);
49 return *this;
50 }
52
54
57 inline const S3ObjectDoc& GetS3Location() const { return m_s3Location; }
58 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
59 template <typename S3LocationT = S3ObjectDoc>
60 void SetS3Location(S3LocationT&& value) {
61 m_s3LocationHasBeenSet = true;
62 m_s3Location = std::forward<S3LocationT>(value);
63 }
64 template <typename S3LocationT = S3ObjectDoc>
66 SetS3Location(std::forward<S3LocationT>(value));
67 return *this;
68 }
70
72
76 inline const ByteContentDoc& GetByteContent() const { return m_byteContent; }
77 inline bool ByteContentHasBeenSet() const { return m_byteContentHasBeenSet; }
78 template <typename ByteContentT = ByteContentDoc>
80 m_byteContentHasBeenSet = true;
81 m_byteContent = std::forward<ByteContentT>(value);
82 }
83 template <typename ByteContentT = ByteContentDoc>
85 SetByteContent(std::forward<ByteContentT>(value));
86 return *this;
87 }
89 private:
91
92 S3ObjectDoc m_s3Location;
93
94 ByteContentDoc m_byteContent;
95 bool m_sourceTypeHasBeenSet = false;
96 bool m_s3LocationHasBeenSet = false;
97 bool m_byteContentHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Bedrock
102} // namespace Aws
ExternalSourceType GetSourceType() const
AWS_BEDROCK_API ExternalSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const ByteContentDoc & GetByteContent() const
void SetS3Location(S3LocationT &&value)
ExternalSource & WithSourceType(ExternalSourceType value)
ExternalSource & WithByteContent(ByteContentT &&value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
void SetByteContent(ByteContentT &&value)
AWS_BEDROCK_API ExternalSource()=default
void SetSourceType(ExternalSourceType value)
AWS_BEDROCK_API ExternalSource(Aws::Utils::Json::JsonView jsonValue)
const S3ObjectDoc & GetS3Location() const
ExternalSource & WithS3Location(S3LocationT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue