/** * 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 #include namespace Aws { namespace IoTFleetWise { namespace Model { /** */ class CreateVehicleRequest : public IoTFleetWiseRequest { public: AWS_IOTFLEETWISE_API CreateVehicleRequest(); // 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 "CreateVehicle"; } AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override; AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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 CreateVehicleRequest& WithVehicleName(const Aws::String& value) { SetVehicleName(value); return *this;} /** *

The unique ID of the vehicle to create.

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

The unique ID of the vehicle to create.

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

The Amazon Resource Name ARN of a vehicle model.

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

The Amazon Resource Name ARN of a vehicle model.

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

The Amazon Resource Name ARN of a vehicle model.

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

The Amazon Resource Name ARN of a vehicle model.

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

The Amazon Resource Name ARN of a vehicle model.

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

The Amazon Resource Name ARN of a vehicle model.

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

The Amazon Resource Name ARN of a vehicle model.

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

The Amazon Resource Name ARN of a vehicle model.

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

The ARN of a decoder manifest.

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

The ARN of a decoder manifest.

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

The ARN of a decoder manifest.

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

The ARN of a decoder manifest.

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

The ARN of a decoder manifest.

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

The ARN of a decoder manifest.

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

The ARN of a decoder manifest.

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

The ARN of a decoder manifest.

*/ inline CreateVehicleRequest& 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"

A campaign must * include the keys (attribute names) in dataExtraDimensions for them * to display in Amazon Timestream.

*/ 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"

A campaign must * include the keys (attribute names) in dataExtraDimensions for them * to display in Amazon Timestream.

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

Static information about a vehicle in a key-value pair. For example: * "engineType" : "1.3 L R2"

A campaign must * include the keys (attribute names) in dataExtraDimensions for them * to display in Amazon Timestream.

*/ 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"

A campaign must * include the keys (attribute names) in dataExtraDimensions for them * to display in Amazon Timestream.

*/ 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"

A campaign must * include the keys (attribute names) in dataExtraDimensions for them * to display in Amazon Timestream.

*/ inline CreateVehicleRequest& 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"

A campaign must * include the keys (attribute names) in dataExtraDimensions for them * to display in Amazon Timestream.

*/ inline CreateVehicleRequest& 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"

A campaign must * include the keys (attribute names) in dataExtraDimensions for them * to display in Amazon Timestream.

*/ inline CreateVehicleRequest& 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"

A campaign must * include the keys (attribute names) in dataExtraDimensions for them * to display in Amazon Timestream.

*/ inline CreateVehicleRequest& 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"

A campaign must * include the keys (attribute names) in dataExtraDimensions for them * to display in Amazon Timestream.

*/ inline CreateVehicleRequest& 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"

A campaign must * include the keys (attribute names) in dataExtraDimensions for them * to display in Amazon Timestream.

*/ inline CreateVehicleRequest& 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"

A campaign must * include the keys (attribute names) in dataExtraDimensions for them * to display in Amazon Timestream.

*/ inline CreateVehicleRequest& 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"

A campaign must * include the keys (attribute names) in dataExtraDimensions for them * to display in Amazon Timestream.

*/ inline CreateVehicleRequest& 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"

A campaign must * include the keys (attribute names) in dataExtraDimensions for them * to display in Amazon Timestream.

*/ inline CreateVehicleRequest& 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 Amazon Web Services IoT thing as a vehicle. *

Default:

*/ 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 Amazon Web Services IoT thing as a vehicle. *

Default:

*/ 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 Amazon Web Services IoT thing as a vehicle. *

Default:

*/ 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 Amazon Web Services IoT thing as a vehicle. *

Default:

*/ 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 Amazon Web Services IoT thing as a vehicle. *

Default:

*/ inline CreateVehicleRequest& 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 Amazon Web Services IoT thing as a vehicle. *

Default:

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

Metadata that can be used to manage the vehicle.

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

Metadata that can be used to manage the vehicle.

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

Metadata that can be used to manage the vehicle.

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

Metadata that can be used to manage the vehicle.

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

Metadata that can be used to manage the vehicle.

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

Metadata that can be used to manage the vehicle.

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

Metadata that can be used to manage the vehicle.

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

Metadata that can be used to manage the vehicle.

*/ inline CreateVehicleRequest& 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