AWS SDK for C++

AWS SDK for C++ Version 1.11.712

Loading...
Searching...
No Matches
LabelSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lookoutequipment/LookoutEquipment_EXPORTS.h>
10#include <aws/lookoutequipment/model/LabelRating.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LookoutEquipment {
22namespace Model {
23
30 public:
31 AWS_LOOKOUTEQUIPMENT_API LabelSummary() = default;
32 AWS_LOOKOUTEQUIPMENT_API LabelSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LOOKOUTEQUIPMENT_API LabelSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LOOKOUTEQUIPMENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetLabelGroupName() const { return m_labelGroupName; }
41 inline bool LabelGroupNameHasBeenSet() const { return m_labelGroupNameHasBeenSet; }
42 template <typename LabelGroupNameT = Aws::String>
43 void SetLabelGroupName(LabelGroupNameT&& value) {
44 m_labelGroupNameHasBeenSet = true;
45 m_labelGroupName = std::forward<LabelGroupNameT>(value);
46 }
47 template <typename LabelGroupNameT = Aws::String>
48 LabelSummary& WithLabelGroupName(LabelGroupNameT&& value) {
49 SetLabelGroupName(std::forward<LabelGroupNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetLabelId() const { return m_labelId; }
59 inline bool LabelIdHasBeenSet() const { return m_labelIdHasBeenSet; }
60 template <typename LabelIdT = Aws::String>
61 void SetLabelId(LabelIdT&& value) {
62 m_labelIdHasBeenSet = true;
63 m_labelId = std::forward<LabelIdT>(value);
64 }
65 template <typename LabelIdT = Aws::String>
66 LabelSummary& WithLabelId(LabelIdT&& value) {
67 SetLabelId(std::forward<LabelIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetLabelGroupArn() const { return m_labelGroupArn; }
77 inline bool LabelGroupArnHasBeenSet() const { return m_labelGroupArnHasBeenSet; }
78 template <typename LabelGroupArnT = Aws::String>
79 void SetLabelGroupArn(LabelGroupArnT&& value) {
80 m_labelGroupArnHasBeenSet = true;
81 m_labelGroupArn = std::forward<LabelGroupArnT>(value);
82 }
83 template <typename LabelGroupArnT = Aws::String>
84 LabelSummary& WithLabelGroupArn(LabelGroupArnT&& value) {
85 SetLabelGroupArn(std::forward<LabelGroupArnT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
95 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
96 template <typename StartTimeT = Aws::Utils::DateTime>
97 void SetStartTime(StartTimeT&& value) {
98 m_startTimeHasBeenSet = true;
99 m_startTime = std::forward<StartTimeT>(value);
100 }
101 template <typename StartTimeT = Aws::Utils::DateTime>
102 LabelSummary& WithStartTime(StartTimeT&& value) {
103 SetStartTime(std::forward<StartTimeT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
113 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
114 template <typename EndTimeT = Aws::Utils::DateTime>
115 void SetEndTime(EndTimeT&& value) {
116 m_endTimeHasBeenSet = true;
117 m_endTime = std::forward<EndTimeT>(value);
118 }
119 template <typename EndTimeT = Aws::Utils::DateTime>
120 LabelSummary& WithEndTime(EndTimeT&& value) {
121 SetEndTime(std::forward<EndTimeT>(value));
122 return *this;
123 }
125
127
130 inline LabelRating GetRating() const { return m_rating; }
131 inline bool RatingHasBeenSet() const { return m_ratingHasBeenSet; }
132 inline void SetRating(LabelRating value) {
133 m_ratingHasBeenSet = true;
134 m_rating = value;
135 }
137 SetRating(value);
138 return *this;
139 }
141
143
148 inline const Aws::String& GetFaultCode() const { return m_faultCode; }
149 inline bool FaultCodeHasBeenSet() const { return m_faultCodeHasBeenSet; }
150 template <typename FaultCodeT = Aws::String>
151 void SetFaultCode(FaultCodeT&& value) {
152 m_faultCodeHasBeenSet = true;
153 m_faultCode = std::forward<FaultCodeT>(value);
154 }
155 template <typename FaultCodeT = Aws::String>
156 LabelSummary& WithFaultCode(FaultCodeT&& value) {
157 SetFaultCode(std::forward<FaultCodeT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetEquipment() const { return m_equipment; }
167 inline bool EquipmentHasBeenSet() const { return m_equipmentHasBeenSet; }
168 template <typename EquipmentT = Aws::String>
169 void SetEquipment(EquipmentT&& value) {
170 m_equipmentHasBeenSet = true;
171 m_equipment = std::forward<EquipmentT>(value);
172 }
173 template <typename EquipmentT = Aws::String>
174 LabelSummary& WithEquipment(EquipmentT&& value) {
175 SetEquipment(std::forward<EquipmentT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
185 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
186 template <typename CreatedAtT = Aws::Utils::DateTime>
187 void SetCreatedAt(CreatedAtT&& value) {
188 m_createdAtHasBeenSet = true;
189 m_createdAt = std::forward<CreatedAtT>(value);
190 }
191 template <typename CreatedAtT = Aws::Utils::DateTime>
192 LabelSummary& WithCreatedAt(CreatedAtT&& value) {
193 SetCreatedAt(std::forward<CreatedAtT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_labelGroupName;
199
200 Aws::String m_labelId;
201
202 Aws::String m_labelGroupArn;
203
204 Aws::Utils::DateTime m_startTime{};
205
206 Aws::Utils::DateTime m_endTime{};
207
209
210 Aws::String m_faultCode;
211
212 Aws::String m_equipment;
213
214 Aws::Utils::DateTime m_createdAt{};
215 bool m_labelGroupNameHasBeenSet = false;
216 bool m_labelIdHasBeenSet = false;
217 bool m_labelGroupArnHasBeenSet = false;
218 bool m_startTimeHasBeenSet = false;
219 bool m_endTimeHasBeenSet = false;
220 bool m_ratingHasBeenSet = false;
221 bool m_faultCodeHasBeenSet = false;
222 bool m_equipmentHasBeenSet = false;
223 bool m_createdAtHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace LookoutEquipment
228} // namespace Aws
AWS_LOOKOUTEQUIPMENT_API Aws::Utils::Json::JsonValue Jsonize() const
LabelSummary & WithLabelGroupName(LabelGroupNameT &&value)
const Aws::Utils::DateTime & GetStartTime() const
const Aws::String & GetEquipment() const
void SetLabelGroupArn(LabelGroupArnT &&value)
const Aws::String & GetFaultCode() const
AWS_LOOKOUTEQUIPMENT_API LabelSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndTime() const
const Aws::String & GetLabelId() const
LabelSummary & WithEndTime(EndTimeT &&value)
LabelSummary & WithEquipment(EquipmentT &&value)
LabelSummary & WithCreatedAt(CreatedAtT &&value)
void SetLabelGroupName(LabelGroupNameT &&value)
AWS_LOOKOUTEQUIPMENT_API LabelSummary()=default
LabelSummary & WithFaultCode(FaultCodeT &&value)
const Aws::String & GetLabelGroupArn() const
const Aws::Utils::DateTime & GetCreatedAt() const
LabelSummary & WithStartTime(StartTimeT &&value)
LabelSummary & WithRating(LabelRating value)
LabelSummary & WithLabelId(LabelIdT &&value)
LabelSummary & WithLabelGroupArn(LabelGroupArnT &&value)
const Aws::String & GetLabelGroupName() const
AWS_LOOKOUTEQUIPMENT_API LabelSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue