AWS SDK for C++

AWS SDK for C++ Version 1.11.680

Loading...
Searching...
No Matches
CreateLabelRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/UUID.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lookoutequipment/LookoutEquipmentRequest.h>
11#include <aws/lookoutequipment/LookoutEquipment_EXPORTS.h>
12#include <aws/lookoutequipment/model/LabelRating.h>
13
14#include <utility>
15
16namespace Aws {
17namespace LookoutEquipment {
18namespace Model {
19
23 public:
24 AWS_LOOKOUTEQUIPMENT_API CreateLabelRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateLabel"; }
31
32 AWS_LOOKOUTEQUIPMENT_API Aws::String SerializePayload() const override;
33
34 AWS_LOOKOUTEQUIPMENT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
41 inline const Aws::String& GetLabelGroupName() const { return m_labelGroupName; }
42 inline bool LabelGroupNameHasBeenSet() const { return m_labelGroupNameHasBeenSet; }
43 template <typename LabelGroupNameT = Aws::String>
44 void SetLabelGroupName(LabelGroupNameT&& value) {
45 m_labelGroupNameHasBeenSet = true;
46 m_labelGroupName = std::forward<LabelGroupNameT>(value);
47 }
48 template <typename LabelGroupNameT = Aws::String>
49 CreateLabelRequest& WithLabelGroupName(LabelGroupNameT&& value) {
50 SetLabelGroupName(std::forward<LabelGroupNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
60 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
61 template <typename StartTimeT = Aws::Utils::DateTime>
62 void SetStartTime(StartTimeT&& value) {
63 m_startTimeHasBeenSet = true;
64 m_startTime = std::forward<StartTimeT>(value);
65 }
66 template <typename StartTimeT = Aws::Utils::DateTime>
67 CreateLabelRequest& WithStartTime(StartTimeT&& value) {
68 SetStartTime(std::forward<StartTimeT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
78 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
79 template <typename EndTimeT = Aws::Utils::DateTime>
80 void SetEndTime(EndTimeT&& value) {
81 m_endTimeHasBeenSet = true;
82 m_endTime = std::forward<EndTimeT>(value);
83 }
84 template <typename EndTimeT = Aws::Utils::DateTime>
85 CreateLabelRequest& WithEndTime(EndTimeT&& value) {
86 SetEndTime(std::forward<EndTimeT>(value));
87 return *this;
88 }
90
92
95 inline LabelRating GetRating() const { return m_rating; }
96 inline bool RatingHasBeenSet() const { return m_ratingHasBeenSet; }
97 inline void SetRating(LabelRating value) {
98 m_ratingHasBeenSet = true;
99 m_rating = value;
100 }
102 SetRating(value);
103 return *this;
104 }
106
108
114 inline const Aws::String& GetFaultCode() const { return m_faultCode; }
115 inline bool FaultCodeHasBeenSet() const { return m_faultCodeHasBeenSet; }
116 template <typename FaultCodeT = Aws::String>
117 void SetFaultCode(FaultCodeT&& value) {
118 m_faultCodeHasBeenSet = true;
119 m_faultCode = std::forward<FaultCodeT>(value);
120 }
121 template <typename FaultCodeT = Aws::String>
122 CreateLabelRequest& WithFaultCode(FaultCodeT&& value) {
123 SetFaultCode(std::forward<FaultCodeT>(value));
124 return *this;
125 }
127
129
134 inline const Aws::String& GetNotes() const { return m_notes; }
135 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
136 template <typename NotesT = Aws::String>
137 void SetNotes(NotesT&& value) {
138 m_notesHasBeenSet = true;
139 m_notes = std::forward<NotesT>(value);
140 }
141 template <typename NotesT = Aws::String>
142 CreateLabelRequest& WithNotes(NotesT&& value) {
143 SetNotes(std::forward<NotesT>(value));
144 return *this;
145 }
147
149
154 inline const Aws::String& GetEquipment() const { return m_equipment; }
155 inline bool EquipmentHasBeenSet() const { return m_equipmentHasBeenSet; }
156 template <typename EquipmentT = Aws::String>
157 void SetEquipment(EquipmentT&& value) {
158 m_equipmentHasBeenSet = true;
159 m_equipment = std::forward<EquipmentT>(value);
160 }
161 template <typename EquipmentT = Aws::String>
162 CreateLabelRequest& WithEquipment(EquipmentT&& value) {
163 SetEquipment(std::forward<EquipmentT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::String& GetClientToken() const { return m_clientToken; }
174 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
175 template <typename ClientTokenT = Aws::String>
176 void SetClientToken(ClientTokenT&& value) {
177 m_clientTokenHasBeenSet = true;
178 m_clientToken = std::forward<ClientTokenT>(value);
179 }
180 template <typename ClientTokenT = Aws::String>
181 CreateLabelRequest& WithClientToken(ClientTokenT&& value) {
182 SetClientToken(std::forward<ClientTokenT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_labelGroupName;
188 bool m_labelGroupNameHasBeenSet = false;
189
190 Aws::Utils::DateTime m_startTime{};
191 bool m_startTimeHasBeenSet = false;
192
193 Aws::Utils::DateTime m_endTime{};
194 bool m_endTimeHasBeenSet = false;
195
197 bool m_ratingHasBeenSet = false;
198
199 Aws::String m_faultCode;
200 bool m_faultCodeHasBeenSet = false;
201
202 Aws::String m_notes;
203 bool m_notesHasBeenSet = false;
204
205 Aws::String m_equipment;
206 bool m_equipmentHasBeenSet = false;
207
209 bool m_clientTokenHasBeenSet = true;
210};
211
212} // namespace Model
213} // namespace LookoutEquipment
214} // namespace Aws
CreateLabelRequest & WithEquipment(EquipmentT &&value)
CreateLabelRequest & WithNotes(NotesT &&value)
AWS_LOOKOUTEQUIPMENT_API CreateLabelRequest()=default
CreateLabelRequest & WithRating(LabelRating value)
CreateLabelRequest & WithEndTime(EndTimeT &&value)
CreateLabelRequest & WithFaultCode(FaultCodeT &&value)
AWS_LOOKOUTEQUIPMENT_API Aws::String SerializePayload() const override
CreateLabelRequest & WithClientToken(ClientTokenT &&value)
const Aws::Utils::DateTime & GetEndTime() const
AWS_LOOKOUTEQUIPMENT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLabelRequest & WithStartTime(StartTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
virtual const char * GetServiceRequestName() const override
CreateLabelRequest & WithLabelGroupName(LabelGroupNameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String