Class: AWSCDK::QuickSight::CfnAnalysis::DataBarsOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::DataBarsOptionsProperty
- Defined in:
- quick_sight/cfn_analysis.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.
6181 6182 6183 6184 6185 6186 6187 6188 |
# File 'quick_sight/cfn_analysis.rb', line 6181 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.
6194 6195 6196 |
# File 'quick_sight/cfn_analysis.rb', line 6194 def field_id @field_id end |
#negative_color ⇒ String? (readonly)
The color of the negative data bar.
6199 6200 6201 |
# File 'quick_sight/cfn_analysis.rb', line 6199 def negative_color @negative_color end |
#positive_color ⇒ String? (readonly)
The color of the positive data bar.
6204 6205 6206 |
# File 'quick_sight/cfn_analysis.rb', line 6204 def positive_color @positive_color end |
Class Method Details
.jsii_properties ⇒ Object
6206 6207 6208 6209 6210 6211 6212 |
# File 'quick_sight/cfn_analysis.rb', line 6206 def self.jsii_properties { :field_id => "fieldId", :negative_color => "negativeColor", :positive_color => "positiveColor", } end |
Instance Method Details
#to_jsii ⇒ Object
6214 6215 6216 6217 6218 6219 6220 6221 6222 |
# File 'quick_sight/cfn_analysis.rb', line 6214 def to_jsii result = {} result.merge!({ "fieldId" => @field_id, "negativeColor" => @negative_color, "positiveColor" => @positive_color, }) result.compact end |