/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An HTTP error resulting from creating a vehicle.See Also:
* AWS
* API Reference
The ID of the vehicle with the error.
*/ inline const Aws::String& GetVehicleName() const{ return m_vehicleName; } /** *The ID of the vehicle with the error.
*/ inline bool VehicleNameHasBeenSet() const { return m_vehicleNameHasBeenSet; } /** *The ID of the vehicle with the error.
*/ inline void SetVehicleName(const Aws::String& value) { m_vehicleNameHasBeenSet = true; m_vehicleName = value; } /** *The ID of the vehicle with the error.
*/ inline void SetVehicleName(Aws::String&& value) { m_vehicleNameHasBeenSet = true; m_vehicleName = std::move(value); } /** *The ID of the vehicle with the error.
*/ inline void SetVehicleName(const char* value) { m_vehicleNameHasBeenSet = true; m_vehicleName.assign(value); } /** *The ID of the vehicle with the error.
*/ inline CreateVehicleError& WithVehicleName(const Aws::String& value) { SetVehicleName(value); return *this;} /** *The ID of the vehicle with the error.
*/ inline CreateVehicleError& WithVehicleName(Aws::String&& value) { SetVehicleName(std::move(value)); return *this;} /** *The ID of the vehicle with the error.
*/ inline CreateVehicleError& WithVehicleName(const char* value) { SetVehicleName(value); return *this;} /** *An HTTP error code.
*/ inline const Aws::String& GetCode() const{ return m_code; } /** *An HTTP error code.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *An HTTP error code.
*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *An HTTP error code.
*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *An HTTP error code.
*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *An HTTP error code.
*/ inline CreateVehicleError& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *An HTTP error code.
*/ inline CreateVehicleError& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *An HTTP error code.
*/ inline CreateVehicleError& WithCode(const char* value) { SetCode(value); return *this;} /** *A description of the HTTP error.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *A description of the HTTP error.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *A description of the HTTP error.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *A description of the HTTP error.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *A description of the HTTP error.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *A description of the HTTP error.
*/ inline CreateVehicleError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *A description of the HTTP error.
*/ inline CreateVehicleError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *A description of the HTTP error.
*/ inline CreateVehicleError& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_vehicleName; bool m_vehicleNameHasBeenSet = false; Aws::String m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace IoTFleetWise } // namespace Aws