/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 state of a vehicle and how it relates to the status of * a campaign.

See Also:

AWS * API Reference

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

The name of a campaign.

*/ inline const Aws::String& GetCampaignName() const{ return m_campaignName; } /** *

The name of a campaign.

*/ inline bool CampaignNameHasBeenSet() const { return m_campaignNameHasBeenSet; } /** *

The name of a campaign.

*/ inline void SetCampaignName(const Aws::String& value) { m_campaignNameHasBeenSet = true; m_campaignName = value; } /** *

The name of a campaign.

*/ inline void SetCampaignName(Aws::String&& value) { m_campaignNameHasBeenSet = true; m_campaignName = std::move(value); } /** *

The name of a campaign.

*/ inline void SetCampaignName(const char* value) { m_campaignNameHasBeenSet = true; m_campaignName.assign(value); } /** *

The name of a campaign.

*/ inline VehicleStatus& WithCampaignName(const Aws::String& value) { SetCampaignName(value); return *this;} /** *

The name of a campaign.

*/ inline VehicleStatus& WithCampaignName(Aws::String&& value) { SetCampaignName(std::move(value)); return *this;} /** *

The name of a campaign.

*/ inline VehicleStatus& WithCampaignName(const char* value) { SetCampaignName(value); return *this;} /** *

The unique ID of the vehicle.

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

The unique ID of the vehicle.

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

The unique ID of the vehicle.

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

The unique ID of the vehicle.

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

The unique ID of the vehicle.

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

The unique ID of the vehicle.

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

The unique ID of the vehicle.

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

The unique ID of the vehicle.

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

The state of a vehicle, which can be one of the following:

  • * CREATED - Amazon Web Services IoT FleetWise sucessfully created the * vehicle.

  • READY - The vehicle is ready to * receive a campaign deployment.

  • HEALTHY - A * campaign deployment was delivered to the vehicle.

  • * SUSPENDED - A campaign associated with the vehicle was suspended * and data collection was paused.

  • DELETING - * Amazon Web Services IoT FleetWise is removing a campaign from the vehicle.

    *
*/ inline const VehicleState& GetStatus() const{ return m_status; } /** *

The state of a vehicle, which can be one of the following:

  • * CREATED - Amazon Web Services IoT FleetWise sucessfully created the * vehicle.

  • READY - The vehicle is ready to * receive a campaign deployment.

  • HEALTHY - A * campaign deployment was delivered to the vehicle.

  • * SUSPENDED - A campaign associated with the vehicle was suspended * and data collection was paused.

  • DELETING - * Amazon Web Services IoT FleetWise is removing a campaign from the vehicle.

    *
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The state of a vehicle, which can be one of the following:

  • * CREATED - Amazon Web Services IoT FleetWise sucessfully created the * vehicle.

  • READY - The vehicle is ready to * receive a campaign deployment.

  • HEALTHY - A * campaign deployment was delivered to the vehicle.

  • * SUSPENDED - A campaign associated with the vehicle was suspended * and data collection was paused.

  • DELETING - * Amazon Web Services IoT FleetWise is removing a campaign from the vehicle.

    *
*/ inline void SetStatus(const VehicleState& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The state of a vehicle, which can be one of the following:

  • * CREATED - Amazon Web Services IoT FleetWise sucessfully created the * vehicle.

  • READY - The vehicle is ready to * receive a campaign deployment.

  • HEALTHY - A * campaign deployment was delivered to the vehicle.

  • * SUSPENDED - A campaign associated with the vehicle was suspended * and data collection was paused.

  • DELETING - * Amazon Web Services IoT FleetWise is removing a campaign from the vehicle.

    *
*/ inline void SetStatus(VehicleState&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The state of a vehicle, which can be one of the following:

  • * CREATED - Amazon Web Services IoT FleetWise sucessfully created the * vehicle.

  • READY - The vehicle is ready to * receive a campaign deployment.

  • HEALTHY - A * campaign deployment was delivered to the vehicle.

  • * SUSPENDED - A campaign associated with the vehicle was suspended * and data collection was paused.

  • DELETING - * Amazon Web Services IoT FleetWise is removing a campaign from the vehicle.

    *
*/ inline VehicleStatus& WithStatus(const VehicleState& value) { SetStatus(value); return *this;} /** *

The state of a vehicle, which can be one of the following:

  • * CREATED - Amazon Web Services IoT FleetWise sucessfully created the * vehicle.

  • READY - The vehicle is ready to * receive a campaign deployment.

  • HEALTHY - A * campaign deployment was delivered to the vehicle.

  • * SUSPENDED - A campaign associated with the vehicle was suspended * and data collection was paused.

  • DELETING - * Amazon Web Services IoT FleetWise is removing a campaign from the vehicle.

    *
*/ inline VehicleStatus& WithStatus(VehicleState&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_campaignName; bool m_campaignNameHasBeenSet = false; Aws::String m_vehicleName; bool m_vehicleNameHasBeenSet = false; VehicleState m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace IoTFleetWise } // namespace Aws