AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ItemSource.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker-geospatial/SageMakerGeospatial_EXPORTS.h>
11#include <aws/sagemaker-geospatial/model/AssetValue.h>
12#include <aws/sagemaker-geospatial/model/Geometry.h>
13#include <aws/sagemaker-geospatial/model/Properties.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMakerGeospatial {
25namespace Model {
26
34 public:
35 AWS_SAGEMAKERGEOSPATIAL_API ItemSource() = default;
36 AWS_SAGEMAKERGEOSPATIAL_API ItemSource(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKERGEOSPATIAL_API ItemSource& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKERGEOSPATIAL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::Map<Aws::String, AssetValue>& GetAssets() const { return m_assets; }
46 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
47 template <typename AssetsT = Aws::Map<Aws::String, AssetValue>>
48 void SetAssets(AssetsT&& value) {
49 m_assetsHasBeenSet = true;
50 m_assets = std::forward<AssetsT>(value);
51 }
52 template <typename AssetsT = Aws::Map<Aws::String, AssetValue>>
53 ItemSource& WithAssets(AssetsT&& value) {
54 SetAssets(std::forward<AssetsT>(value));
55 return *this;
56 }
57 template <typename AssetsKeyT = Aws::String, typename AssetsValueT = AssetValue>
58 ItemSource& AddAssets(AssetsKeyT&& key, AssetsValueT&& value) {
59 m_assetsHasBeenSet = true;
60 m_assets.emplace(std::forward<AssetsKeyT>(key), std::forward<AssetsValueT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::Utils::DateTime& GetDateTime() const { return m_dateTime; }
70 inline bool DateTimeHasBeenSet() const { return m_dateTimeHasBeenSet; }
71 template <typename DateTimeT = Aws::Utils::DateTime>
72 void SetDateTime(DateTimeT&& value) {
73 m_dateTimeHasBeenSet = true;
74 m_dateTime = std::forward<DateTimeT>(value);
75 }
76 template <typename DateTimeT = Aws::Utils::DateTime>
77 ItemSource& WithDateTime(DateTimeT&& value) {
78 SetDateTime(std::forward<DateTimeT>(value));
79 return *this;
80 }
82
84
87 inline const Geometry& GetGeometry() const { return m_geometry; }
88 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
89 template <typename GeometryT = Geometry>
90 void SetGeometry(GeometryT&& value) {
91 m_geometryHasBeenSet = true;
92 m_geometry = std::forward<GeometryT>(value);
93 }
94 template <typename GeometryT = Geometry>
95 ItemSource& WithGeometry(GeometryT&& value) {
96 SetGeometry(std::forward<GeometryT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetId() const { return m_id; }
106 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
107 template <typename IdT = Aws::String>
108 void SetId(IdT&& value) {
109 m_idHasBeenSet = true;
110 m_id = std::forward<IdT>(value);
111 }
112 template <typename IdT = Aws::String>
113 ItemSource& WithId(IdT&& value) {
114 SetId(std::forward<IdT>(value));
115 return *this;
116 }
118
120
123 inline const Properties& GetProperties() const { return m_properties; }
124 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
125 template <typename PropertiesT = Properties>
126 void SetProperties(PropertiesT&& value) {
127 m_propertiesHasBeenSet = true;
128 m_properties = std::forward<PropertiesT>(value);
129 }
130 template <typename PropertiesT = Properties>
131 ItemSource& WithProperties(PropertiesT&& value) {
132 SetProperties(std::forward<PropertiesT>(value));
133 return *this;
134 }
136 private:
138
139 Aws::Utils::DateTime m_dateTime{};
140
141 Geometry m_geometry;
142
143 Aws::String m_id;
144
145 Properties m_properties;
146 bool m_assetsHasBeenSet = false;
147 bool m_dateTimeHasBeenSet = false;
148 bool m_geometryHasBeenSet = false;
149 bool m_idHasBeenSet = false;
150 bool m_propertiesHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace SageMakerGeospatial
155} // namespace Aws
AWS_SAGEMAKERGEOSPATIAL_API ItemSource()=default
AWS_SAGEMAKERGEOSPATIAL_API ItemSource(Aws::Utils::Json::JsonView jsonValue)
ItemSource & WithAssets(AssetsT &&value)
Definition ItemSource.h:53
AWS_SAGEMAKERGEOSPATIAL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetDateTime() const
Definition ItemSource.h:69
ItemSource & WithProperties(PropertiesT &&value)
Definition ItemSource.h:131
const Aws::Map< Aws::String, AssetValue > & GetAssets() const
Definition ItemSource.h:45
const Properties & GetProperties() const
Definition ItemSource.h:123
ItemSource & AddAssets(AssetsKeyT &&key, AssetsValueT &&value)
Definition ItemSource.h:58
const Aws::String & GetId() const
Definition ItemSource.h:105
ItemSource & WithGeometry(GeometryT &&value)
Definition ItemSource.h:95
void SetProperties(PropertiesT &&value)
Definition ItemSource.h:126
ItemSource & WithDateTime(DateTimeT &&value)
Definition ItemSource.h:77
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