AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLabelGroupName(const Aws::String& value) { m_labelGroupNameHasBeenSet = true; m_labelGroupName = value; }
48 inline void SetLabelGroupName(Aws::String&& value) { m_labelGroupNameHasBeenSet = true; m_labelGroupName = std::move(value); }
49 inline void SetLabelGroupName(const char* value) { m_labelGroupNameHasBeenSet = true; m_labelGroupName.assign(value); }
50 inline CreateLabelRequest& WithLabelGroupName(const Aws::String& value) { SetLabelGroupName(value); return *this;}
51 inline CreateLabelRequest& WithLabelGroupName(Aws::String&& value) { SetLabelGroupName(std::move(value)); return *this;}
52 inline CreateLabelRequest& WithLabelGroupName(const char* value) { SetLabelGroupName(value); return *this;}
54
56
59 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
60 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
61 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
62 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
63 inline CreateLabelRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
64 inline CreateLabelRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
72 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
73 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
74 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
75 inline CreateLabelRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
76 inline CreateLabelRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
78
80
83 inline const LabelRating& GetRating() const{ return m_rating; }
84 inline bool RatingHasBeenSet() const { return m_ratingHasBeenSet; }
85 inline void SetRating(const LabelRating& value) { m_ratingHasBeenSet = true; m_rating = value; }
86 inline void SetRating(LabelRating&& value) { m_ratingHasBeenSet = true; m_rating = std::move(value); }
87 inline CreateLabelRequest& WithRating(const LabelRating& value) { SetRating(value); return *this;}
88 inline CreateLabelRequest& WithRating(LabelRating&& value) { SetRating(std::move(value)); return *this;}
90
92
98 inline const Aws::String& GetFaultCode() const{ return m_faultCode; }
99 inline bool FaultCodeHasBeenSet() const { return m_faultCodeHasBeenSet; }
100 inline void SetFaultCode(const Aws::String& value) { m_faultCodeHasBeenSet = true; m_faultCode = value; }
101 inline void SetFaultCode(Aws::String&& value) { m_faultCodeHasBeenSet = true; m_faultCode = std::move(value); }
102 inline void SetFaultCode(const char* value) { m_faultCodeHasBeenSet = true; m_faultCode.assign(value); }
103 inline CreateLabelRequest& WithFaultCode(const Aws::String& value) { SetFaultCode(value); return *this;}
104 inline CreateLabelRequest& WithFaultCode(Aws::String&& value) { SetFaultCode(std::move(value)); return *this;}
105 inline CreateLabelRequest& WithFaultCode(const char* value) { SetFaultCode(value); return *this;}
107
109
114 inline const Aws::String& GetNotes() const{ return m_notes; }
115 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
116 inline void SetNotes(const Aws::String& value) { m_notesHasBeenSet = true; m_notes = value; }
117 inline void SetNotes(Aws::String&& value) { m_notesHasBeenSet = true; m_notes = std::move(value); }
118 inline void SetNotes(const char* value) { m_notesHasBeenSet = true; m_notes.assign(value); }
119 inline CreateLabelRequest& WithNotes(const Aws::String& value) { SetNotes(value); return *this;}
120 inline CreateLabelRequest& WithNotes(Aws::String&& value) { SetNotes(std::move(value)); return *this;}
121 inline CreateLabelRequest& WithNotes(const char* value) { SetNotes(value); return *this;}
123
125
130 inline const Aws::String& GetEquipment() const{ return m_equipment; }
131 inline bool EquipmentHasBeenSet() const { return m_equipmentHasBeenSet; }
132 inline void SetEquipment(const Aws::String& value) { m_equipmentHasBeenSet = true; m_equipment = value; }
133 inline void SetEquipment(Aws::String&& value) { m_equipmentHasBeenSet = true; m_equipment = std::move(value); }
134 inline void SetEquipment(const char* value) { m_equipmentHasBeenSet = true; m_equipment.assign(value); }
135 inline CreateLabelRequest& WithEquipment(const Aws::String& value) { SetEquipment(value); return *this;}
136 inline CreateLabelRequest& WithEquipment(Aws::String&& value) { SetEquipment(std::move(value)); return *this;}
137 inline CreateLabelRequest& WithEquipment(const char* value) { SetEquipment(value); return *this;}
139
141
145 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
146 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
147 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
148 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
149 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
150 inline CreateLabelRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
151 inline CreateLabelRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
152 inline CreateLabelRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
154 private:
155
156 Aws::String m_labelGroupName;
157 bool m_labelGroupNameHasBeenSet = false;
158
159 Aws::Utils::DateTime m_startTime;
160 bool m_startTimeHasBeenSet = false;
161
162 Aws::Utils::DateTime m_endTime;
163 bool m_endTimeHasBeenSet = false;
164
165 LabelRating m_rating;
166 bool m_ratingHasBeenSet = false;
167
168 Aws::String m_faultCode;
169 bool m_faultCodeHasBeenSet = false;
170
171 Aws::String m_notes;
172 bool m_notesHasBeenSet = false;
173
174 Aws::String m_equipment;
175 bool m_equipmentHasBeenSet = false;
176
177 Aws::String m_clientToken;
178 bool m_clientTokenHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace LookoutEquipment
183} // namespace Aws
CreateLabelRequest & WithNotes(Aws::String &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
CreateLabelRequest & WithRating(const LabelRating &value)
CreateLabelRequest & WithFaultCode(const Aws::String &value)
CreateLabelRequest & WithEquipment(const char *value)
CreateLabelRequest & WithEquipment(Aws::String &&value)
CreateLabelRequest & WithNotes(const char *value)
CreateLabelRequest & WithRating(LabelRating &&value)
CreateLabelRequest & WithClientToken(const char *value)
void SetEndTime(const Aws::Utils::DateTime &value)
CreateLabelRequest & WithFaultCode(Aws::String &&value)
CreateLabelRequest & WithNotes(const Aws::String &value)
AWS_LOOKOUTEQUIPMENT_API Aws::String SerializePayload() const override
CreateLabelRequest & WithLabelGroupName(Aws::String &&value)
CreateLabelRequest & WithEndTime(Aws::Utils::DateTime &&value)
CreateLabelRequest & WithLabelGroupName(const Aws::String &value)
CreateLabelRequest & WithFaultCode(const char *value)
const Aws::Utils::DateTime & GetEndTime() const
void SetEndTime(Aws::Utils::DateTime &&value)
CreateLabelRequest & WithClientToken(Aws::String &&value)
CreateLabelRequest & WithEquipment(const Aws::String &value)
CreateLabelRequest & WithLabelGroupName(const char *value)
void SetStartTime(Aws::Utils::DateTime &&value)
AWS_LOOKOUTEQUIPMENT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Utils::DateTime & GetStartTime() const
CreateLabelRequest & WithEndTime(const Aws::Utils::DateTime &value)
CreateLabelRequest & WithStartTime(Aws::Utils::DateTime &&value)
CreateLabelRequest & WithStartTime(const Aws::Utils::DateTime &value)
virtual const char * GetServiceRequestName() const override
CreateLabelRequest & WithClientToken(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String