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

A reason a vehicle network interface isn't valid.

See Also:

* AWS * API Reference

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

The ID of the interface that isn't valid.

*/ inline const Aws::String& GetInterfaceId() const{ return m_interfaceId; } /** *

The ID of the interface that isn't valid.

*/ inline bool InterfaceIdHasBeenSet() const { return m_interfaceIdHasBeenSet; } /** *

The ID of the interface that isn't valid.

*/ inline void SetInterfaceId(const Aws::String& value) { m_interfaceIdHasBeenSet = true; m_interfaceId = value; } /** *

The ID of the interface that isn't valid.

*/ inline void SetInterfaceId(Aws::String&& value) { m_interfaceIdHasBeenSet = true; m_interfaceId = std::move(value); } /** *

The ID of the interface that isn't valid.

*/ inline void SetInterfaceId(const char* value) { m_interfaceIdHasBeenSet = true; m_interfaceId.assign(value); } /** *

The ID of the interface that isn't valid.

*/ inline InvalidNetworkInterface& WithInterfaceId(const Aws::String& value) { SetInterfaceId(value); return *this;} /** *

The ID of the interface that isn't valid.

*/ inline InvalidNetworkInterface& WithInterfaceId(Aws::String&& value) { SetInterfaceId(std::move(value)); return *this;} /** *

The ID of the interface that isn't valid.

*/ inline InvalidNetworkInterface& WithInterfaceId(const char* value) { SetInterfaceId(value); return *this;} /** *

A message about why the interface isn't valid.

*/ inline const NetworkInterfaceFailureReason& GetReason() const{ return m_reason; } /** *

A message about why the interface isn't valid.

*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *

A message about why the interface isn't valid.

*/ inline void SetReason(const NetworkInterfaceFailureReason& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *

A message about why the interface isn't valid.

*/ inline void SetReason(NetworkInterfaceFailureReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *

A message about why the interface isn't valid.

*/ inline InvalidNetworkInterface& WithReason(const NetworkInterfaceFailureReason& value) { SetReason(value); return *this;} /** *

A message about why the interface isn't valid.

*/ inline InvalidNetworkInterface& WithReason(NetworkInterfaceFailureReason&& value) { SetReason(std::move(value)); return *this;} private: Aws::String m_interfaceId; bool m_interfaceIdHasBeenSet = false; NetworkInterfaceFailureReason m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace IoTFleetWise } // namespace Aws