AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
DocumentIdentifier.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/ContentDataSourceType.h>
9#include <aws/bedrock-agent/model/CustomDocumentIdentifier.h>
10#include <aws/bedrock-agent/model/S3Location.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgent {
22namespace Model {
23
31 public:
32 AWS_BEDROCKAGENT_API DocumentIdentifier() = default;
35 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline ContentDataSourceType GetDataSourceType() const { return m_dataSourceType; }
43 inline bool DataSourceTypeHasBeenSet() const { return m_dataSourceTypeHasBeenSet; }
45 m_dataSourceTypeHasBeenSet = true;
46 m_dataSourceType = value;
47 }
49 SetDataSourceType(value);
50 return *this;
51 }
53
55
58 inline const S3Location& GetS3() const { return m_s3; }
59 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
60 template <typename S3T = S3Location>
61 void SetS3(S3T&& value) {
62 m_s3HasBeenSet = true;
63 m_s3 = std::forward<S3T>(value);
64 }
65 template <typename S3T = S3Location>
67 SetS3(std::forward<S3T>(value));
68 return *this;
69 }
71
73
77 inline const CustomDocumentIdentifier& GetCustom() const { return m_custom; }
78 inline bool CustomHasBeenSet() const { return m_customHasBeenSet; }
79 template <typename CustomT = CustomDocumentIdentifier>
80 void SetCustom(CustomT&& value) {
81 m_customHasBeenSet = true;
82 m_custom = std::forward<CustomT>(value);
83 }
84 template <typename CustomT = CustomDocumentIdentifier>
86 SetCustom(std::forward<CustomT>(value));
87 return *this;
88 }
90 private:
92
93 S3Location m_s3;
94
95 CustomDocumentIdentifier m_custom;
96 bool m_dataSourceTypeHasBeenSet = false;
97 bool m_s3HasBeenSet = false;
98 bool m_customHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace BedrockAgent
103} // namespace Aws
AWS_BEDROCKAGENT_API DocumentIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentIdentifier & WithCustom(CustomT &&value)
DocumentIdentifier & WithS3(S3T &&value)
AWS_BEDROCKAGENT_API DocumentIdentifier(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API DocumentIdentifier()=default
void SetDataSourceType(ContentDataSourceType value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentIdentifier & WithDataSourceType(ContentDataSourceType value)
const CustomDocumentIdentifier & GetCustom() const
ContentDataSourceType GetDataSourceType() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue