Class: Aws::B2bi::Types::X12ValidationRule
- Inherits:
-
Struct
- Object
- Struct
- Aws::B2bi::Types::X12ValidationRule
- Defined in:
- gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/types.rb
Overview
X12ValidationRule is a union - when making an API calls you must set exactly one of the members.
X12ValidationRule is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of X12ValidationRule corresponding to the set member.
Represents a single validation rule that can be applied during X12 EDI processing. This is a union type that can contain one of several specific validation rule types: code list validation rules for modifying allowed element codes, element length validation rules for enforcing custom length constraints, or element requirement validation rules for changing mandatory/optional status. Each validation rule targets specific aspects of EDI document validation to ensure compliance with trading partner requirements and business rules.
Direct Known Subclasses
CodeListValidationRule, ElementLengthValidationRule, ElementRequirementValidationRule, Unknown
Defined Under Namespace
Classes: CodeListValidationRule, ElementLengthValidationRule, ElementRequirementValidationRule, Unknown
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#code_list_validation_rule ⇒ Types::X12CodeListValidationRule
Specifies a code list validation rule that modifies the allowed code values for a specific X12 element.
-
#element_length_validation_rule ⇒ Types::X12ElementLengthValidationRule
Specifies an element length validation rule that defines custom length constraints for a specific X12 element.
-
#element_requirement_validation_rule ⇒ Types::X12ElementRequirementValidationRule
Specifies an element requirement validation rule that modifies whether a specific X12 element is required or optional within a segment.
-
#unknown ⇒ Object
Returns the value of attribute unknown.
Instance Attribute Details
#code_list_validation_rule ⇒ Types::X12CodeListValidationRule
Specifies a code list validation rule that modifies the allowed code values for a specific X12 element. This rule enables you to customize which codes are considered valid for an element, allowing for trading partner-specific code requirements.
3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/types.rb', line 3365 class X12ValidationRule < Struct.new( :code_list_validation_rule, :element_length_validation_rule, :element_requirement_validation_rule, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class CodeListValidationRule < X12ValidationRule; end class ElementLengthValidationRule < X12ValidationRule; end class ElementRequirementValidationRule < X12ValidationRule; end class Unknown < X12ValidationRule; end end |
#element_length_validation_rule ⇒ Types::X12ElementLengthValidationRule
Specifies an element length validation rule that defines custom length constraints for a specific X12 element. This rule allows you to enforce minimum and maximum length requirements that may differ from the standard X12 specification.
3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/types.rb', line 3365 class X12ValidationRule < Struct.new( :code_list_validation_rule, :element_length_validation_rule, :element_requirement_validation_rule, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class CodeListValidationRule < X12ValidationRule; end class ElementLengthValidationRule < X12ValidationRule; end class ElementRequirementValidationRule < X12ValidationRule; end class Unknown < X12ValidationRule; end end |
#element_requirement_validation_rule ⇒ Types::X12ElementRequirementValidationRule
Specifies an element requirement validation rule that modifies whether a specific X12 element is required or optional within a segment. This rule provides flexibility to accommodate different trading partner requirements for element presence.
3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/types.rb', line 3365 class X12ValidationRule < Struct.new( :code_list_validation_rule, :element_length_validation_rule, :element_requirement_validation_rule, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class CodeListValidationRule < X12ValidationRule; end class ElementLengthValidationRule < X12ValidationRule; end class ElementRequirementValidationRule < X12ValidationRule; end class Unknown < X12ValidationRule; end end |
#unknown ⇒ Object
Returns the value of attribute unknown
3365 3366 3367 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/types.rb', line 3365 def unknown @unknown end |