AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DocumentIdentifier.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/CustomDocumentIdentifier.h>
9#include <aws/bedrock-agent/model/ContentDataSourceType.h>
10#include <aws/bedrock-agent/model/S3Location.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 BedrockAgent
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BEDROCKAGENT_API DocumentIdentifier() = default;
38 AWS_BEDROCKAGENT_API DocumentIdentifier(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const CustomDocumentIdentifier& GetCustom() const { return m_custom; }
49 inline bool CustomHasBeenSet() const { return m_customHasBeenSet; }
50 template<typename CustomT = CustomDocumentIdentifier>
51 void SetCustom(CustomT&& value) { m_customHasBeenSet = true; m_custom = std::forward<CustomT>(value); }
52 template<typename CustomT = CustomDocumentIdentifier>
53 DocumentIdentifier& WithCustom(CustomT&& value) { SetCustom(std::forward<CustomT>(value)); return *this;}
55
57
61 inline ContentDataSourceType GetDataSourceType() const { return m_dataSourceType; }
62 inline bool DataSourceTypeHasBeenSet() const { return m_dataSourceTypeHasBeenSet; }
63 inline void SetDataSourceType(ContentDataSourceType value) { m_dataSourceTypeHasBeenSet = true; m_dataSourceType = value; }
66
68
71 inline const S3Location& GetS3() const { return m_s3; }
72 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
73 template<typename S3T = S3Location>
74 void SetS3(S3T&& value) { m_s3HasBeenSet = true; m_s3 = std::forward<S3T>(value); }
75 template<typename S3T = S3Location>
76 DocumentIdentifier& WithS3(S3T&& value) { SetS3(std::forward<S3T>(value)); return *this;}
78 private:
79
81 bool m_customHasBeenSet = false;
82
84 bool m_dataSourceTypeHasBeenSet = false;
85
86 S3Location m_s3;
87 bool m_s3HasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace BedrockAgent
92} // 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
Aws::Utils::Json::JsonValue JsonValue