AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateVehicleRequest.h
1
6#pragma once
7#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
8#include <aws/iotfleetwise/IoTFleetWiseRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/iotfleetwise/model/UpdateMode.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IoTFleetWise
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOTFLEETWISE_API UpdateVehicleRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateVehicle"; }
33
34 AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override;
35
36 AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetVehicleName() const{ return m_vehicleName; }
44 inline bool VehicleNameHasBeenSet() const { return m_vehicleNameHasBeenSet; }
45 inline void SetVehicleName(const Aws::String& value) { m_vehicleNameHasBeenSet = true; m_vehicleName = value; }
46 inline void SetVehicleName(Aws::String&& value) { m_vehicleNameHasBeenSet = true; m_vehicleName = std::move(value); }
47 inline void SetVehicleName(const char* value) { m_vehicleNameHasBeenSet = true; m_vehicleName.assign(value); }
48 inline UpdateVehicleRequest& WithVehicleName(const Aws::String& value) { SetVehicleName(value); return *this;}
49 inline UpdateVehicleRequest& WithVehicleName(Aws::String&& value) { SetVehicleName(std::move(value)); return *this;}
50 inline UpdateVehicleRequest& WithVehicleName(const char* value) { SetVehicleName(value); return *this;}
52
54
57 inline const Aws::String& GetModelManifestArn() const{ return m_modelManifestArn; }
58 inline bool ModelManifestArnHasBeenSet() const { return m_modelManifestArnHasBeenSet; }
59 inline void SetModelManifestArn(const Aws::String& value) { m_modelManifestArnHasBeenSet = true; m_modelManifestArn = value; }
60 inline void SetModelManifestArn(Aws::String&& value) { m_modelManifestArnHasBeenSet = true; m_modelManifestArn = std::move(value); }
61 inline void SetModelManifestArn(const char* value) { m_modelManifestArnHasBeenSet = true; m_modelManifestArn.assign(value); }
62 inline UpdateVehicleRequest& WithModelManifestArn(const Aws::String& value) { SetModelManifestArn(value); return *this;}
63 inline UpdateVehicleRequest& WithModelManifestArn(Aws::String&& value) { SetModelManifestArn(std::move(value)); return *this;}
64 inline UpdateVehicleRequest& WithModelManifestArn(const char* value) { SetModelManifestArn(value); return *this;}
66
68
71 inline const Aws::String& GetDecoderManifestArn() const{ return m_decoderManifestArn; }
72 inline bool DecoderManifestArnHasBeenSet() const { return m_decoderManifestArnHasBeenSet; }
73 inline void SetDecoderManifestArn(const Aws::String& value) { m_decoderManifestArnHasBeenSet = true; m_decoderManifestArn = value; }
74 inline void SetDecoderManifestArn(Aws::String&& value) { m_decoderManifestArnHasBeenSet = true; m_decoderManifestArn = std::move(value); }
75 inline void SetDecoderManifestArn(const char* value) { m_decoderManifestArnHasBeenSet = true; m_decoderManifestArn.assign(value); }
77 inline UpdateVehicleRequest& WithDecoderManifestArn(Aws::String&& value) { SetDecoderManifestArn(std::move(value)); return *this;}
78 inline UpdateVehicleRequest& WithDecoderManifestArn(const char* value) { SetDecoderManifestArn(value); return *this;}
80
82
86 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
87 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
88 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
89 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
91 inline UpdateVehicleRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
92 inline UpdateVehicleRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
93 inline UpdateVehicleRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
94 inline UpdateVehicleRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
95 inline UpdateVehicleRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
96 inline UpdateVehicleRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
97 inline UpdateVehicleRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
98 inline UpdateVehicleRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
100
102
108 inline const UpdateMode& GetAttributeUpdateMode() const{ return m_attributeUpdateMode; }
109 inline bool AttributeUpdateModeHasBeenSet() const { return m_attributeUpdateModeHasBeenSet; }
110 inline void SetAttributeUpdateMode(const UpdateMode& value) { m_attributeUpdateModeHasBeenSet = true; m_attributeUpdateMode = value; }
111 inline void SetAttributeUpdateMode(UpdateMode&& value) { m_attributeUpdateModeHasBeenSet = true; m_attributeUpdateMode = std::move(value); }
113 inline UpdateVehicleRequest& WithAttributeUpdateMode(UpdateMode&& value) { SetAttributeUpdateMode(std::move(value)); return *this;}
115 private:
116
117 Aws::String m_vehicleName;
118 bool m_vehicleNameHasBeenSet = false;
119
120 Aws::String m_modelManifestArn;
121 bool m_modelManifestArnHasBeenSet = false;
122
123 Aws::String m_decoderManifestArn;
124 bool m_decoderManifestArnHasBeenSet = false;
125
127 bool m_attributesHasBeenSet = false;
128
129 UpdateMode m_attributeUpdateMode;
130 bool m_attributeUpdateModeHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace IoTFleetWise
135} // namespace Aws
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
UpdateVehicleRequest & AddAttributes(const char *key, const char *value)
UpdateVehicleRequest & WithModelManifestArn(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
UpdateVehicleRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
UpdateVehicleRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
UpdateVehicleRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override
UpdateVehicleRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
UpdateVehicleRequest & WithVehicleName(const Aws::String &value)
UpdateVehicleRequest & WithAttributeUpdateMode(const UpdateMode &value)
UpdateVehicleRequest & WithDecoderManifestArn(Aws::String &&value)
UpdateVehicleRequest & AddAttributes(Aws::String &&key, const char *value)
UpdateVehicleRequest & WithVehicleName(const char *value)
UpdateVehicleRequest & WithDecoderManifestArn(const char *value)
UpdateVehicleRequest & WithModelManifestArn(Aws::String &&value)
UpdateVehicleRequest & WithModelManifestArn(const char *value)
UpdateVehicleRequest & WithVehicleName(Aws::String &&value)
UpdateVehicleRequest & WithDecoderManifestArn(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateVehicleRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
UpdateVehicleRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetDecoderManifestArn(const Aws::String &value)
UpdateVehicleRequest & AddAttributes(const char *key, Aws::String &&value)
AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateVehicleRequest & WithAttributeUpdateMode(UpdateMode &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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