AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UserDefined.h
1
6#pragma once
7#include <aws/sagemaker-geospatial/SageMakerGeospatial_EXPORTS.h>
8#include <aws/sagemaker-geospatial/model/Unit.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMakerGeospatial {
20namespace Model {
21
29 public:
30 AWS_SAGEMAKERGEOSPATIAL_API UserDefined() = default;
31 AWS_SAGEMAKERGEOSPATIAL_API UserDefined(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SAGEMAKERGEOSPATIAL_API UserDefined& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SAGEMAKERGEOSPATIAL_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline Unit GetUnit() const { return m_unit; }
40 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
41 inline void SetUnit(Unit value) {
42 m_unitHasBeenSet = true;
43 m_unit = value;
44 }
45 inline UserDefined& WithUnit(Unit value) {
46 SetUnit(value);
47 return *this;
48 }
50
52
55 inline double GetValue() const { return m_value; }
56 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
57 inline void SetValue(double value) {
58 m_valueHasBeenSet = true;
59 m_value = value;
60 }
61 inline UserDefined& WithValue(double value) {
62 SetValue(value);
63 return *this;
64 }
66 private:
67 Unit m_unit{Unit::NOT_SET};
68
69 double m_value{0.0};
70 bool m_unitHasBeenSet = false;
71 bool m_valueHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace SageMakerGeospatial
76} // namespace Aws
UserDefined & WithValue(double value)
Definition UserDefined.h:61
AWS_SAGEMAKERGEOSPATIAL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKERGEOSPATIAL_API UserDefined(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERGEOSPATIAL_API UserDefined & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERGEOSPATIAL_API UserDefined()=default
Aws::Utils::Json::JsonValue JsonValue