Class: AWSCDK::QuickSight::CfnAnalysis::HistogramBinOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::HistogramBinOptionsProperty
- Defined in:
- quick_sight/cfn_analysis.rb
Overview
The options that determine the presentation of histogram bins.
Instance Attribute Summary collapse
-
#bin_count ⇒ AWSCDK::IResolvable, ...
readonly
The options that determine the bin count of a histogram.
-
#bin_width ⇒ AWSCDK::IResolvable, ...
readonly
The options that determine the bin width of a histogram.
-
#selected_bin_type ⇒ String?
readonly
The options that determine the selected bin type.
-
#start_value ⇒ Numeric?
readonly
The options that determine the bin start value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bin_count: nil, bin_width: nil, selected_bin_type: nil, start_value: nil) ⇒ HistogramBinOptionsProperty
constructor
A new instance of HistogramBinOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bin_count: nil, bin_width: nil, selected_bin_type: nil, start_value: nil) ⇒ HistogramBinOptionsProperty
Returns a new instance of HistogramBinOptionsProperty.
15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 |
# File 'quick_sight/cfn_analysis.rb', line 15403 def initialize(bin_count: nil, bin_width: nil, selected_bin_type: nil, start_value: nil) @bin_count = bin_count.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::BinCountOptionsProperty.new(**bin_count.transform_keys(&:to_sym)) : bin_count Jsii::Type.check_type(@bin_count, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkJpbkNvdW50T3B0aW9uc1Byb3BlcnR5In1dfX0=")), "binCount") unless @bin_count.nil? @bin_width = bin_width.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::BinWidthOptionsProperty.new(**bin_width.transform_keys(&:to_sym)) : bin_width Jsii::Type.check_type(@bin_width, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkJpbldpZHRoT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "binWidth") unless @bin_width.nil? @selected_bin_type = selected_bin_type Jsii::Type.check_type(@selected_bin_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "selectedBinType") unless @selected_bin_type.nil? @start_value = start_value Jsii::Type.check_type(@start_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "startValue") unless @start_value.nil? end |
Instance Attribute Details
#bin_count ⇒ AWSCDK::IResolvable, ... (readonly)
The options that determine the bin count of a histogram.
15418 15419 15420 |
# File 'quick_sight/cfn_analysis.rb', line 15418 def bin_count @bin_count end |
#bin_width ⇒ AWSCDK::IResolvable, ... (readonly)
The options that determine the bin width of a histogram.
15423 15424 15425 |
# File 'quick_sight/cfn_analysis.rb', line 15423 def bin_width @bin_width end |
#selected_bin_type ⇒ String? (readonly)
The options that determine the selected bin type.
15428 15429 15430 |
# File 'quick_sight/cfn_analysis.rb', line 15428 def selected_bin_type @selected_bin_type end |
#start_value ⇒ Numeric? (readonly)
The options that determine the bin start value.
15433 15434 15435 |
# File 'quick_sight/cfn_analysis.rb', line 15433 def start_value @start_value end |
Class Method Details
.jsii_properties ⇒ Object
15435 15436 15437 15438 15439 15440 15441 15442 |
# File 'quick_sight/cfn_analysis.rb', line 15435 def self.jsii_properties { :bin_count => "binCount", :bin_width => "binWidth", :selected_bin_type => "selectedBinType", :start_value => "startValue", } end |
Instance Method Details
#to_jsii ⇒ Object
15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 |
# File 'quick_sight/cfn_analysis.rb', line 15444 def to_jsii result = {} result.merge!({ "binCount" => @bin_count, "binWidth" => @bin_width, "selectedBinType" => @selected_bin_type, "startValue" => @start_value, }) result.compact end |