AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
ListVehiclesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iotfleetwise/IoTFleetWiseRequest.h>
10#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
11#include <aws/iotfleetwise/model/ListResponseScope.h>
12
13#include <utility>
14
15namespace Aws {
16namespace IoTFleetWise {
17namespace Model {
18
22 public:
23 AWS_IOTFLEETWISE_API ListVehiclesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ListVehicles"; }
30
31 AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override;
32
33 AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
41 inline const Aws::String& GetModelManifestArn() const { return m_modelManifestArn; }
42 inline bool ModelManifestArnHasBeenSet() const { return m_modelManifestArnHasBeenSet; }
43 template <typename ModelManifestArnT = Aws::String>
44 void SetModelManifestArn(ModelManifestArnT&& value) {
45 m_modelManifestArnHasBeenSet = true;
46 m_modelManifestArn = std::forward<ModelManifestArnT>(value);
47 }
48 template <typename ModelManifestArnT = Aws::String>
49 ListVehiclesRequest& WithModelManifestArn(ModelManifestArnT&& value) {
50 SetModelManifestArn(std::forward<ModelManifestArnT>(value));
51 return *this;
52 }
54
56
69 inline const Aws::Vector<Aws::String>& GetAttributeNames() const { return m_attributeNames; }
70 inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
71 template <typename AttributeNamesT = Aws::Vector<Aws::String>>
72 void SetAttributeNames(AttributeNamesT&& value) {
73 m_attributeNamesHasBeenSet = true;
74 m_attributeNames = std::forward<AttributeNamesT>(value);
75 }
76 template <typename AttributeNamesT = Aws::Vector<Aws::String>>
77 ListVehiclesRequest& WithAttributeNames(AttributeNamesT&& value) {
78 SetAttributeNames(std::forward<AttributeNamesT>(value));
79 return *this;
80 }
81 template <typename AttributeNamesT = Aws::String>
82 ListVehiclesRequest& AddAttributeNames(AttributeNamesT&& value) {
83 m_attributeNamesHasBeenSet = true;
84 m_attributeNames.emplace_back(std::forward<AttributeNamesT>(value));
85 return *this;
86 }
88
90
105 inline const Aws::Vector<Aws::String>& GetAttributeValues() const { return m_attributeValues; }
106 inline bool AttributeValuesHasBeenSet() const { return m_attributeValuesHasBeenSet; }
107 template <typename AttributeValuesT = Aws::Vector<Aws::String>>
108 void SetAttributeValues(AttributeValuesT&& value) {
109 m_attributeValuesHasBeenSet = true;
110 m_attributeValues = std::forward<AttributeValuesT>(value);
111 }
112 template <typename AttributeValuesT = Aws::Vector<Aws::String>>
113 ListVehiclesRequest& WithAttributeValues(AttributeValuesT&& value) {
114 SetAttributeValues(std::forward<AttributeValuesT>(value));
115 return *this;
116 }
117 template <typename AttributeValuesT = Aws::String>
118 ListVehiclesRequest& AddAttributeValues(AttributeValuesT&& value) {
119 m_attributeValuesHasBeenSet = true;
120 m_attributeValues.emplace_back(std::forward<AttributeValuesT>(value));
121 return *this;
122 }
124
126
134 inline const Aws::String& GetNextToken() const { return m_nextToken; }
135 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
136 template <typename NextTokenT = Aws::String>
137 void SetNextToken(NextTokenT&& value) {
138 m_nextTokenHasBeenSet = true;
139 m_nextToken = std::forward<NextTokenT>(value);
140 }
141 template <typename NextTokenT = Aws::String>
142 ListVehiclesRequest& WithNextToken(NextTokenT&& value) {
143 SetNextToken(std::forward<NextTokenT>(value));
144 return *this;
145 }
147
149
152 inline int GetMaxResults() const { return m_maxResults; }
153 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
154 inline void SetMaxResults(int value) {
155 m_maxResultsHasBeenSet = true;
156 m_maxResults = value;
157 }
159 SetMaxResults(value);
160 return *this;
161 }
163
165
170 inline ListResponseScope GetListResponseScope() const { return m_listResponseScope; }
171 inline bool ListResponseScopeHasBeenSet() const { return m_listResponseScopeHasBeenSet; }
173 m_listResponseScopeHasBeenSet = true;
174 m_listResponseScope = value;
175 }
178 return *this;
179 }
181 private:
182 Aws::String m_modelManifestArn;
183
184 Aws::Vector<Aws::String> m_attributeNames;
185
186 Aws::Vector<Aws::String> m_attributeValues;
187
188 Aws::String m_nextToken;
189
190 int m_maxResults{0};
191
193 bool m_modelManifestArnHasBeenSet = false;
194 bool m_attributeNamesHasBeenSet = false;
195 bool m_attributeValuesHasBeenSet = false;
196 bool m_nextTokenHasBeenSet = false;
197 bool m_maxResultsHasBeenSet = false;
198 bool m_listResponseScopeHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace IoTFleetWise
203} // namespace Aws
AWS_IOTFLEETWISE_API ListVehiclesRequest()=default
ListVehiclesRequest & WithModelManifestArn(ModelManifestArnT &&value)
ListVehiclesRequest & WithAttributeValues(AttributeValuesT &&value)
AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListVehiclesRequest & WithMaxResults(int value)
AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetAttributeNames() const
ListVehiclesRequest & WithListResponseScope(ListResponseScope value)
void SetModelManifestArn(ModelManifestArnT &&value)
ListVehiclesRequest & WithAttributeNames(AttributeNamesT &&value)
void SetAttributeValues(AttributeValuesT &&value)
const Aws::Vector< Aws::String > & GetAttributeValues() const
virtual const char * GetServiceRequestName() const override
ListVehiclesRequest & WithNextToken(NextTokenT &&value)
ListVehiclesRequest & AddAttributeValues(AttributeValuesT &&value)
ListVehiclesRequest & AddAttributeNames(AttributeNamesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector