AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
ExternalSource.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/ExternalSourceType.h>
9#include <aws/bedrock/model/S3ObjectDoc.h>
10#include <aws/bedrock/model/ByteContentDoc.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 Bedrock
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BEDROCK_API ExternalSource() = default;
38 AWS_BEDROCK_API ExternalSource(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline ExternalSourceType GetSourceType() const { return m_sourceType; }
48 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
49 inline void SetSourceType(ExternalSourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
50 inline ExternalSource& WithSourceType(ExternalSourceType value) { SetSourceType(value); return *this;}
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) { m_s3LocationHasBeenSet = true; m_s3Location = std::forward<S3LocationT>(value); }
61 template<typename S3LocationT = S3ObjectDoc>
62 ExternalSource& WithS3Location(S3LocationT&& value) { SetS3Location(std::forward<S3LocationT>(value)); return *this;}
64
66
70 inline const ByteContentDoc& GetByteContent() const { return m_byteContent; }
71 inline bool ByteContentHasBeenSet() const { return m_byteContentHasBeenSet; }
72 template<typename ByteContentT = ByteContentDoc>
73 void SetByteContent(ByteContentT&& value) { m_byteContentHasBeenSet = true; m_byteContent = std::forward<ByteContentT>(value); }
74 template<typename ByteContentT = ByteContentDoc>
75 ExternalSource& WithByteContent(ByteContentT&& value) { SetByteContent(std::forward<ByteContentT>(value)); return *this;}
77 private:
78
80 bool m_sourceTypeHasBeenSet = false;
81
82 S3ObjectDoc m_s3Location;
83 bool m_s3LocationHasBeenSet = false;
84
85 ByteContentDoc m_byteContent;
86 bool m_byteContentHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Bedrock
91} // 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)
Aws::Utils::Json::JsonValue JsonValue