Class: AWSCDK::B2BI::CfnCapability::X12DetailsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::B2BI::CfnCapability::X12DetailsProperty
- Defined in:
- b2_bi/cfn_capability.rb
Overview
A structure that contains the X12 transaction set and version.
The X12 structure is used when the system transforms an EDI (electronic data interchange) file.
If an EDI input file contains more than one transaction, each transaction must have the same transaction set and version, for example 214/4010. If not, the transformer cannot parse the file.
Instance Attribute Summary collapse
-
#transaction_set ⇒ String?
readonly
Returns an enumerated type where each value identifies an X12 transaction set.
-
#version ⇒ String?
readonly
Returns the version to use for the specified X12 transaction set.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(transaction_set: nil, version: nil) ⇒ X12DetailsProperty
constructor
A new instance of X12DetailsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(transaction_set: nil, version: nil) ⇒ X12DetailsProperty
Returns a new instance of X12DetailsProperty.
785 786 787 788 789 790 |
# File 'b2_bi/cfn_capability.rb', line 785 def initialize(transaction_set: nil, version: nil) @transaction_set = transaction_set Jsii::Type.check_type(@transaction_set, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "transactionSet") unless @transaction_set.nil? @version = version Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") unless @version.nil? end |
Instance Attribute Details
#transaction_set ⇒ String? (readonly)
Returns an enumerated type where each value identifies an X12 transaction set.
Transaction sets are maintained by the X12 Accredited Standards Committee.
798 799 800 |
# File 'b2_bi/cfn_capability.rb', line 798 def transaction_set @transaction_set end |
#version ⇒ String? (readonly)
Returns the version to use for the specified X12 transaction set.
803 804 805 |
# File 'b2_bi/cfn_capability.rb', line 803 def version @version end |
Class Method Details
.jsii_properties ⇒ Object
805 806 807 808 809 810 |
# File 'b2_bi/cfn_capability.rb', line 805 def self.jsii_properties { :transaction_set => "transactionSet", :version => "version", } end |
Instance Method Details
#to_jsii ⇒ Object
812 813 814 815 816 817 818 819 |
# File 'b2_bi/cfn_capability.rb', line 812 def to_jsii result = {} result.merge!({ "transactionSet" => @transaction_set, "version" => @version, }) result.compact end |