/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoTFleetWise { namespace Model { /** *

Information about the vehicle to create.

See Also:

AWS * API Reference

*/ class CreateVehicleRequestItem { public: AWS_IOTFLEETWISE_API CreateVehicleRequestItem(); AWS_IOTFLEETWISE_API CreateVehicleRequestItem(Aws::Utils::Json::JsonView jsonValue); AWS_IOTFLEETWISE_API CreateVehicleRequestItem& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The unique ID of the vehicle to create.

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

The unique ID of the vehicle to create.

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

The unique ID of the vehicle to create.

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

The unique ID of the vehicle to create.

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

The unique ID of the vehicle to create.

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

The unique ID of the vehicle to create.

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

The unique ID of the vehicle to create.

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

The unique ID of the vehicle to create.

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

The ARN of the vehicle model (model manifest) to create the vehicle from.

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

The ARN of the vehicle model (model manifest) to create the vehicle from.

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

The ARN of the vehicle model (model manifest) to create the vehicle from.

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

The ARN of the vehicle model (model manifest) to create the vehicle from.

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

The ARN of the vehicle model (model manifest) to create the vehicle from.

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

The ARN of the vehicle model (model manifest) to create the vehicle from.

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

The ARN of the vehicle model (model manifest) to create the vehicle from.

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

The ARN of the vehicle model (model manifest) to create the vehicle from.

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

The Amazon Resource Name (ARN) of a decoder manifest associated with the * vehicle to create.

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

The Amazon Resource Name (ARN) of a decoder manifest associated with the * vehicle to create.

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

The Amazon Resource Name (ARN) of a decoder manifest associated with the * vehicle to create.

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

The Amazon Resource Name (ARN) of a decoder manifest associated with the * vehicle to create.

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

The Amazon Resource Name (ARN) of a decoder manifest associated with the * vehicle to create.

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

The Amazon Resource Name (ARN) of a decoder manifest associated with the * vehicle to create.

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

The Amazon Resource Name (ARN) of a decoder manifest associated with the * vehicle to create.

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

The Amazon Resource Name (ARN) of a decoder manifest associated with the * vehicle to create.

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

Static information about a vehicle in a key-value pair. For example: * "engine Type" : "v6"

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

Static information about a vehicle in a key-value pair. For example: * "engine Type" : "v6"

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

Static information about a vehicle in a key-value pair. For example: * "engine Type" : "v6"

*/ 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: * "engine Type" : "v6"

*/ 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: * "engine Type" : "v6"

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

Static information about a vehicle in a key-value pair. For example: * "engine Type" : "v6"

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

Static information about a vehicle in a key-value pair. For example: * "engine Type" : "v6"

*/ inline CreateVehicleRequestItem& 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: * "engine Type" : "v6"

*/ inline CreateVehicleRequestItem& 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: * "engine Type" : "v6"

*/ inline CreateVehicleRequestItem& 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: * "engine Type" : "v6"

*/ inline CreateVehicleRequestItem& 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: * "engine Type" : "v6"

*/ inline CreateVehicleRequestItem& 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: * "engine Type" : "v6"

*/ inline CreateVehicleRequestItem& 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: * "engine Type" : "v6"

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

An option to create a new Amazon Web Services IoT thing when creating a * vehicle, or to validate an existing thing as a vehicle.

*/ inline const VehicleAssociationBehavior& GetAssociationBehavior() const{ return m_associationBehavior; } /** *

An option to create a new Amazon Web Services IoT thing when creating a * vehicle, or to validate an existing thing as a vehicle.

*/ inline bool AssociationBehaviorHasBeenSet() const { return m_associationBehaviorHasBeenSet; } /** *

An option to create a new Amazon Web Services IoT thing when creating a * vehicle, or to validate an existing thing as a vehicle.

*/ inline void SetAssociationBehavior(const VehicleAssociationBehavior& value) { m_associationBehaviorHasBeenSet = true; m_associationBehavior = value; } /** *

An option to create a new Amazon Web Services IoT thing when creating a * vehicle, or to validate an existing thing as a vehicle.

*/ inline void SetAssociationBehavior(VehicleAssociationBehavior&& value) { m_associationBehaviorHasBeenSet = true; m_associationBehavior = std::move(value); } /** *

An option to create a new Amazon Web Services IoT thing when creating a * vehicle, or to validate an existing thing as a vehicle.

*/ inline CreateVehicleRequestItem& WithAssociationBehavior(const VehicleAssociationBehavior& value) { SetAssociationBehavior(value); return *this;} /** *

An option to create a new Amazon Web Services IoT thing when creating a * vehicle, or to validate an existing thing as a vehicle.

*/ inline CreateVehicleRequestItem& WithAssociationBehavior(VehicleAssociationBehavior&& value) { SetAssociationBehavior(std::move(value)); return *this;} /** *

Metadata which can be used to manage the vehicle.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Metadata which can be used to manage the vehicle.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Metadata which can be used to manage the vehicle.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Metadata which can be used to manage the vehicle.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Metadata which can be used to manage the vehicle.

*/ inline CreateVehicleRequestItem& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Metadata which can be used to manage the vehicle.

*/ inline CreateVehicleRequestItem& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Metadata which can be used to manage the vehicle.

*/ inline CreateVehicleRequestItem& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Metadata which can be used to manage the vehicle.

*/ inline CreateVehicleRequestItem& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(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; VehicleAssociationBehavior m_associationBehavior; bool m_associationBehaviorHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace IoTFleetWise } // namespace Aws