Class: AWSCDK::IoTFleetWise::CfnDecoderManifest::CanInterfaceProperty

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

Overview

A single controller area network (CAN) device interface.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, protocol_name: nil, protocol_version: nil) ⇒ CanInterfaceProperty

Returns a new instance of CanInterfaceProperty.

Parameters:

  • name (String)

    The unique name of the interface.

  • protocol_name (String, nil) (defaults to: nil)

    The name of the communication protocol for the interface.

  • protocol_version (String, nil) (defaults to: nil)

    The version of the communication protocol for the interface.



635
636
637
638
639
640
641
642
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 635

def initialize(name:, protocol_name: nil, protocol_version: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @protocol_name = protocol_name
  Jsii::Type.check_type(@protocol_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "protocolName") unless @protocol_name.nil?
  @protocol_version = protocol_version
  Jsii::Type.check_type(@protocol_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "protocolVersion") unless @protocol_version.nil?
end

Instance Attribute Details

#nameString (readonly)

The unique name of the interface.



648
649
650
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 648

def name
  @name
end

#protocol_nameString? (readonly)

The name of the communication protocol for the interface.



653
654
655
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 653

def protocol_name
  @protocol_name
end

#protocol_versionString? (readonly)

The version of the communication protocol for the interface.



658
659
660
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 658

def protocol_version
  @protocol_version
end

Class Method Details

.jsii_propertiesObject



660
661
662
663
664
665
666
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 660

def self.jsii_properties
  {
    :name => "name",
    :protocol_name => "protocolName",
    :protocol_version => "protocolVersion",
  }
end

Instance Method Details

#to_jsiiObject



668
669
670
671
672
673
674
675
676
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 668

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "protocolName" => @protocol_name,
    "protocolVersion" => @protocol_version,
  })
  result.compact
end