/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the iotfleetwise-2021-06-17.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.IoTFleetWise.Model { /// /// Represents a node and its specifications in an in-vehicle communication network. All /// signal decoders must be associated with a network node. /// /// /// /// To return this information about all the network interfaces specified in a decoder /// manifest, use the API operation. /// /// public partial class NetworkInterface { private CanInterface _canInterface; private string _interfaceId; private ObdInterface _obdInterface; private NetworkInterfaceType _type; /// /// Gets and sets the property CanInterface. /// /// Information about a network interface specified by the Controller Area Network (CAN) /// protocol. /// /// public CanInterface CanInterface { get { return this._canInterface; } set { this._canInterface = value; } } // Check to see if CanInterface property is set internal bool IsSetCanInterface() { return this._canInterface != null; } /// /// Gets and sets the property InterfaceId. /// /// The ID of the network interface. /// /// [AWSProperty(Required=true, Min=1, Max=50)] public string InterfaceId { get { return this._interfaceId; } set { this._interfaceId = value; } } // Check to see if InterfaceId property is set internal bool IsSetInterfaceId() { return this._interfaceId != null; } /// /// Gets and sets the property ObdInterface. /// /// Information about a network interface specified by the On-board diagnostic (OBD) II /// protocol. /// /// public ObdInterface ObdInterface { get { return this._obdInterface; } set { this._obdInterface = value; } } // Check to see if ObdInterface property is set internal bool IsSetObdInterface() { return this._obdInterface != null; } /// /// Gets and sets the property Type. /// /// The network protocol for the vehicle. For example, CAN_SIGNAL specifies /// a protocol that defines how data is communicated between electronic control units /// (ECUs). OBD_SIGNAL specifies a protocol that defines how self-diagnostic /// data is communicated between ECUs. /// /// [AWSProperty(Required=true)] public NetworkInterfaceType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }