Class: AWSCDK::Glue::CfnPartition::OrderProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnPartition::OrderProperty
- Defined in:
- glue/cfn_partition.rb
Overview
Specifies the sort order of a sorted column.
Instance Attribute Summary collapse
-
#column ⇒ String
readonly
The name of the column.
-
#sort_order ⇒ Numeric?
readonly
Indicates that the column is sorted in ascending order (
== 1), or in descending order (==0).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(column:, sort_order: nil) ⇒ OrderProperty
constructor
A new instance of OrderProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(column:, sort_order: nil) ⇒ OrderProperty
Returns a new instance of OrderProperty.
594 595 596 597 598 599 |
# File 'glue/cfn_partition.rb', line 594 def initialize(column:, sort_order: nil) @column = column Jsii::Type.check_type(@column, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "column") @sort_order = sort_order Jsii::Type.check_type(@sort_order, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "sortOrder") unless @sort_order.nil? end |
Instance Attribute Details
#column ⇒ String (readonly)
The name of the column.
605 606 607 |
# File 'glue/cfn_partition.rb', line 605 def column @column end |
#sort_order ⇒ Numeric? (readonly)
Indicates that the column is sorted in ascending order ( == 1 ), or in descending order ( ==0 ).
610 611 612 |
# File 'glue/cfn_partition.rb', line 610 def sort_order @sort_order end |
Class Method Details
.jsii_properties ⇒ Object
612 613 614 615 616 617 |
# File 'glue/cfn_partition.rb', line 612 def self.jsii_properties { :column => "column", :sort_order => "sortOrder", } end |
Instance Method Details
#to_jsii ⇒ Object
619 620 621 622 623 624 625 626 |
# File 'glue/cfn_partition.rb', line 619 def to_jsii result = {} result.merge!({ "column" => @column, "sortOrder" => @sort_order, }) result.compact end |