AWS SDK for C++

AWS SDK for C++ Version 1.11.925

Loading...
Searching...
No Matches
ModelInput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/sagemakertrainingsessionruntime/SageMakerTrainingSessionRuntime_EXPORTS.h>
9#include <aws/sagemakertrainingsessionruntime/model/EncodedTextChunk.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMakerTrainingSessionRuntime {
21namespace Model {
22
30 public:
31 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API ModelInput() = default;
32 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API ModelInput(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API ModelInput& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<EncodedTextChunk>& GetChunks() const { return m_chunks; }
41 inline bool ChunksHasBeenSet() const { return m_chunksHasBeenSet; }
42 template <typename ChunksT = Aws::Vector<EncodedTextChunk>>
43 void SetChunks(ChunksT&& value) {
44 m_chunksHasBeenSet = true;
45 m_chunks = std::forward<ChunksT>(value);
46 }
47 template <typename ChunksT = Aws::Vector<EncodedTextChunk>>
48 ModelInput& WithChunks(ChunksT&& value) {
49 SetChunks(std::forward<ChunksT>(value));
50 return *this;
51 }
52 template <typename ChunksT = EncodedTextChunk>
53 ModelInput& AddChunks(ChunksT&& value) {
54 m_chunksHasBeenSet = true;
55 m_chunks.emplace_back(std::forward<ChunksT>(value));
56 return *this;
57 }
59 private:
61 bool m_chunksHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace SageMakerTrainingSessionRuntime
66} // namespace Aws
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API ModelInput()=default
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API ModelInput(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API ModelInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< EncodedTextChunk > & GetChunks() const
Definition ModelInput.h:40
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue