Class: AWSCDK::IoTFleetWise::CfnDecoderManifest::CanInterfaceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTFleetWise::CfnDecoderManifest::CanInterfaceProperty
- Defined in:
- io_t_fleet_wise/cfn_decoder_manifest.rb
Overview
A single controller area network (CAN) device interface.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The unique name of the interface.
-
#protocol_name ⇒ String?
readonly
The name of the communication protocol for the interface.
-
#protocol_version ⇒ String?
readonly
The version of the communication protocol for the interface.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, protocol_name: nil, protocol_version: nil) ⇒ CanInterfaceProperty
constructor
A new instance of CanInterfaceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, protocol_name: nil, protocol_version: nil) ⇒ CanInterfaceProperty
Returns a new instance of CanInterfaceProperty.
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
#name ⇒ String (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_name ⇒ String? (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_version ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |