AWS SDK for C++

AWS SDK for C++ Version 1.11.687

Loading...
Searching...
No Matches
CustomContent.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/CustomS3Location.h>
10#include <aws/bedrock-agent/model/CustomSourceType.h>
11#include <aws/bedrock-agent/model/InlineContent.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 CustomContent() = default;
35 AWS_BEDROCKAGENT_API CustomContent(Aws::Utils::Json::JsonView jsonValue);
36 AWS_BEDROCKAGENT_API CustomContent& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const CustomDocumentIdentifier& GetCustomDocumentIdentifier() const { return m_customDocumentIdentifier; }
44 inline bool CustomDocumentIdentifierHasBeenSet() const { return m_customDocumentIdentifierHasBeenSet; }
45 template <typename CustomDocumentIdentifierT = CustomDocumentIdentifier>
46 void SetCustomDocumentIdentifier(CustomDocumentIdentifierT&& value) {
47 m_customDocumentIdentifierHasBeenSet = true;
48 m_customDocumentIdentifier = std::forward<CustomDocumentIdentifierT>(value);
49 }
50 template <typename CustomDocumentIdentifierT = CustomDocumentIdentifier>
51 CustomContent& WithCustomDocumentIdentifier(CustomDocumentIdentifierT&& value) {
52 SetCustomDocumentIdentifier(std::forward<CustomDocumentIdentifierT>(value));
53 return *this;
54 }
56
58
61 inline CustomSourceType GetSourceType() const { return m_sourceType; }
62 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
63 inline void SetSourceType(CustomSourceType value) {
64 m_sourceTypeHasBeenSet = true;
65 m_sourceType = value;
66 }
68 SetSourceType(value);
69 return *this;
70 }
72
74
78 inline const CustomS3Location& GetS3Location() const { return m_s3Location; }
79 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
80 template <typename S3LocationT = CustomS3Location>
81 void SetS3Location(S3LocationT&& value) {
82 m_s3LocationHasBeenSet = true;
83 m_s3Location = std::forward<S3LocationT>(value);
84 }
85 template <typename S3LocationT = CustomS3Location>
86 CustomContent& WithS3Location(S3LocationT&& value) {
87 SetS3Location(std::forward<S3LocationT>(value));
88 return *this;
89 }
91
93
97 inline const InlineContent& GetInlineContent() const { return m_inlineContent; }
98 inline bool InlineContentHasBeenSet() const { return m_inlineContentHasBeenSet; }
99 template <typename InlineContentT = InlineContent>
100 void SetInlineContent(InlineContentT&& value) {
101 m_inlineContentHasBeenSet = true;
102 m_inlineContent = std::forward<InlineContentT>(value);
103 }
104 template <typename InlineContentT = InlineContent>
105 CustomContent& WithInlineContent(InlineContentT&& value) {
106 SetInlineContent(std::forward<InlineContentT>(value));
107 return *this;
108 }
110 private:
111 CustomDocumentIdentifier m_customDocumentIdentifier;
112 bool m_customDocumentIdentifierHasBeenSet = false;
113
115 bool m_sourceTypeHasBeenSet = false;
116
117 CustomS3Location m_s3Location;
118 bool m_s3LocationHasBeenSet = false;
119
120 InlineContent m_inlineContent;
121 bool m_inlineContentHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace BedrockAgent
126} // namespace Aws
const InlineContent & GetInlineContent() const
CustomContent & WithCustomDocumentIdentifier(CustomDocumentIdentifierT &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
CustomSourceType GetSourceType() const
AWS_BEDROCKAGENT_API CustomContent(Aws::Utils::Json::JsonView jsonValue)
CustomContent & WithInlineContent(InlineContentT &&value)
const CustomDocumentIdentifier & GetCustomDocumentIdentifier() const
CustomContent & WithS3Location(S3LocationT &&value)
void SetS3Location(S3LocationT &&value)
const CustomS3Location & GetS3Location() const
void SetCustomDocumentIdentifier(CustomDocumentIdentifierT &&value)
void SetSourceType(CustomSourceType value)
CustomContent & WithSourceType(CustomSourceType value)
AWS_BEDROCKAGENT_API CustomContent()=default
void SetInlineContent(InlineContentT &&value)
AWS_BEDROCKAGENT_API CustomContent & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue