AWS SDK for C++  1.9.155
AWS SDK for C++
PropertyType.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoTSiteWise
25 {
26 namespace Model
27 {
28 
37  {
38  public:
43 
44 
51  inline const Attribute& GetAttribute() const{ return m_attribute; }
52 
59  inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
60 
67  inline void SetAttribute(const Attribute& value) { m_attributeHasBeenSet = true; m_attribute = value; }
68 
75  inline void SetAttribute(Attribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
76 
83  inline PropertyType& WithAttribute(const Attribute& value) { SetAttribute(value); return *this;}
84 
91  inline PropertyType& WithAttribute(Attribute&& value) { SetAttribute(std::move(value)); return *this;}
92 
93 
99  inline const Measurement& GetMeasurement() const{ return m_measurement; }
100 
106  inline bool MeasurementHasBeenSet() const { return m_measurementHasBeenSet; }
107 
113  inline void SetMeasurement(const Measurement& value) { m_measurementHasBeenSet = true; m_measurement = value; }
114 
120  inline void SetMeasurement(Measurement&& value) { m_measurementHasBeenSet = true; m_measurement = std::move(value); }
121 
127  inline PropertyType& WithMeasurement(const Measurement& value) { SetMeasurement(value); return *this;}
128 
134  inline PropertyType& WithMeasurement(Measurement&& value) { SetMeasurement(std::move(value)); return *this;}
135 
136 
142  inline const Transform& GetTransform() const{ return m_transform; }
143 
149  inline bool TransformHasBeenSet() const { return m_transformHasBeenSet; }
150 
156  inline void SetTransform(const Transform& value) { m_transformHasBeenSet = true; m_transform = value; }
157 
163  inline void SetTransform(Transform&& value) { m_transformHasBeenSet = true; m_transform = std::move(value); }
164 
170  inline PropertyType& WithTransform(const Transform& value) { SetTransform(value); return *this;}
171 
177  inline PropertyType& WithTransform(Transform&& value) { SetTransform(std::move(value)); return *this;}
178 
179 
186  inline const Metric& GetMetric() const{ return m_metric; }
187 
194  inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
195 
202  inline void SetMetric(const Metric& value) { m_metricHasBeenSet = true; m_metric = value; }
203 
210  inline void SetMetric(Metric&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
211 
218  inline PropertyType& WithMetric(const Metric& value) { SetMetric(value); return *this;}
219 
226  inline PropertyType& WithMetric(Metric&& value) { SetMetric(std::move(value)); return *this;}
227 
228  private:
229 
230  Attribute m_attribute;
231  bool m_attributeHasBeenSet;
232 
233  Measurement m_measurement;
234  bool m_measurementHasBeenSet;
235 
236  Transform m_transform;
237  bool m_transformHasBeenSet;
238 
239  Metric m_metric;
240  bool m_metricHasBeenSet;
241  };
242 
243 } // namespace Model
244 } // namespace IoTSiteWise
245 } // namespace Aws
Aws::IoTSiteWise::Model::PropertyType::GetMeasurement
const Measurement & GetMeasurement() const
Definition: PropertyType.h:99
Metric.h
Aws::IoTSiteWise::Model::PropertyType
Definition: PropertyType.h:37
Aws::IoTSiteWise::Model::PropertyType::GetMetric
const Metric & GetMetric() const
Definition: PropertyType.h:186
Aws::IoTSiteWise::Model::PropertyType::TransformHasBeenSet
bool TransformHasBeenSet() const
Definition: PropertyType.h:149
Aws::IoTSiteWise::Model::Metric
Definition: Metric.h:46
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::PropertyType::WithMetric
PropertyType & WithMetric(const Metric &value)
Definition: PropertyType.h:218
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::PropertyType::SetMeasurement
void SetMeasurement(const Measurement &value)
Definition: PropertyType.h:113
Aws::IoTSiteWise::Model::PropertyType::GetAttribute
const Attribute & GetAttribute() const
Definition: PropertyType.h:51
Aws::IoTSiteWise::Model::PropertyType::SetAttribute
void SetAttribute(Attribute &&value)
Definition: PropertyType.h:75
Aws::IoTSiteWise::Model::PropertyType::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::PropertyType::MeasurementHasBeenSet
bool MeasurementHasBeenSet() const
Definition: PropertyType.h:106
Aws::IoTSiteWise::Model::PropertyType::MetricHasBeenSet
bool MetricHasBeenSet() const
Definition: PropertyType.h:194
Aws::IoTSiteWise::Model::Attribute
Definition: Attribute.h:34
Aws::IoTSiteWise::Model::PropertyType::AttributeHasBeenSet
bool AttributeHasBeenSet() const
Definition: PropertyType.h:59
Aws::IoTSiteWise::Model::PropertyType::WithTransform
PropertyType & WithTransform(Transform &&value)
Definition: PropertyType.h:177
Aws::IoTSiteWise::Model::PropertyType::SetAttribute
void SetAttribute(const Attribute &value)
Definition: PropertyType.h:67
Aws::IoTSiteWise::Model::PropertyType::WithMeasurement
PropertyType & WithMeasurement(const Measurement &value)
Definition: PropertyType.h:127
Aws::IoTSiteWise::Model::PropertyType::GetTransform
const Transform & GetTransform() const
Definition: PropertyType.h:142
Aws::IoTSiteWise::Model::PropertyType::WithTransform
PropertyType & WithTransform(const Transform &value)
Definition: PropertyType.h:170
Aws::IoTSiteWise::Model::PropertyType::PropertyType
PropertyType(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::PropertyType::WithMetric
PropertyType & WithMetric(Metric &&value)
Definition: PropertyType.h:226
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoTSiteWise::Model::PropertyType::SetTransform
void SetTransform(Transform &&value)
Definition: PropertyType.h:163
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Transform.h
Aws::IoTSiteWise::Model::PropertyType::WithMeasurement
PropertyType & WithMeasurement(Measurement &&value)
Definition: PropertyType.h:134
Aws::IoTSiteWise::Model::PropertyType::WithAttribute
PropertyType & WithAttribute(Attribute &&value)
Definition: PropertyType.h:91
Aws::IoTSiteWise::Model::PropertyType::SetMeasurement
void SetMeasurement(Measurement &&value)
Definition: PropertyType.h:120
Aws::IoTSiteWise::Model::PropertyType::SetMetric
void SetMetric(const Metric &value)
Definition: PropertyType.h:202
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::Transform
Definition: Transform.h:43
Aws::IoTSiteWise::Model::PropertyType::WithAttribute
PropertyType & WithAttribute(const Attribute &value)
Definition: PropertyType.h:83
Aws::IoTSiteWise::Model::PropertyType::SetMetric
void SetMetric(Metric &&value)
Definition: PropertyType.h:210
Measurement.h
Aws::IoTSiteWise::Model::Measurement
Definition: Measurement.h:34
Aws::IoTSiteWise::Model::PropertyType::operator=
PropertyType & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::PropertyType::PropertyType
PropertyType()
Aws::IoTSiteWise::Model::PropertyType::SetTransform
void SetTransform(const Transform &value)
Definition: PropertyType.h:156
Attribute.h