AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DocumentBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/DocumentFormat.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-runtime/model/DocumentSource.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 BedrockRuntime
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_BEDROCKRUNTIME_API DocumentBlock();
37 AWS_BEDROCKRUNTIME_API DocumentBlock(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKRUNTIME_API DocumentBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const DocumentFormat& GetFormat() const{ return m_format; }
47 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
48 inline void SetFormat(const DocumentFormat& value) { m_formatHasBeenSet = true; m_format = value; }
49 inline void SetFormat(DocumentFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
50 inline DocumentBlock& WithFormat(const DocumentFormat& value) { SetFormat(value); return *this;}
51 inline DocumentBlock& WithFormat(DocumentFormat&& value) { SetFormat(std::move(value)); return *this;}
53
55
64 inline const Aws::String& GetName() const{ return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 inline DocumentBlock& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline DocumentBlock& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline DocumentBlock& WithName(const char* value) { SetName(value); return *this;}
73
75
78 inline const DocumentSource& GetSource() const{ return m_source; }
79 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
80 inline void SetSource(const DocumentSource& value) { m_sourceHasBeenSet = true; m_source = value; }
81 inline void SetSource(DocumentSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
82 inline DocumentBlock& WithSource(const DocumentSource& value) { SetSource(value); return *this;}
83 inline DocumentBlock& WithSource(DocumentSource&& value) { SetSource(std::move(value)); return *this;}
85 private:
86
87 DocumentFormat m_format;
88 bool m_formatHasBeenSet = false;
89
90 Aws::String m_name;
91 bool m_nameHasBeenSet = false;
92
93 DocumentSource m_source;
94 bool m_sourceHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace BedrockRuntime
99} // namespace Aws
void SetFormat(const DocumentFormat &value)
DocumentBlock & WithSource(const DocumentSource &value)
DocumentBlock & WithFormat(const DocumentFormat &value)
const DocumentFormat & GetFormat() const
DocumentBlock & WithSource(DocumentSource &&value)
void SetSource(const DocumentSource &value)
AWS_BEDROCKRUNTIME_API DocumentBlock()
DocumentBlock & WithName(const Aws::String &value)
DocumentBlock & WithName(const char *value)
const Aws::String & GetName() const
DocumentBlock & WithFormat(DocumentFormat &&value)
AWS_BEDROCKRUNTIME_API DocumentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSource(DocumentSource &&value)
AWS_BEDROCKRUNTIME_API DocumentBlock(Aws::Utils::Json::JsonView jsonValue)
void SetFormat(DocumentFormat &&value)
void SetName(const Aws::String &value)
DocumentBlock & WithName(Aws::String &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const DocumentSource & GetSource() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue