AWS SDK for C++

AWS SDK for C++ Version 1.11.634

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/S3Location.h>
10#include <aws/bedrock-agent/model/CustomDocumentIdentifier.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 ContentDataSourceType GetDataSourceType() const { return m_dataSourceType; }
49 inline bool DataSourceTypeHasBeenSet() const { return m_dataSourceTypeHasBeenSet; }
50 inline void SetDataSourceType(ContentDataSourceType value) { m_dataSourceTypeHasBeenSet = true; m_dataSourceType = value; }
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) { m_s3HasBeenSet = true; m_s3 = std::forward<S3T>(value); }
62 template<typename S3T = S3Location>
63 DocumentIdentifier& WithS3(S3T&& value) { SetS3(std::forward<S3T>(value)); return *this;}
65
67
71 inline const CustomDocumentIdentifier& GetCustom() const { return m_custom; }
72 inline bool CustomHasBeenSet() const { return m_customHasBeenSet; }
73 template<typename CustomT = CustomDocumentIdentifier>
74 void SetCustom(CustomT&& value) { m_customHasBeenSet = true; m_custom = std::forward<CustomT>(value); }
75 template<typename CustomT = CustomDocumentIdentifier>
76 DocumentIdentifier& WithCustom(CustomT&& value) { SetCustom(std::forward<CustomT>(value)); return *this;}
78 private:
79
81 bool m_dataSourceTypeHasBeenSet = false;
82
83 S3Location m_s3;
84 bool m_s3HasBeenSet = false;
85
86 CustomDocumentIdentifier m_custom;
87 bool m_customHasBeenSet = 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