AWS SDK for C++

AWS SDK for C++ Version 1.11.933

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