Class: AWSCDK::QuickSight::CfnTemplate::LongFormatTextProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::LongFormatTextProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The text format for a subtitle.
This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
Instance Attribute Summary collapse
-
#plain_text ⇒ String?
readonly
Plain text format.
-
#rich_text ⇒ String?
readonly
Rich text.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(plain_text: nil, rich_text: nil) ⇒ LongFormatTextProperty
constructor
A new instance of LongFormatTextProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(plain_text: nil, rich_text: nil) ⇒ LongFormatTextProperty
Returns a new instance of LongFormatTextProperty.
16756 16757 16758 16759 16760 16761 |
# File 'quick_sight/cfn_template.rb', line 16756 def initialize(plain_text: nil, rich_text: nil) @plain_text = plain_text Jsii::Type.check_type(@plain_text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "plainText") unless @plain_text.nil? @rich_text = rich_text Jsii::Type.check_type(@rich_text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "richText") unless @rich_text.nil? end |
Instance Attribute Details
#plain_text ⇒ String? (readonly)
Plain text format.
16767 16768 16769 |
# File 'quick_sight/cfn_template.rb', line 16767 def plain_text @plain_text end |
#rich_text ⇒ String? (readonly)
Rich text.
Examples of rich text include bold, underline, and italics.
16774 16775 16776 |
# File 'quick_sight/cfn_template.rb', line 16774 def rich_text @rich_text end |
Class Method Details
.jsii_properties ⇒ Object
16776 16777 16778 16779 16780 16781 |
# File 'quick_sight/cfn_template.rb', line 16776 def self.jsii_properties { :plain_text => "plainText", :rich_text => "richText", } end |
Instance Method Details
#to_jsii ⇒ Object
16783 16784 16785 16786 16787 16788 16789 16790 |
# File 'quick_sight/cfn_template.rb', line 16783 def to_jsii result = {} result.merge!({ "plainText" => @plain_text, "richText" => @rich_text, }) result.compact end |