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

An HTTP error resulting from updating the description for a * vehicle.

See Also:

AWS * API Reference

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

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

The ID of the vehicle with the error.

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

The ID of the vehicle with the error.

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

The relevant HTTP error code (400+).

*/ inline int GetCode() const{ return m_code; } /** *

The relevant HTTP error code (400+).

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

The relevant HTTP error code (400+).

*/ inline void SetCode(int value) { m_codeHasBeenSet = true; m_code = value; } /** *

The relevant HTTP error code (400+).

*/ inline UpdateVehicleError& WithCode(int value) { SetCode(value); return *this;} /** *

A message associated with the error.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

A message associated with the error.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

A message associated with the error.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

A message associated with the error.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

A message associated with the error.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

A message associated with the error.

*/ inline UpdateVehicleError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

A message associated with the error.

*/ inline UpdateVehicleError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

A message associated with the error.

*/ inline UpdateVehicleError& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_vehicleName; bool m_vehicleNameHasBeenSet = false; int m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace IoTFleetWise } // namespace Aws