AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetAssetPropertyAggregatesRequest.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/IoTSiteWiseRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/iotsitewise/model/TimeOrdering.h>
13#include <aws/iotsitewise/model/AggregateType.h>
14#include <aws/iotsitewise/model/Quality.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Http
20{
21 class URI;
22} //namespace Http
23namespace IoTSiteWise
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_IOTSITEWISE_API GetAssetPropertyAggregatesRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "GetAssetPropertyAggregates"; }
40
41 AWS_IOTSITEWISE_API Aws::String SerializePayload() const override;
42
43 AWS_IOTSITEWISE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44
45
47
50 inline const Aws::String& GetAssetId() const { return m_assetId; }
51 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
52 template<typename AssetIdT = Aws::String>
53 void SetAssetId(AssetIdT&& value) { m_assetIdHasBeenSet = true; m_assetId = std::forward<AssetIdT>(value); }
54 template<typename AssetIdT = Aws::String>
55 GetAssetPropertyAggregatesRequest& WithAssetId(AssetIdT&& value) { SetAssetId(std::forward<AssetIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetPropertyId() const { return m_propertyId; }
63 inline bool PropertyIdHasBeenSet() const { return m_propertyIdHasBeenSet; }
64 template<typename PropertyIdT = Aws::String>
65 void SetPropertyId(PropertyIdT&& value) { m_propertyIdHasBeenSet = true; m_propertyId = std::forward<PropertyIdT>(value); }
66 template<typename PropertyIdT = Aws::String>
67 GetAssetPropertyAggregatesRequest& WithPropertyId(PropertyIdT&& value) { SetPropertyId(std::forward<PropertyIdT>(value)); return *this;}
69
71
79 inline const Aws::String& GetPropertyAlias() const { return m_propertyAlias; }
80 inline bool PropertyAliasHasBeenSet() const { return m_propertyAliasHasBeenSet; }
81 template<typename PropertyAliasT = Aws::String>
82 void SetPropertyAlias(PropertyAliasT&& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = std::forward<PropertyAliasT>(value); }
83 template<typename PropertyAliasT = Aws::String>
84 GetAssetPropertyAggregatesRequest& WithPropertyAlias(PropertyAliasT&& value) { SetPropertyAlias(std::forward<PropertyAliasT>(value)); return *this;}
86
88
91 inline const Aws::Vector<AggregateType>& GetAggregateTypes() const { return m_aggregateTypes; }
92 inline bool AggregateTypesHasBeenSet() const { return m_aggregateTypesHasBeenSet; }
93 template<typename AggregateTypesT = Aws::Vector<AggregateType>>
94 void SetAggregateTypes(AggregateTypesT&& value) { m_aggregateTypesHasBeenSet = true; m_aggregateTypes = std::forward<AggregateTypesT>(value); }
95 template<typename AggregateTypesT = Aws::Vector<AggregateType>>
96 GetAssetPropertyAggregatesRequest& WithAggregateTypes(AggregateTypesT&& value) { SetAggregateTypes(std::forward<AggregateTypesT>(value)); return *this;}
97 inline GetAssetPropertyAggregatesRequest& AddAggregateTypes(AggregateType value) { m_aggregateTypesHasBeenSet = true; m_aggregateTypes.push_back(value); return *this; }
99
101
104 inline const Aws::String& GetResolution() const { return m_resolution; }
105 inline bool ResolutionHasBeenSet() const { return m_resolutionHasBeenSet; }
106 template<typename ResolutionT = Aws::String>
107 void SetResolution(ResolutionT&& value) { m_resolutionHasBeenSet = true; m_resolution = std::forward<ResolutionT>(value); }
108 template<typename ResolutionT = Aws::String>
109 GetAssetPropertyAggregatesRequest& WithResolution(ResolutionT&& value) { SetResolution(std::forward<ResolutionT>(value)); return *this;}
111
113
116 inline const Aws::Vector<Quality>& GetQualities() const { return m_qualities; }
117 inline bool QualitiesHasBeenSet() const { return m_qualitiesHasBeenSet; }
118 template<typename QualitiesT = Aws::Vector<Quality>>
119 void SetQualities(QualitiesT&& value) { m_qualitiesHasBeenSet = true; m_qualities = std::forward<QualitiesT>(value); }
120 template<typename QualitiesT = Aws::Vector<Quality>>
121 GetAssetPropertyAggregatesRequest& WithQualities(QualitiesT&& value) { SetQualities(std::forward<QualitiesT>(value)); return *this;}
122 inline GetAssetPropertyAggregatesRequest& AddQualities(Quality value) { m_qualitiesHasBeenSet = true; m_qualities.push_back(value); return *this; }
124
126
130 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
131 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
132 template<typename StartDateT = Aws::Utils::DateTime>
133 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
134 template<typename StartDateT = Aws::Utils::DateTime>
135 GetAssetPropertyAggregatesRequest& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
137
139
143 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
144 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
145 template<typename EndDateT = Aws::Utils::DateTime>
146 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
147 template<typename EndDateT = Aws::Utils::DateTime>
148 GetAssetPropertyAggregatesRequest& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
150
152
156 inline TimeOrdering GetTimeOrdering() const { return m_timeOrdering; }
157 inline bool TimeOrderingHasBeenSet() const { return m_timeOrderingHasBeenSet; }
158 inline void SetTimeOrdering(TimeOrdering value) { m_timeOrderingHasBeenSet = true; m_timeOrdering = value; }
161
163
166 inline const Aws::String& GetNextToken() const { return m_nextToken; }
167 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
168 template<typename NextTokenT = Aws::String>
169 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
170 template<typename NextTokenT = Aws::String>
171 GetAssetPropertyAggregatesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
173
175
182 inline int GetMaxResults() const { return m_maxResults; }
183 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
184 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
185 inline GetAssetPropertyAggregatesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
187 private:
188
189 Aws::String m_assetId;
190 bool m_assetIdHasBeenSet = false;
191
192 Aws::String m_propertyId;
193 bool m_propertyIdHasBeenSet = false;
194
195 Aws::String m_propertyAlias;
196 bool m_propertyAliasHasBeenSet = false;
197
198 Aws::Vector<AggregateType> m_aggregateTypes;
199 bool m_aggregateTypesHasBeenSet = false;
200
201 Aws::String m_resolution;
202 bool m_resolutionHasBeenSet = false;
203
204 Aws::Vector<Quality> m_qualities;
205 bool m_qualitiesHasBeenSet = false;
206
207 Aws::Utils::DateTime m_startDate{};
208 bool m_startDateHasBeenSet = false;
209
210 Aws::Utils::DateTime m_endDate{};
211 bool m_endDateHasBeenSet = false;
212
213 TimeOrdering m_timeOrdering{TimeOrdering::NOT_SET};
214 bool m_timeOrderingHasBeenSet = false;
215
216 Aws::String m_nextToken;
217 bool m_nextTokenHasBeenSet = false;
218
219 int m_maxResults{0};
220 bool m_maxResultsHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace IoTSiteWise
225} // namespace Aws
AWS_IOTSITEWISE_API GetAssetPropertyAggregatesRequest()=default
GetAssetPropertyAggregatesRequest & WithTimeOrdering(TimeOrdering value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
GetAssetPropertyAggregatesRequest & AddAggregateTypes(AggregateType value)
GetAssetPropertyAggregatesRequest & AddQualities(Quality value)
GetAssetPropertyAggregatesRequest & WithNextToken(NextTokenT &&value)
AWS_IOTSITEWISE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetAssetPropertyAggregatesRequest & WithResolution(ResolutionT &&value)
GetAssetPropertyAggregatesRequest & WithEndDate(EndDateT &&value)
GetAssetPropertyAggregatesRequest & WithPropertyAlias(PropertyAliasT &&value)
GetAssetPropertyAggregatesRequest & WithPropertyId(PropertyIdT &&value)
GetAssetPropertyAggregatesRequest & WithAggregateTypes(AggregateTypesT &&value)
GetAssetPropertyAggregatesRequest & WithStartDate(StartDateT &&value)
GetAssetPropertyAggregatesRequest & WithAssetId(AssetIdT &&value)
GetAssetPropertyAggregatesRequest & WithQualities(QualitiesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector