AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateVehicleRequest.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/VehicleAssociationBehavior.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/iotfleetwise/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace IoTFleetWise
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOTFLEETWISE_API CreateVehicleRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateVehicle"; }
35
36 AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override;
37
38 AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetVehicleName() const{ return m_vehicleName; }
46 inline bool VehicleNameHasBeenSet() const { return m_vehicleNameHasBeenSet; }
47 inline void SetVehicleName(const Aws::String& value) { m_vehicleNameHasBeenSet = true; m_vehicleName = value; }
48 inline void SetVehicleName(Aws::String&& value) { m_vehicleNameHasBeenSet = true; m_vehicleName = std::move(value); }
49 inline void SetVehicleName(const char* value) { m_vehicleNameHasBeenSet = true; m_vehicleName.assign(value); }
50 inline CreateVehicleRequest& WithVehicleName(const Aws::String& value) { SetVehicleName(value); return *this;}
51 inline CreateVehicleRequest& WithVehicleName(Aws::String&& value) { SetVehicleName(std::move(value)); return *this;}
52 inline CreateVehicleRequest& WithVehicleName(const char* value) { SetVehicleName(value); return *this;}
54
56
59 inline const Aws::String& GetModelManifestArn() const{ return m_modelManifestArn; }
60 inline bool ModelManifestArnHasBeenSet() const { return m_modelManifestArnHasBeenSet; }
61 inline void SetModelManifestArn(const Aws::String& value) { m_modelManifestArnHasBeenSet = true; m_modelManifestArn = value; }
62 inline void SetModelManifestArn(Aws::String&& value) { m_modelManifestArnHasBeenSet = true; m_modelManifestArn = std::move(value); }
63 inline void SetModelManifestArn(const char* value) { m_modelManifestArnHasBeenSet = true; m_modelManifestArn.assign(value); }
64 inline CreateVehicleRequest& WithModelManifestArn(const Aws::String& value) { SetModelManifestArn(value); return *this;}
65 inline CreateVehicleRequest& WithModelManifestArn(Aws::String&& value) { SetModelManifestArn(std::move(value)); return *this;}
66 inline CreateVehicleRequest& WithModelManifestArn(const char* value) { SetModelManifestArn(value); return *this;}
68
70
73 inline const Aws::String& GetDecoderManifestArn() const{ return m_decoderManifestArn; }
74 inline bool DecoderManifestArnHasBeenSet() const { return m_decoderManifestArnHasBeenSet; }
75 inline void SetDecoderManifestArn(const Aws::String& value) { m_decoderManifestArnHasBeenSet = true; m_decoderManifestArn = value; }
76 inline void SetDecoderManifestArn(Aws::String&& value) { m_decoderManifestArnHasBeenSet = true; m_decoderManifestArn = std::move(value); }
77 inline void SetDecoderManifestArn(const char* value) { m_decoderManifestArnHasBeenSet = true; m_decoderManifestArn.assign(value); }
79 inline CreateVehicleRequest& WithDecoderManifestArn(Aws::String&& value) { SetDecoderManifestArn(std::move(value)); return *this;}
80 inline CreateVehicleRequest& WithDecoderManifestArn(const char* value) { SetDecoderManifestArn(value); return *this;}
82
84
90 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
91 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
92 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
93 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
95 inline CreateVehicleRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
96 inline CreateVehicleRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
97 inline CreateVehicleRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
98 inline CreateVehicleRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
99 inline CreateVehicleRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
100 inline CreateVehicleRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
101 inline CreateVehicleRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
102 inline CreateVehicleRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
104
106
111 inline const VehicleAssociationBehavior& GetAssociationBehavior() const{ return m_associationBehavior; }
112 inline bool AssociationBehaviorHasBeenSet() const { return m_associationBehaviorHasBeenSet; }
113 inline void SetAssociationBehavior(const VehicleAssociationBehavior& value) { m_associationBehaviorHasBeenSet = true; m_associationBehavior = value; }
114 inline void SetAssociationBehavior(VehicleAssociationBehavior&& value) { m_associationBehaviorHasBeenSet = true; m_associationBehavior = std::move(value); }
118
120
123 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
124 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
125 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
126 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
127 inline CreateVehicleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
128 inline CreateVehicleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
129 inline CreateVehicleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
130 inline CreateVehicleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
132 private:
133
134 Aws::String m_vehicleName;
135 bool m_vehicleNameHasBeenSet = false;
136
137 Aws::String m_modelManifestArn;
138 bool m_modelManifestArnHasBeenSet = false;
139
140 Aws::String m_decoderManifestArn;
141 bool m_decoderManifestArnHasBeenSet = false;
142
144 bool m_attributesHasBeenSet = false;
145
146 VehicleAssociationBehavior m_associationBehavior;
147 bool m_associationBehaviorHasBeenSet = false;
148
149 Aws::Vector<Tag> m_tags;
150 bool m_tagsHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace IoTFleetWise
155} // namespace Aws
CreateVehicleRequest & WithTags(const Aws::Vector< Tag > &value)
CreateVehicleRequest & WithModelManifestArn(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetAssociationBehavior(VehicleAssociationBehavior &&value)
CreateVehicleRequest & WithAssociationBehavior(const VehicleAssociationBehavior &value)
CreateVehicleRequest & WithModelManifestArn(const char *value)
CreateVehicleRequest & WithDecoderManifestArn(const char *value)
virtual const char * GetServiceRequestName() const override
CreateVehicleRequest & WithAssociationBehavior(VehicleAssociationBehavior &&value)
CreateVehicleRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override
void SetAssociationBehavior(const VehicleAssociationBehavior &value)
CreateVehicleRequest & WithTags(Aws::Vector< Tag > &&value)
CreateVehicleRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
const VehicleAssociationBehavior & GetAssociationBehavior() const
CreateVehicleRequest & AddTags(Tag &&value)
CreateVehicleRequest & WithVehicleName(const char *value)
CreateVehicleRequest & AddAttributes(Aws::String &&key, const char *value)
CreateVehicleRequest & WithVehicleName(const Aws::String &value)
AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetDecoderManifestArn(const Aws::String &value)
CreateVehicleRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
CreateVehicleRequest & AddTags(const Tag &value)
CreateVehicleRequest & WithVehicleName(Aws::String &&value)
CreateVehicleRequest & AddAttributes(const char *key, const char *value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
CreateVehicleRequest & WithDecoderManifestArn(Aws::String &&value)
CreateVehicleRequest & WithModelManifestArn(Aws::String &&value)
CreateVehicleRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
CreateVehicleRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
CreateVehicleRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
CreateVehicleRequest & AddAttributes(const char *key, Aws::String &&value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
CreateVehicleRequest & WithDecoderManifestArn(const Aws::String &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
std::vector< T, Aws::Allocator< T > > Vector