AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
FilePart.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/OutputFile.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
29class FilePart {
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API FilePart() = default;
32 AWS_BEDROCKAGENTRUNTIME_API FilePart(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<OutputFile>& GetFiles() const { return m_files; }
41 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
42 template <typename FilesT = Aws::Vector<OutputFile>>
43 void SetFiles(FilesT&& value) {
44 m_filesHasBeenSet = true;
45 m_files = std::forward<FilesT>(value);
46 }
47 template <typename FilesT = Aws::Vector<OutputFile>>
49 SetFiles(std::forward<FilesT>(value));
50 return *this;
51 }
52 template <typename FilesT = OutputFile>
54 m_filesHasBeenSet = true;
55 m_files.emplace_back(std::forward<FilesT>(value));
56 return *this;
57 }
59 private:
61 bool m_filesHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace BedrockAgentRuntime
66} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API FilePart(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API FilePart & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< OutputFile > & GetFiles() const
Definition FilePart.h:40
AWS_BEDROCKAGENTRUNTIME_API FilePart()=default
FilePart & AddFiles(FilesT &&value)
Definition FilePart.h:53
FilePart & WithFiles(FilesT &&value)
Definition FilePart.h:48
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue