Class: AWSCDK::QuickSight::CfnDashboard::DataBarsOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::DataBarsOptionsProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The options for data bars.
Instance Attribute Summary collapse
-
#field_id ⇒ String
readonly
The field ID for the data bars options.
-
#negative_color ⇒ String?
readonly
The color of the negative data bar.
-
#positive_color ⇒ String?
readonly
The color of the positive data bar.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(field_id:, negative_color: nil, positive_color: nil) ⇒ DataBarsOptionsProperty
constructor
A new instance of DataBarsOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(field_id:, negative_color: nil, positive_color: nil) ⇒ DataBarsOptionsProperty
Returns a new instance of DataBarsOptionsProperty.
6635 6636 6637 6638 6639 6640 6641 6642 |
# File 'quick_sight/cfn_dashboard.rb', line 6635 def initialize(field_id:, negative_color: nil, positive_color: nil) @field_id = field_id Jsii::Type.check_type(@field_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldId") @negative_color = negative_color Jsii::Type.check_type(@negative_color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "negativeColor") unless @negative_color.nil? @positive_color = positive_color Jsii::Type.check_type(@positive_color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "positiveColor") unless @positive_color.nil? end |
Instance Attribute Details
#field_id ⇒ String (readonly)
The field ID for the data bars options.
6648 6649 6650 |
# File 'quick_sight/cfn_dashboard.rb', line 6648 def field_id @field_id end |
#negative_color ⇒ String? (readonly)
The color of the negative data bar.
6653 6654 6655 |
# File 'quick_sight/cfn_dashboard.rb', line 6653 def negative_color @negative_color end |
#positive_color ⇒ String? (readonly)
The color of the positive data bar.
6658 6659 6660 |
# File 'quick_sight/cfn_dashboard.rb', line 6658 def positive_color @positive_color end |
Class Method Details
.jsii_properties ⇒ Object
6660 6661 6662 6663 6664 6665 6666 |
# File 'quick_sight/cfn_dashboard.rb', line 6660 def self.jsii_properties { :field_id => "fieldId", :negative_color => "negativeColor", :positive_color => "positiveColor", } end |
Instance Method Details
#to_jsii ⇒ Object
6668 6669 6670 6671 6672 6673 6674 6675 6676 |
# File 'quick_sight/cfn_dashboard.rb', line 6668 def to_jsii result = {} result.merge!({ "fieldId" => @field_id, "negativeColor" => @negative_color, "positiveColor" => @positive_color, }) result.compact end |