AWS SDK for C++

AWS SDK for C++ Version 1.11.680

Loading...
Searching...
No Matches
ListLabelsRequest.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/LookoutEquipmentRequest.h>
10#include <aws/lookoutequipment/LookoutEquipment_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace LookoutEquipment {
16namespace Model {
17
21 public:
22 AWS_LOOKOUTEQUIPMENT_API ListLabelsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListLabels"; }
29
30 AWS_LOOKOUTEQUIPMENT_API Aws::String SerializePayload() const override;
31
32 AWS_LOOKOUTEQUIPMENT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetLabelGroupName() const { return m_labelGroupName; }
39 inline bool LabelGroupNameHasBeenSet() const { return m_labelGroupNameHasBeenSet; }
40 template <typename LabelGroupNameT = Aws::String>
41 void SetLabelGroupName(LabelGroupNameT&& value) {
42 m_labelGroupNameHasBeenSet = true;
43 m_labelGroupName = std::forward<LabelGroupNameT>(value);
44 }
45 template <typename LabelGroupNameT = Aws::String>
46 ListLabelsRequest& WithLabelGroupName(LabelGroupNameT&& value) {
47 SetLabelGroupName(std::forward<LabelGroupNameT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::Utils::DateTime& GetIntervalStartTime() const { return m_intervalStartTime; }
58 inline bool IntervalStartTimeHasBeenSet() const { return m_intervalStartTimeHasBeenSet; }
59 template <typename IntervalStartTimeT = Aws::Utils::DateTime>
60 void SetIntervalStartTime(IntervalStartTimeT&& value) {
61 m_intervalStartTimeHasBeenSet = true;
62 m_intervalStartTime = std::forward<IntervalStartTimeT>(value);
63 }
64 template <typename IntervalStartTimeT = Aws::Utils::DateTime>
65 ListLabelsRequest& WithIntervalStartTime(IntervalStartTimeT&& value) {
66 SetIntervalStartTime(std::forward<IntervalStartTimeT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetIntervalEndTime() const { return m_intervalEndTime; }
76 inline bool IntervalEndTimeHasBeenSet() const { return m_intervalEndTimeHasBeenSet; }
77 template <typename IntervalEndTimeT = Aws::Utils::DateTime>
78 void SetIntervalEndTime(IntervalEndTimeT&& value) {
79 m_intervalEndTimeHasBeenSet = true;
80 m_intervalEndTime = std::forward<IntervalEndTimeT>(value);
81 }
82 template <typename IntervalEndTimeT = Aws::Utils::DateTime>
83 ListLabelsRequest& WithIntervalEndTime(IntervalEndTimeT&& value) {
84 SetIntervalEndTime(std::forward<IntervalEndTimeT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetFaultCode() const { return m_faultCode; }
94 inline bool FaultCodeHasBeenSet() const { return m_faultCodeHasBeenSet; }
95 template <typename FaultCodeT = Aws::String>
96 void SetFaultCode(FaultCodeT&& value) {
97 m_faultCodeHasBeenSet = true;
98 m_faultCode = std::forward<FaultCodeT>(value);
99 }
100 template <typename FaultCodeT = Aws::String>
101 ListLabelsRequest& WithFaultCode(FaultCodeT&& value) {
102 SetFaultCode(std::forward<FaultCodeT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetEquipment() const { return m_equipment; }
112 inline bool EquipmentHasBeenSet() const { return m_equipmentHasBeenSet; }
113 template <typename EquipmentT = Aws::String>
114 void SetEquipment(EquipmentT&& value) {
115 m_equipmentHasBeenSet = true;
116 m_equipment = std::forward<EquipmentT>(value);
117 }
118 template <typename EquipmentT = Aws::String>
119 ListLabelsRequest& WithEquipment(EquipmentT&& value) {
120 SetEquipment(std::forward<EquipmentT>(value));
121 return *this;
122 }
124
126
130 inline const Aws::String& GetNextToken() const { return m_nextToken; }
131 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
132 template <typename NextTokenT = Aws::String>
133 void SetNextToken(NextTokenT&& value) {
134 m_nextTokenHasBeenSet = true;
135 m_nextToken = std::forward<NextTokenT>(value);
136 }
137 template <typename NextTokenT = Aws::String>
138 ListLabelsRequest& WithNextToken(NextTokenT&& value) {
139 SetNextToken(std::forward<NextTokenT>(value));
140 return *this;
141 }
143
145
148 inline int GetMaxResults() const { return m_maxResults; }
149 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
150 inline void SetMaxResults(int value) {
151 m_maxResultsHasBeenSet = true;
152 m_maxResults = value;
153 }
155 SetMaxResults(value);
156 return *this;
157 }
159 private:
160 Aws::String m_labelGroupName;
161 bool m_labelGroupNameHasBeenSet = false;
162
163 Aws::Utils::DateTime m_intervalStartTime{};
164 bool m_intervalStartTimeHasBeenSet = false;
165
166 Aws::Utils::DateTime m_intervalEndTime{};
167 bool m_intervalEndTimeHasBeenSet = false;
168
169 Aws::String m_faultCode;
170 bool m_faultCodeHasBeenSet = false;
171
172 Aws::String m_equipment;
173 bool m_equipmentHasBeenSet = false;
174
175 Aws::String m_nextToken;
176 bool m_nextTokenHasBeenSet = false;
177
178 int m_maxResults{0};
179 bool m_maxResultsHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace LookoutEquipment
184} // namespace Aws
void SetIntervalEndTime(IntervalEndTimeT &&value)
AWS_LOOKOUTEQUIPMENT_API ListLabelsRequest()=default
ListLabelsRequest & WithIntervalEndTime(IntervalEndTimeT &&value)
ListLabelsRequest & WithLabelGroupName(LabelGroupNameT &&value)
ListLabelsRequest & WithFaultCode(FaultCodeT &&value)
ListLabelsRequest & WithIntervalStartTime(IntervalStartTimeT &&value)
const Aws::Utils::DateTime & GetIntervalEndTime() const
const Aws::Utils::DateTime & GetIntervalStartTime() const
AWS_LOOKOUTEQUIPMENT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_LOOKOUTEQUIPMENT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetIntervalStartTime(IntervalStartTimeT &&value)
ListLabelsRequest & WithNextToken(NextTokenT &&value)
ListLabelsRequest & WithEquipment(EquipmentT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String