Class: AWSCDK::IoTFleetWise::CfnDecoderManifest::NetworkInterfacesItemsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_fleet_wise/cfn_decoder_manifest.rb

Overview

A list of information about available network interfaces.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(interface_id:, type:, can_interface: nil, obd_interface: nil) ⇒ NetworkInterfacesItemsProperty

Returns a new instance of NetworkInterfacesItemsProperty.

Parameters:



930
931
932
933
934
935
936
937
938
939
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 930

def initialize(interface_id:, type:, can_interface: nil, obd_interface: nil)
  @interface_id = interface_id
  Jsii::Type.check_type(@interface_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "interfaceId")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @can_interface = can_interface.is_a?(Hash) ? ::AWSCDK::IoTFleetWise::CfnDecoderManifest::CanInterfaceProperty.new(**can_interface.transform_keys(&:to_sym)) : can_interface
  Jsii::Type.check_type(@can_interface, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RmbGVldHdpc2UuQ2ZuRGVjb2Rlck1hbmlmZXN0LkNhbkludGVyZmFjZVByb3BlcnR5In1dfX0=")), "canInterface") unless @can_interface.nil?
  @obd_interface = obd_interface.is_a?(Hash) ? ::AWSCDK::IoTFleetWise::CfnDecoderManifest::ObdInterfaceProperty.new(**obd_interface.transform_keys(&:to_sym)) : obd_interface
  Jsii::Type.check_type(@obd_interface, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RmbGVldHdpc2UuQ2ZuRGVjb2Rlck1hbmlmZXN0Lk9iZEludGVyZmFjZVByb3BlcnR5In1dfX0=")), "obdInterface") unless @obd_interface.nil?
end

Instance Attribute Details

#interface_idString (readonly)



943
944
945
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 943

def interface_id
  @interface_id
end

#typeString (readonly)



946
947
948
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 946

def type
  @type
end

Class Method Details

.jsii_propertiesObject



954
955
956
957
958
959
960
961
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 954

def self.jsii_properties
  {
    :interface_id => "interfaceId",
    :type => "type",
    :can_interface => "canInterface",
    :obd_interface => "obdInterface",
  }
end

Instance Method Details

#to_jsiiObject



963
964
965
966
967
968
969
970
971
972
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 963

def to_jsii
  result = {}
  result.merge!({
    "interfaceId" => @interface_id,
    "type" => @type,
    "canInterface" => @can_interface,
    "obdInterface" => @obd_interface,
  })
  result.compact
end