AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ItemSource.h
1
6#pragma once
7#include <aws/sagemaker-geospatial/SageMakerGeospatial_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/sagemaker-geospatial/model/Geometry.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/sagemaker-geospatial/model/Properties.h>
13#include <aws/sagemaker-geospatial/model/AssetValue.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SageMakerGeospatial
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_SAGEMAKERGEOSPATIAL_API ItemSource() = default;
41 AWS_SAGEMAKERGEOSPATIAL_API ItemSource(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SAGEMAKERGEOSPATIAL_API ItemSource& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SAGEMAKERGEOSPATIAL_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::Map<Aws::String, AssetValue>& GetAssets() const { return m_assets; }
52 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
53 template<typename AssetsT = Aws::Map<Aws::String, AssetValue>>
54 void SetAssets(AssetsT&& value) { m_assetsHasBeenSet = true; m_assets = std::forward<AssetsT>(value); }
55 template<typename AssetsT = Aws::Map<Aws::String, AssetValue>>
56 ItemSource& WithAssets(AssetsT&& value) { SetAssets(std::forward<AssetsT>(value)); return *this;}
57 template<typename AssetsKeyT = Aws::String, typename AssetsValueT = AssetValue>
58 ItemSource& AddAssets(AssetsKeyT&& key, AssetsValueT&& value) {
59 m_assetsHasBeenSet = true; m_assets.emplace(std::forward<AssetsKeyT>(key), std::forward<AssetsValueT>(value)); return *this;
60 }
62
64
67 inline const Aws::Utils::DateTime& GetDateTime() const { return m_dateTime; }
68 inline bool DateTimeHasBeenSet() const { return m_dateTimeHasBeenSet; }
69 template<typename DateTimeT = Aws::Utils::DateTime>
70 void SetDateTime(DateTimeT&& value) { m_dateTimeHasBeenSet = true; m_dateTime = std::forward<DateTimeT>(value); }
71 template<typename DateTimeT = Aws::Utils::DateTime>
72 ItemSource& WithDateTime(DateTimeT&& value) { SetDateTime(std::forward<DateTimeT>(value)); return *this;}
74
76
79 inline const Geometry& GetGeometry() const { return m_geometry; }
80 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
81 template<typename GeometryT = Geometry>
82 void SetGeometry(GeometryT&& value) { m_geometryHasBeenSet = true; m_geometry = std::forward<GeometryT>(value); }
83 template<typename GeometryT = Geometry>
84 ItemSource& WithGeometry(GeometryT&& value) { SetGeometry(std::forward<GeometryT>(value)); return *this;}
86
88
91 inline const Aws::String& GetId() const { return m_id; }
92 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
93 template<typename IdT = Aws::String>
94 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
95 template<typename IdT = Aws::String>
96 ItemSource& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
98
100
103 inline const Properties& GetProperties() const { return m_properties; }
104 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
105 template<typename PropertiesT = Properties>
106 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
107 template<typename PropertiesT = Properties>
108 ItemSource& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
110 private:
111
113 bool m_assetsHasBeenSet = false;
114
115 Aws::Utils::DateTime m_dateTime{};
116 bool m_dateTimeHasBeenSet = false;
117
118 Geometry m_geometry;
119 bool m_geometryHasBeenSet = false;
120
121 Aws::String m_id;
122 bool m_idHasBeenSet = false;
123
124 Properties m_properties;
125 bool m_propertiesHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace SageMakerGeospatial
130} // namespace Aws
AWS_SAGEMAKERGEOSPATIAL_API ItemSource()=default
AWS_SAGEMAKERGEOSPATIAL_API ItemSource(Aws::Utils::Json::JsonView jsonValue)
ItemSource & WithAssets(AssetsT &&value)
Definition ItemSource.h:56
AWS_SAGEMAKERGEOSPATIAL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetDateTime() const
Definition ItemSource.h:67
ItemSource & WithProperties(PropertiesT &&value)
Definition ItemSource.h:108
const Aws::Map< Aws::String, AssetValue > & GetAssets() const
Definition ItemSource.h:51
const Properties & GetProperties() const
Definition ItemSource.h:103
ItemSource & AddAssets(AssetsKeyT &&key, AssetsValueT &&value)
Definition ItemSource.h:58
const Aws::String & GetId() const
Definition ItemSource.h:91
ItemSource & WithGeometry(GeometryT &&value)
Definition ItemSource.h:84
void SetProperties(PropertiesT &&value)
Definition ItemSource.h:106
ItemSource & WithDateTime(DateTimeT &&value)
Definition ItemSource.h:72
AWS_SAGEMAKERGEOSPATIAL_API ItemSource & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue