AWS SDK for C++  1.9.123
AWS SDK for C++
ViolationEventOccurrenceRange.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
45  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
46 
51  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
52 
57  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
58 
63  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
64 
69  inline ViolationEventOccurrenceRange& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
70 
75  inline ViolationEventOccurrenceRange& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
76 
77 
82  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
83 
88  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
89 
94  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
95 
100  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
101 
106  inline ViolationEventOccurrenceRange& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
107 
112  inline ViolationEventOccurrenceRange& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
113 
114  private:
115 
116  Aws::Utils::DateTime m_startTime;
117  bool m_startTimeHasBeenSet;
118 
119  Aws::Utils::DateTime m_endTime;
120  bool m_endTimeHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace IoT
125 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::ViolationEventOccurrenceRange::WithEndTime
ViolationEventOccurrenceRange & WithEndTime(Aws::Utils::DateTime &&value)
Definition: ViolationEventOccurrenceRange.h:112
Aws::IoT::Model::ViolationEventOccurrenceRange::operator=
ViolationEventOccurrenceRange & operator=(Aws::Utils::Json::JsonView jsonValue)
DateTime.h
Aws::IoT::Model::ViolationEventOccurrenceRange::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: ViolationEventOccurrenceRange.h:63
Aws::IoT::Model::ViolationEventOccurrenceRange::WithStartTime
ViolationEventOccurrenceRange & WithStartTime(Aws::Utils::DateTime &&value)
Definition: ViolationEventOccurrenceRange.h:75
Aws::IoT::Model::ViolationEventOccurrenceRange::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::ViolationEventOccurrenceRange::ViolationEventOccurrenceRange
ViolationEventOccurrenceRange(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ViolationEventOccurrenceRange::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: ViolationEventOccurrenceRange.h:82
Aws::IoT::Model::ViolationEventOccurrenceRange::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: ViolationEventOccurrenceRange.h:94
Aws::IoT::Model::ViolationEventOccurrenceRange
Definition: ViolationEventOccurrenceRange.h:33
Aws::IoT::Model::ViolationEventOccurrenceRange::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: ViolationEventOccurrenceRange.h:57
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoT::Model::ViolationEventOccurrenceRange::ViolationEventOccurrenceRange
ViolationEventOccurrenceRange()
Aws::IoT::Model::ViolationEventOccurrenceRange::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: ViolationEventOccurrenceRange.h:100
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ViolationEventOccurrenceRange::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: ViolationEventOccurrenceRange.h:51
Aws::IoT::Model::ViolationEventOccurrenceRange::WithEndTime
ViolationEventOccurrenceRange & WithEndTime(const Aws::Utils::DateTime &value)
Definition: ViolationEventOccurrenceRange.h:106
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::ViolationEventOccurrenceRange::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: ViolationEventOccurrenceRange.h:88
Aws::IoT::Model::ViolationEventOccurrenceRange::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: ViolationEventOccurrenceRange.h:45
Aws::IoT::Model::ViolationEventOccurrenceRange::WithStartTime
ViolationEventOccurrenceRange & WithStartTime(const Aws::Utils::DateTime &value)
Definition: ViolationEventOccurrenceRange.h:69
IoT_EXPORTS.h