AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DocumentMetadata.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/CustomS3Location.h>
9#include <aws/bedrock-agent/model/MetadataAttribute.h>
10#include <aws/bedrock-agent/model/MetadataSourceType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgent {
23namespace Model {
24
33 public:
34 AWS_BEDROCKAGENT_API DocumentMetadata() = default;
37 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline MetadataSourceType GetType() const { return m_type; }
44 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
45 inline void SetType(MetadataSourceType value) {
46 m_typeHasBeenSet = true;
47 m_type = value;
48 }
50 SetType(value);
51 return *this;
52 }
54
56
60 inline const Aws::Vector<MetadataAttribute>& GetInlineAttributes() const { return m_inlineAttributes; }
61 inline bool InlineAttributesHasBeenSet() const { return m_inlineAttributesHasBeenSet; }
62 template <typename InlineAttributesT = Aws::Vector<MetadataAttribute>>
64 m_inlineAttributesHasBeenSet = true;
65 m_inlineAttributes = std::forward<InlineAttributesT>(value);
66 }
67 template <typename InlineAttributesT = Aws::Vector<MetadataAttribute>>
69 SetInlineAttributes(std::forward<InlineAttributesT>(value));
70 return *this;
71 }
72 template <typename InlineAttributesT = MetadataAttribute>
74 m_inlineAttributesHasBeenSet = true;
75 m_inlineAttributes.emplace_back(std::forward<InlineAttributesT>(value));
76 return *this;
77 }
79
81
85 inline const CustomS3Location& GetS3Location() const { return m_s3Location; }
86 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
87 template <typename S3LocationT = CustomS3Location>
88 void SetS3Location(S3LocationT&& value) {
89 m_s3LocationHasBeenSet = true;
90 m_s3Location = std::forward<S3LocationT>(value);
91 }
92 template <typename S3LocationT = CustomS3Location>
94 SetS3Location(std::forward<S3LocationT>(value));
95 return *this;
96 }
98 private:
100
101 Aws::Vector<MetadataAttribute> m_inlineAttributes;
102
103 CustomS3Location m_s3Location;
104 bool m_typeHasBeenSet = false;
105 bool m_inlineAttributesHasBeenSet = false;
106 bool m_s3LocationHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace BedrockAgent
111} // 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue