AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
TrainingData.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/rekognition/Rekognition_EXPORTS.h>
9#include <aws/rekognition/model/Asset.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Rekognition {
21namespace Model {
22
29 public:
30 AWS_REKOGNITION_API TrainingData() = default;
31 AWS_REKOGNITION_API TrainingData(Aws::Utils::Json::JsonView jsonValue);
32 AWS_REKOGNITION_API TrainingData& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::Vector<Asset>& GetAssets() const { return m_assets; }
41 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
42 template <typename AssetsT = Aws::Vector<Asset>>
43 void SetAssets(AssetsT&& value) {
44 m_assetsHasBeenSet = true;
45 m_assets = std::forward<AssetsT>(value);
46 }
47 template <typename AssetsT = Aws::Vector<Asset>>
48 TrainingData& WithAssets(AssetsT&& value) {
49 SetAssets(std::forward<AssetsT>(value));
50 return *this;
51 }
52 template <typename AssetsT = Asset>
53 TrainingData& AddAssets(AssetsT&& value) {
54 m_assetsHasBeenSet = true;
55 m_assets.emplace_back(std::forward<AssetsT>(value));
56 return *this;
57 }
59 private:
60 Aws::Vector<Asset> m_assets;
61 bool m_assetsHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace Rekognition
66} // 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