Class: AWSCDK::B2BI::CfnTransformer::X12CodeListValidationRuleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::B2BI::CfnTransformer::X12CodeListValidationRuleProperty
- Defined in:
- b2_bi/cfn_transformer.rb
Overview
Code list validation rule configuration.
Instance Attribute Summary collapse
-
#codes_to_add ⇒ Array<String>?
readonly
Specifies a list of code values to add to the element's allowed values.
-
#codes_to_remove ⇒ Array<String>?
readonly
Specifies a list of code values to remove from the element's allowed values.
-
#element_id ⇒ String
readonly
Specifies the four-digit element ID to which the code list modifications apply.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(element_id:, codes_to_add: nil, codes_to_remove: nil) ⇒ X12CodeListValidationRuleProperty
constructor
A new instance of X12CodeListValidationRuleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(element_id:, codes_to_add: nil, codes_to_remove: nil) ⇒ X12CodeListValidationRuleProperty
Returns a new instance of X12CodeListValidationRuleProperty.
1068 1069 1070 1071 1072 1073 1074 1075 |
# File 'b2_bi/cfn_transformer.rb', line 1068 def initialize(element_id:, codes_to_add: nil, codes_to_remove: nil) @element_id = element_id Jsii::Type.check_type(@element_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "elementId") @codes_to_add = codes_to_add Jsii::Type.check_type(@codes_to_add, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "codesToAdd") unless @codes_to_add.nil? @codes_to_remove = codes_to_remove Jsii::Type.check_type(@codes_to_remove, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "codesToRemove") unless @codes_to_remove.nil? end |
Instance Attribute Details
#codes_to_add ⇒ Array<String>? (readonly)
Specifies a list of code values to add to the element's allowed values.
These codes will be considered valid for the specified element in addition to the standard codes defined by the X12 specification.
1090 1091 1092 |
# File 'b2_bi/cfn_transformer.rb', line 1090 def codes_to_add @codes_to_add end |
#codes_to_remove ⇒ Array<String>? (readonly)
Specifies a list of code values to remove from the element's allowed values.
These codes will be considered invalid for the specified element, even if they are part of the standard codes defined by the X12 specification.
1097 1098 1099 |
# File 'b2_bi/cfn_transformer.rb', line 1097 def codes_to_remove @codes_to_remove end |
#element_id ⇒ String (readonly)
Specifies the four-digit element ID to which the code list modifications apply.
This identifies which X12 element will have its allowed code values modified.
1083 1084 1085 |
# File 'b2_bi/cfn_transformer.rb', line 1083 def element_id @element_id end |
Class Method Details
.jsii_properties ⇒ Object
1099 1100 1101 1102 1103 1104 1105 |
# File 'b2_bi/cfn_transformer.rb', line 1099 def self.jsii_properties { :element_id => "elementId", :codes_to_add => "codesToAdd", :codes_to_remove => "codesToRemove", } end |
Instance Method Details
#to_jsii ⇒ Object
1107 1108 1109 1110 1111 1112 1113 1114 1115 |
# File 'b2_bi/cfn_transformer.rb', line 1107 def to_jsii result = {} result.merge!({ "elementId" => @element_id, "codesToAdd" => @codes_to_add, "codesToRemove" => @codes_to_remove, }) result.compact end |