Class: AWSCDK::Cassandra::CfnType::FieldProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cassandra::CfnType::FieldProperty
- Defined in:
- cassandra/cfn_type.rb
Overview
The name and data type of an individual field in a user-defined type (UDT).
In addition to a Cassandra data type, you can also use another UDT. When you nest another UDT or collection data type, you have to declare them with the FROZEN keyword.
Instance Attribute Summary collapse
-
#field_name ⇒ String
readonly
The name of the field.
-
#field_type ⇒ String
readonly
The data type of the field.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(field_name:, field_type:) ⇒ FieldProperty
constructor
A new instance of FieldProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(field_name:, field_type:) ⇒ FieldProperty
Returns a new instance of FieldProperty.
567 568 569 570 571 572 |
# File 'cassandra/cfn_type.rb', line 567 def initialize(field_name:, field_type:) @field_name = field_name Jsii::Type.check_type(@field_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldName") @field_type = field_type Jsii::Type.check_type(@field_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldType") end |
Instance Attribute Details
#field_name ⇒ String (readonly)
The name of the field.
578 579 580 |
# File 'cassandra/cfn_type.rb', line 578 def field_name @field_name end |
#field_type ⇒ String (readonly)
The data type of the field.
This can be any Cassandra data type or another user-defined type.
585 586 587 |
# File 'cassandra/cfn_type.rb', line 585 def field_type @field_type end |
Class Method Details
.jsii_properties ⇒ Object
587 588 589 590 591 592 |
# File 'cassandra/cfn_type.rb', line 587 def self.jsii_properties { :field_name => "fieldName", :field_type => "fieldType", } end |
Instance Method Details
#to_jsii ⇒ Object
594 595 596 597 598 599 600 601 |
# File 'cassandra/cfn_type.rb', line 594 def to_jsii result = {} result.merge!({ "fieldName" => @field_name, "fieldType" => @field_type, }) result.compact end |