AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
GetVehicleResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
13#include <aws/iotfleetwise/model/StateTemplateAssociation.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace IoTFleetWise {
27namespace Model {
29 public:
30 AWS_IOTFLEETWISE_API GetVehicleResult() = default;
33
35
38 inline const Aws::String& GetVehicleName() const { return m_vehicleName; }
39 template <typename VehicleNameT = Aws::String>
40 void SetVehicleName(VehicleNameT&& value) {
41 m_vehicleNameHasBeenSet = true;
42 m_vehicleName = std::forward<VehicleNameT>(value);
43 }
44 template <typename VehicleNameT = Aws::String>
45 GetVehicleResult& WithVehicleName(VehicleNameT&& value) {
46 SetVehicleName(std::forward<VehicleNameT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetArn() const { return m_arn; }
57 template <typename ArnT = Aws::String>
58 void SetArn(ArnT&& value) {
59 m_arnHasBeenSet = true;
60 m_arn = std::forward<ArnT>(value);
61 }
62 template <typename ArnT = Aws::String>
63 GetVehicleResult& WithArn(ArnT&& value) {
64 SetArn(std::forward<ArnT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::String& GetModelManifestArn() const { return m_modelManifestArn; }
75 template <typename ModelManifestArnT = Aws::String>
76 void SetModelManifestArn(ModelManifestArnT&& value) {
77 m_modelManifestArnHasBeenSet = true;
78 m_modelManifestArn = std::forward<ModelManifestArnT>(value);
79 }
80 template <typename ModelManifestArnT = Aws::String>
81 GetVehicleResult& WithModelManifestArn(ModelManifestArnT&& value) {
82 SetModelManifestArn(std::forward<ModelManifestArnT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDecoderManifestArn() const { return m_decoderManifestArn; }
92 template <typename DecoderManifestArnT = Aws::String>
93 void SetDecoderManifestArn(DecoderManifestArnT&& value) {
94 m_decoderManifestArnHasBeenSet = true;
95 m_decoderManifestArn = std::forward<DecoderManifestArnT>(value);
96 }
97 template <typename DecoderManifestArnT = Aws::String>
98 GetVehicleResult& WithDecoderManifestArn(DecoderManifestArnT&& value) {
99 SetDecoderManifestArn(std::forward<DecoderManifestArnT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
110 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
111 void SetAttributes(AttributesT&& value) {
112 m_attributesHasBeenSet = true;
113 m_attributes = std::forward<AttributesT>(value);
114 }
115 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
116 GetVehicleResult& WithAttributes(AttributesT&& value) {
117 SetAttributes(std::forward<AttributesT>(value));
118 return *this;
119 }
120 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
121 GetVehicleResult& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
122 m_attributesHasBeenSet = true;
123 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Vector<StateTemplateAssociation>& GetStateTemplates() const { return m_stateTemplates; }
133 template <typename StateTemplatesT = Aws::Vector<StateTemplateAssociation>>
134 void SetStateTemplates(StateTemplatesT&& value) {
135 m_stateTemplatesHasBeenSet = true;
136 m_stateTemplates = std::forward<StateTemplatesT>(value);
137 }
138 template <typename StateTemplatesT = Aws::Vector<StateTemplateAssociation>>
139 GetVehicleResult& WithStateTemplates(StateTemplatesT&& value) {
140 SetStateTemplates(std::forward<StateTemplatesT>(value));
141 return *this;
142 }
143 template <typename StateTemplatesT = StateTemplateAssociation>
144 GetVehicleResult& AddStateTemplates(StateTemplatesT&& value) {
145 m_stateTemplatesHasBeenSet = true;
146 m_stateTemplates.emplace_back(std::forward<StateTemplatesT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
157 template <typename CreationTimeT = Aws::Utils::DateTime>
158 void SetCreationTime(CreationTimeT&& value) {
159 m_creationTimeHasBeenSet = true;
160 m_creationTime = std::forward<CreationTimeT>(value);
161 }
162 template <typename CreationTimeT = Aws::Utils::DateTime>
163 GetVehicleResult& WithCreationTime(CreationTimeT&& value) {
164 SetCreationTime(std::forward<CreationTimeT>(value));
165 return *this;
166 }
168
170
174 inline const Aws::Utils::DateTime& GetLastModificationTime() const { return m_lastModificationTime; }
175 template <typename LastModificationTimeT = Aws::Utils::DateTime>
176 void SetLastModificationTime(LastModificationTimeT&& value) {
177 m_lastModificationTimeHasBeenSet = true;
178 m_lastModificationTime = std::forward<LastModificationTimeT>(value);
179 }
180 template <typename LastModificationTimeT = Aws::Utils::DateTime>
181 GetVehicleResult& WithLastModificationTime(LastModificationTimeT&& value) {
182 SetLastModificationTime(std::forward<LastModificationTimeT>(value));
183 return *this;
184 }
186
188
189 inline const Aws::String& GetRequestId() const { return m_requestId; }
190 template <typename RequestIdT = Aws::String>
191 void SetRequestId(RequestIdT&& value) {
192 m_requestIdHasBeenSet = true;
193 m_requestId = std::forward<RequestIdT>(value);
194 }
195 template <typename RequestIdT = Aws::String>
196 GetVehicleResult& WithRequestId(RequestIdT&& value) {
197 SetRequestId(std::forward<RequestIdT>(value));
198 return *this;
199 }
201 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
202
203 private:
204 Aws::String m_vehicleName;
205
206 Aws::String m_arn;
207
208 Aws::String m_modelManifestArn;
209
210 Aws::String m_decoderManifestArn;
211
213
215
216 Aws::Utils::DateTime m_creationTime{};
217
218 Aws::Utils::DateTime m_lastModificationTime{};
219
220 Aws::String m_requestId;
221 Aws::Http::HttpResponseCode m_HttpResponseCode;
222 bool m_vehicleNameHasBeenSet = false;
223 bool m_arnHasBeenSet = false;
224 bool m_modelManifestArnHasBeenSet = false;
225 bool m_decoderManifestArnHasBeenSet = false;
226 bool m_attributesHasBeenSet = false;
227 bool m_stateTemplatesHasBeenSet = false;
228 bool m_creationTimeHasBeenSet = false;
229 bool m_lastModificationTimeHasBeenSet = false;
230 bool m_requestIdHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace IoTFleetWise
235} // namespace Aws
GetVehicleResult & WithCreationTime(CreationTimeT &&value)
void SetModelManifestArn(ModelManifestArnT &&value)
GetVehicleResult & WithStateTemplates(StateTemplatesT &&value)
GetVehicleResult & WithDecoderManifestArn(DecoderManifestArnT &&value)
const Aws::Utils::DateTime & GetLastModificationTime() const
const Aws::String & GetModelManifestArn() const
GetVehicleResult & WithArn(ArnT &&value)
AWS_IOTFLEETWISE_API GetVehicleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetVehicleResult & WithLastModificationTime(LastModificationTimeT &&value)
GetVehicleResult & WithRequestId(RequestIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
void SetLastModificationTime(LastModificationTimeT &&value)
void SetStateTemplates(StateTemplatesT &&value)
const Aws::String & GetDecoderManifestArn() const
GetVehicleResult & WithAttributes(AttributesT &&value)
AWS_IOTFLEETWISE_API GetVehicleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetVehicleResult & AddStateTemplates(StateTemplatesT &&value)
const Aws::Vector< StateTemplateAssociation > & GetStateTemplates() const
AWS_IOTFLEETWISE_API GetVehicleResult()=default
void SetCreationTime(CreationTimeT &&value)
GetVehicleResult & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
GetVehicleResult & WithVehicleName(VehicleNameT &&value)
const Aws::String & GetVehicleName() const
const Aws::Utils::DateTime & GetCreationTime() const
void SetDecoderManifestArn(DecoderManifestArnT &&value)
GetVehicleResult & WithModelManifestArn(ModelManifestArnT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue