AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TrainingData.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rekognition/model/Asset.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Rekognition
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_REKOGNITION_API TrainingData() = default;
36 AWS_REKOGNITION_API TrainingData(Aws::Utils::Json::JsonView jsonValue);
37 AWS_REKOGNITION_API TrainingData& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::Vector<Asset>& GetAssets() const { return m_assets; }
47 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
48 template<typename AssetsT = Aws::Vector<Asset>>
49 void SetAssets(AssetsT&& value) { m_assetsHasBeenSet = true; m_assets = std::forward<AssetsT>(value); }
50 template<typename AssetsT = Aws::Vector<Asset>>
51 TrainingData& WithAssets(AssetsT&& value) { SetAssets(std::forward<AssetsT>(value)); return *this;}
52 template<typename AssetsT = Asset>
53 TrainingData& AddAssets(AssetsT&& value) { m_assetsHasBeenSet = true; m_assets.emplace_back(std::forward<AssetsT>(value)); return *this; }
55 private:
56
57 Aws::Vector<Asset> m_assets;
58 bool m_assetsHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace Rekognition
63} // namespace Aws
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REKOGNITION_API TrainingData()=default
AWS_REKOGNITION_API TrainingData(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Asset > & GetAssets() const
AWS_REKOGNITION_API TrainingData & operator=(Aws::Utils::Json::JsonView jsonValue)
TrainingData & AddAssets(AssetsT &&value)
TrainingData & WithAssets(AssetsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue