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

A single controller area network (CAN) device interface.

See * Also:

AWS * API Reference

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

The unique name of the interface.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The unique name of the interface.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The unique name of the interface.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The unique name of the interface.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The unique name of the interface.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The unique name of the interface.

*/ inline CanInterface& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The unique name of the interface.

*/ inline CanInterface& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The unique name of the interface.

*/ inline CanInterface& WithName(const char* value) { SetName(value); return *this;} /** *

The name of the communication protocol for the interface.

*/ inline const Aws::String& GetProtocolName() const{ return m_protocolName; } /** *

The name of the communication protocol for the interface.

*/ inline bool ProtocolNameHasBeenSet() const { return m_protocolNameHasBeenSet; } /** *

The name of the communication protocol for the interface.

*/ inline void SetProtocolName(const Aws::String& value) { m_protocolNameHasBeenSet = true; m_protocolName = value; } /** *

The name of the communication protocol for the interface.

*/ inline void SetProtocolName(Aws::String&& value) { m_protocolNameHasBeenSet = true; m_protocolName = std::move(value); } /** *

The name of the communication protocol for the interface.

*/ inline void SetProtocolName(const char* value) { m_protocolNameHasBeenSet = true; m_protocolName.assign(value); } /** *

The name of the communication protocol for the interface.

*/ inline CanInterface& WithProtocolName(const Aws::String& value) { SetProtocolName(value); return *this;} /** *

The name of the communication protocol for the interface.

*/ inline CanInterface& WithProtocolName(Aws::String&& value) { SetProtocolName(std::move(value)); return *this;} /** *

The name of the communication protocol for the interface.

*/ inline CanInterface& WithProtocolName(const char* value) { SetProtocolName(value); return *this;} /** *

The version of the communication protocol for the interface.

*/ inline const Aws::String& GetProtocolVersion() const{ return m_protocolVersion; } /** *

The version of the communication protocol for the interface.

*/ inline bool ProtocolVersionHasBeenSet() const { return m_protocolVersionHasBeenSet; } /** *

The version of the communication protocol for the interface.

*/ inline void SetProtocolVersion(const Aws::String& value) { m_protocolVersionHasBeenSet = true; m_protocolVersion = value; } /** *

The version of the communication protocol for the interface.

*/ inline void SetProtocolVersion(Aws::String&& value) { m_protocolVersionHasBeenSet = true; m_protocolVersion = std::move(value); } /** *

The version of the communication protocol for the interface.

*/ inline void SetProtocolVersion(const char* value) { m_protocolVersionHasBeenSet = true; m_protocolVersion.assign(value); } /** *

The version of the communication protocol for the interface.

*/ inline CanInterface& WithProtocolVersion(const Aws::String& value) { SetProtocolVersion(value); return *this;} /** *

The version of the communication protocol for the interface.

*/ inline CanInterface& WithProtocolVersion(Aws::String&& value) { SetProtocolVersion(std::move(value)); return *this;} /** *

The version of the communication protocol for the interface.

*/ inline CanInterface& WithProtocolVersion(const char* value) { SetProtocolVersion(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_protocolName; bool m_protocolNameHasBeenSet = false; Aws::String m_protocolVersion; bool m_protocolVersionHasBeenSet = false; }; } // namespace Model } // namespace IoTFleetWise } // namespace Aws