Class: AWSCDK::QuickSight::CfnAnalysis::ShortFormatTextProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::ShortFormatTextProperty
- Defined in:
- quick_sight/cfn_analysis.rb
Overview
The text format for the title.
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) ⇒ ShortFormatTextProperty
constructor
A new instance of ShortFormatTextProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(plain_text: nil, rich_text: nil) ⇒ ShortFormatTextProperty
Returns a new instance of ShortFormatTextProperty.
26732 26733 26734 26735 26736 26737 |
# File 'quick_sight/cfn_analysis.rb', line 26732 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.
26743 26744 26745 |
# File 'quick_sight/cfn_analysis.rb', line 26743 def plain_text @plain_text end |
#rich_text ⇒ String? (readonly)
Rich text.
Examples of rich text include bold, underline, and italics.
26750 26751 26752 |
# File 'quick_sight/cfn_analysis.rb', line 26750 def rich_text @rich_text end |
Class Method Details
.jsii_properties ⇒ Object
26752 26753 26754 26755 26756 26757 |
# File 'quick_sight/cfn_analysis.rb', line 26752 def self.jsii_properties { :plain_text => "plainText", :rich_text => "richText", } end |
Instance Method Details
#to_jsii ⇒ Object
26759 26760 26761 26762 26763 26764 26765 26766 |
# File 'quick_sight/cfn_analysis.rb', line 26759 def to_jsii result = {} result.merge!({ "plainText" => @plain_text, "richText" => @rich_text, }) result.compact end |