AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DocumentMetadata.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-agent/model/CustomS3Location.h>
10#include <aws/bedrock-agent/model/MetadataSourceType.h>
11#include <aws/bedrock-agent/model/MetadataAttribute.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgent
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_BEDROCKAGENT_API DocumentMetadata() = default;
40 AWS_BEDROCKAGENT_API DocumentMetadata(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKAGENT_API DocumentMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<MetadataAttribute>& GetInlineAttributes() const { return m_inlineAttributes; }
51 inline bool InlineAttributesHasBeenSet() const { return m_inlineAttributesHasBeenSet; }
52 template<typename InlineAttributesT = Aws::Vector<MetadataAttribute>>
53 void SetInlineAttributes(InlineAttributesT&& value) { m_inlineAttributesHasBeenSet = true; m_inlineAttributes = std::forward<InlineAttributesT>(value); }
54 template<typename InlineAttributesT = Aws::Vector<MetadataAttribute>>
55 DocumentMetadata& WithInlineAttributes(InlineAttributesT&& value) { SetInlineAttributes(std::forward<InlineAttributesT>(value)); return *this;}
56 template<typename InlineAttributesT = MetadataAttribute>
57 DocumentMetadata& AddInlineAttributes(InlineAttributesT&& value) { m_inlineAttributesHasBeenSet = true; m_inlineAttributes.emplace_back(std::forward<InlineAttributesT>(value)); return *this; }
59
61
65 inline const CustomS3Location& GetS3Location() const { return m_s3Location; }
66 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
67 template<typename S3LocationT = CustomS3Location>
68 void SetS3Location(S3LocationT&& value) { m_s3LocationHasBeenSet = true; m_s3Location = std::forward<S3LocationT>(value); }
69 template<typename S3LocationT = CustomS3Location>
70 DocumentMetadata& WithS3Location(S3LocationT&& value) { SetS3Location(std::forward<S3LocationT>(value)); return *this;}
72
74
77 inline MetadataSourceType GetType() const { return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(MetadataSourceType value) { m_typeHasBeenSet = true; m_type = value; }
80 inline DocumentMetadata& WithType(MetadataSourceType value) { SetType(value); return *this;}
82 private:
83
84 Aws::Vector<MetadataAttribute> m_inlineAttributes;
85 bool m_inlineAttributesHasBeenSet = false;
86
87 CustomS3Location m_s3Location;
88 bool m_s3LocationHasBeenSet = false;
89
91 bool m_typeHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace BedrockAgent
96} // namespace Aws
const CustomS3Location & GetS3Location() const
DocumentMetadata & WithS3Location(S3LocationT &&value)
AWS_BEDROCKAGENT_API DocumentMetadata(Aws::Utils::Json::JsonView jsonValue)
DocumentMetadata & WithInlineAttributes(InlineAttributesT &&value)
void SetInlineAttributes(InlineAttributesT &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENT_API DocumentMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentMetadata & AddInlineAttributes(InlineAttributesT &&value)
const Aws::Vector< MetadataAttribute > & GetInlineAttributes() const
DocumentMetadata & WithType(MetadataSourceType value)
AWS_BEDROCKAGENT_API DocumentMetadata()=default
void SetType(MetadataSourceType value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue