AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateLabelRequest.h
1
6#pragma once
7#include <aws/lookoutequipment/LookoutEquipment_EXPORTS.h>
8#include <aws/lookoutequipment/LookoutEquipmentRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/lookoutequipment/model/LabelRating.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace LookoutEquipment
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LOOKOUTEQUIPMENT_API CreateLabelRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateLabel"; }
34
35 AWS_LOOKOUTEQUIPMENT_API Aws::String SerializePayload() const override;
36
37 AWS_LOOKOUTEQUIPMENT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetLabelGroupName() const { return m_labelGroupName; }
46 inline bool LabelGroupNameHasBeenSet() const { return m_labelGroupNameHasBeenSet; }
47 template<typename LabelGroupNameT = Aws::String>
48 void SetLabelGroupName(LabelGroupNameT&& value) { m_labelGroupNameHasBeenSet = true; m_labelGroupName = std::forward<LabelGroupNameT>(value); }
49 template<typename LabelGroupNameT = Aws::String>
50 CreateLabelRequest& WithLabelGroupName(LabelGroupNameT&& value) { SetLabelGroupName(std::forward<LabelGroupNameT>(value)); return *this;}
52
54
57 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
58 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
59 template<typename StartTimeT = Aws::Utils::DateTime>
60 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
61 template<typename StartTimeT = Aws::Utils::DateTime>
62 CreateLabelRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
64
66
69 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
70 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
71 template<typename EndTimeT = Aws::Utils::DateTime>
72 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
73 template<typename EndTimeT = Aws::Utils::DateTime>
74 CreateLabelRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
76
78
81 inline LabelRating GetRating() const { return m_rating; }
82 inline bool RatingHasBeenSet() const { return m_ratingHasBeenSet; }
83 inline void SetRating(LabelRating value) { m_ratingHasBeenSet = true; m_rating = value; }
84 inline CreateLabelRequest& WithRating(LabelRating value) { SetRating(value); return *this;}
86
88
94 inline const Aws::String& GetFaultCode() const { return m_faultCode; }
95 inline bool FaultCodeHasBeenSet() const { return m_faultCodeHasBeenSet; }
96 template<typename FaultCodeT = Aws::String>
97 void SetFaultCode(FaultCodeT&& value) { m_faultCodeHasBeenSet = true; m_faultCode = std::forward<FaultCodeT>(value); }
98 template<typename FaultCodeT = Aws::String>
99 CreateLabelRequest& WithFaultCode(FaultCodeT&& value) { SetFaultCode(std::forward<FaultCodeT>(value)); return *this;}
101
103
108 inline const Aws::String& GetNotes() const { return m_notes; }
109 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
110 template<typename NotesT = Aws::String>
111 void SetNotes(NotesT&& value) { m_notesHasBeenSet = true; m_notes = std::forward<NotesT>(value); }
112 template<typename NotesT = Aws::String>
113 CreateLabelRequest& WithNotes(NotesT&& value) { SetNotes(std::forward<NotesT>(value)); return *this;}
115
117
122 inline const Aws::String& GetEquipment() const { return m_equipment; }
123 inline bool EquipmentHasBeenSet() const { return m_equipmentHasBeenSet; }
124 template<typename EquipmentT = Aws::String>
125 void SetEquipment(EquipmentT&& value) { m_equipmentHasBeenSet = true; m_equipment = std::forward<EquipmentT>(value); }
126 template<typename EquipmentT = Aws::String>
127 CreateLabelRequest& WithEquipment(EquipmentT&& value) { SetEquipment(std::forward<EquipmentT>(value)); return *this;}
129
131
135 inline const Aws::String& GetClientToken() const { return m_clientToken; }
136 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
137 template<typename ClientTokenT = Aws::String>
138 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
139 template<typename ClientTokenT = Aws::String>
140 CreateLabelRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
142 private:
143
144 Aws::String m_labelGroupName;
145 bool m_labelGroupNameHasBeenSet = false;
146
147 Aws::Utils::DateTime m_startTime{};
148 bool m_startTimeHasBeenSet = false;
149
150 Aws::Utils::DateTime m_endTime{};
151 bool m_endTimeHasBeenSet = false;
152
154 bool m_ratingHasBeenSet = false;
155
156 Aws::String m_faultCode;
157 bool m_faultCodeHasBeenSet = false;
158
159 Aws::String m_notes;
160 bool m_notesHasBeenSet = false;
161
162 Aws::String m_equipment;
163 bool m_equipmentHasBeenSet = false;
164
166 bool m_clientTokenHasBeenSet = true;
167 };
168
169} // namespace Model
170} // namespace LookoutEquipment
171} // 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