AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
InputFile.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/FileSource.h>
9#include <aws/bedrock-agent-runtime/model/FileUseCase.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentRuntime {
22namespace Model {
23
29class InputFile {
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API InputFile() = default;
32 AWS_BEDROCKAGENTRUNTIME_API InputFile(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const FileSource& GetSource() const { return m_source; }
59 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
60 template <typename SourceT = FileSource>
61 void SetSource(SourceT&& value) {
62 m_sourceHasBeenSet = true;
63 m_source = std::forward<SourceT>(value);
64 }
65 template <typename SourceT = FileSource>
67 SetSource(std::forward<SourceT>(value));
68 return *this;
69 }
71
73
76 inline FileUseCase GetUseCase() const { return m_useCase; }
77 inline bool UseCaseHasBeenSet() const { return m_useCaseHasBeenSet; }
78 inline void SetUseCase(FileUseCase value) {
79 m_useCaseHasBeenSet = true;
80 m_useCase = value;
81 }
83 SetUseCase(value);
84 return *this;
85 }
87 private:
88 Aws::String m_name;
89
90 FileSource m_source;
91
93 bool m_nameHasBeenSet = false;
94 bool m_sourceHasBeenSet = false;
95 bool m_useCaseHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace BedrockAgentRuntime
100} // namespace Aws
InputFile & WithUseCase(FileUseCase value)
Definition InputFile.h:82
InputFile & WithSource(SourceT &&value)
Definition InputFile.h:66
const Aws::String & GetName() const
Definition InputFile.h:40
AWS_BEDROCKAGENTRUNTIME_API InputFile()=default
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
InputFile & WithName(NameT &&value)
Definition InputFile.h:48
AWS_BEDROCKAGENTRUNTIME_API InputFile(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API InputFile & operator=(Aws::Utils::Json::JsonView jsonValue)
const FileSource & GetSource() const
Definition InputFile.h:58
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue