/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace IoTFleetWise { namespace Model { /** */ class UpdateVehicleRequest : public IoTFleetWiseRequest { public: AWS_IOTFLEETWISE_API UpdateVehicleRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateVehicle"; } AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override; AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The unique ID of the vehicle to update.

*/ inline const Aws::String& GetVehicleName() const{ return m_vehicleName; } /** *

The unique ID of the vehicle to update.

*/ inline bool VehicleNameHasBeenSet() const { return m_vehicleNameHasBeenSet; } /** *

The unique ID of the vehicle to update.

*/ inline void SetVehicleName(const Aws::String& value) { m_vehicleNameHasBeenSet = true; m_vehicleName = value; } /** *

The unique ID of the vehicle to update.

*/ inline void SetVehicleName(Aws::String&& value) { m_vehicleNameHasBeenSet = true; m_vehicleName = std::move(value); } /** *

The unique ID of the vehicle to update.

*/ inline void SetVehicleName(const char* value) { m_vehicleNameHasBeenSet = true; m_vehicleName.assign(value); } /** *

The unique ID of the vehicle to update.

*/ inline UpdateVehicleRequest& WithVehicleName(const Aws::String& value) { SetVehicleName(value); return *this;} /** *

The unique ID of the vehicle to update.

*/ inline UpdateVehicleRequest& WithVehicleName(Aws::String&& value) { SetVehicleName(std::move(value)); return *this;} /** *

The unique ID of the vehicle to update.

*/ inline UpdateVehicleRequest& WithVehicleName(const char* value) { SetVehicleName(value); return *this;} /** *

The ARN of a vehicle model (model manifest) associated with the vehicle.

*/ inline const Aws::String& GetModelManifestArn() const{ return m_modelManifestArn; } /** *

The ARN of a vehicle model (model manifest) associated with the vehicle.

*/ inline bool ModelManifestArnHasBeenSet() const { return m_modelManifestArnHasBeenSet; } /** *

The ARN of a vehicle model (model manifest) associated with the vehicle.

*/ inline void SetModelManifestArn(const Aws::String& value) { m_modelManifestArnHasBeenSet = true; m_modelManifestArn = value; } /** *

The ARN of a vehicle model (model manifest) associated with the vehicle.

*/ inline void SetModelManifestArn(Aws::String&& value) { m_modelManifestArnHasBeenSet = true; m_modelManifestArn = std::move(value); } /** *

The ARN of a vehicle model (model manifest) associated with the vehicle.

*/ inline void SetModelManifestArn(const char* value) { m_modelManifestArnHasBeenSet = true; m_modelManifestArn.assign(value); } /** *

The ARN of a vehicle model (model manifest) associated with the vehicle.

*/ inline UpdateVehicleRequest& WithModelManifestArn(const Aws::String& value) { SetModelManifestArn(value); return *this;} /** *

The ARN of a vehicle model (model manifest) associated with the vehicle.

*/ inline UpdateVehicleRequest& WithModelManifestArn(Aws::String&& value) { SetModelManifestArn(std::move(value)); return *this;} /** *

The ARN of a vehicle model (model manifest) associated with the vehicle.

*/ inline UpdateVehicleRequest& WithModelManifestArn(const char* value) { SetModelManifestArn(value); return *this;} /** *

The ARN of the decoder manifest associated with this vehicle.

*/ inline const Aws::String& GetDecoderManifestArn() const{ return m_decoderManifestArn; } /** *

The ARN of the decoder manifest associated with this vehicle.

*/ inline bool DecoderManifestArnHasBeenSet() const { return m_decoderManifestArnHasBeenSet; } /** *

The ARN of the decoder manifest associated with this vehicle.

*/ inline void SetDecoderManifestArn(const Aws::String& value) { m_decoderManifestArnHasBeenSet = true; m_decoderManifestArn = value; } /** *

The ARN of the decoder manifest associated with this vehicle.

*/ inline void SetDecoderManifestArn(Aws::String&& value) { m_decoderManifestArnHasBeenSet = true; m_decoderManifestArn = std::move(value); } /** *

The ARN of the decoder manifest associated with this vehicle.

*/ inline void SetDecoderManifestArn(const char* value) { m_decoderManifestArnHasBeenSet = true; m_decoderManifestArn.assign(value); } /** *

The ARN of the decoder manifest associated with this vehicle.

*/ inline UpdateVehicleRequest& WithDecoderManifestArn(const Aws::String& value) { SetDecoderManifestArn(value); return *this;} /** *

The ARN of the decoder manifest associated with this vehicle.

*/ inline UpdateVehicleRequest& WithDecoderManifestArn(Aws::String&& value) { SetDecoderManifestArn(std::move(value)); return *this;} /** *

The ARN of the decoder manifest associated with this vehicle.

*/ inline UpdateVehicleRequest& WithDecoderManifestArn(const char* value) { SetDecoderManifestArn(value); return *this;} /** *

Static information about a vehicle in a key-value pair. For example:

* "engineType" : "1.3 L R2"

*/ inline const Aws::Map& GetAttributes() const{ return m_attributes; } /** *

Static information about a vehicle in a key-value pair. For example:

* "engineType" : "1.3 L R2"

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

Static information about a vehicle in a key-value pair. For example:

* "engineType" : "1.3 L R2"

*/ inline void SetAttributes(const Aws::Map& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

Static information about a vehicle in a key-value pair. For example:

* "engineType" : "1.3 L R2"

*/ inline void SetAttributes(Aws::Map&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

Static information about a vehicle in a key-value pair. For example:

* "engineType" : "1.3 L R2"

*/ inline UpdateVehicleRequest& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;} /** *

Static information about a vehicle in a key-value pair. For example:

* "engineType" : "1.3 L R2"

*/ inline UpdateVehicleRequest& WithAttributes(Aws::Map&& value) { SetAttributes(std::move(value)); return *this;} /** *

Static information about a vehicle in a key-value pair. For example:

* "engineType" : "1.3 L R2"

*/ inline UpdateVehicleRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

Static information about a vehicle in a key-value pair. For example:

* "engineType" : "1.3 L R2"

*/ inline UpdateVehicleRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

Static information about a vehicle in a key-value pair. For example:

* "engineType" : "1.3 L R2"

*/ inline UpdateVehicleRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

Static information about a vehicle in a key-value pair. For example:

* "engineType" : "1.3 L R2"

*/ inline UpdateVehicleRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; } /** *

Static information about a vehicle in a key-value pair. For example:

* "engineType" : "1.3 L R2"

*/ inline UpdateVehicleRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

Static information about a vehicle in a key-value pair. For example:

* "engineType" : "1.3 L R2"

*/ inline UpdateVehicleRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

Static information about a vehicle in a key-value pair. For example:

* "engineType" : "1.3 L R2"

*/ inline UpdateVehicleRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

The method the specified attributes will update the existing attributes on * the vehicle. UseOverwite to replace the vehicle attributes with the * specified attributes. Or use Merge to combine all attributes.

*

This is required if attributes are present in the input.

*/ inline const UpdateMode& GetAttributeUpdateMode() const{ return m_attributeUpdateMode; } /** *

The method the specified attributes will update the existing attributes on * the vehicle. UseOverwite to replace the vehicle attributes with the * specified attributes. Or use Merge to combine all attributes.

*

This is required if attributes are present in the input.

*/ inline bool AttributeUpdateModeHasBeenSet() const { return m_attributeUpdateModeHasBeenSet; } /** *

The method the specified attributes will update the existing attributes on * the vehicle. UseOverwite to replace the vehicle attributes with the * specified attributes. Or use Merge to combine all attributes.

*

This is required if attributes are present in the input.

*/ inline void SetAttributeUpdateMode(const UpdateMode& value) { m_attributeUpdateModeHasBeenSet = true; m_attributeUpdateMode = value; } /** *

The method the specified attributes will update the existing attributes on * the vehicle. UseOverwite to replace the vehicle attributes with the * specified attributes. Or use Merge to combine all attributes.

*

This is required if attributes are present in the input.

*/ inline void SetAttributeUpdateMode(UpdateMode&& value) { m_attributeUpdateModeHasBeenSet = true; m_attributeUpdateMode = std::move(value); } /** *

The method the specified attributes will update the existing attributes on * the vehicle. UseOverwite to replace the vehicle attributes with the * specified attributes. Or use Merge to combine all attributes.

*

This is required if attributes are present in the input.

*/ inline UpdateVehicleRequest& WithAttributeUpdateMode(const UpdateMode& value) { SetAttributeUpdateMode(value); return *this;} /** *

The method the specified attributes will update the existing attributes on * the vehicle. UseOverwite to replace the vehicle attributes with the * specified attributes. Or use Merge to combine all attributes.

*

This is required if attributes are present in the input.

*/ inline UpdateVehicleRequest& WithAttributeUpdateMode(UpdateMode&& value) { SetAttributeUpdateMode(std::move(value)); return *this;} private: Aws::String m_vehicleName; bool m_vehicleNameHasBeenSet = false; Aws::String m_modelManifestArn; bool m_modelManifestArnHasBeenSet = false; Aws::String m_decoderManifestArn; bool m_decoderManifestArnHasBeenSet = false; Aws::Map m_attributes; bool m_attributesHasBeenSet = false; UpdateMode m_attributeUpdateMode; bool m_attributeUpdateModeHasBeenSet = false; }; } // namespace Model } // namespace IoTFleetWise } // namespace Aws