Class: AWSCDK::QuickSight::CfnAnalysis::DataFieldSeriesItemProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::DataFieldSeriesItemProperty
- Defined in:
- quick_sight/cfn_analysis.rb
Overview
The data field series item configuration of a line chart.
Instance Attribute Summary collapse
-
#axis_binding ⇒ String
readonly
The axis that you are binding the field to.
-
#field_id ⇒ String
readonly
The field ID of the field that you are setting the axis binding to.
-
#field_value ⇒ String?
readonly
The field value of the field that you are setting the axis binding to.
-
#settings ⇒ AWSCDK::IResolvable, ...
readonly
The options that determine the presentation of line series associated to the field.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(axis_binding:, field_id:, field_value: nil, settings: nil) ⇒ DataFieldSeriesItemProperty
constructor
A new instance of DataFieldSeriesItemProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(axis_binding:, field_id:, field_value: nil, settings: nil) ⇒ DataFieldSeriesItemProperty
Returns a new instance of DataFieldSeriesItemProperty.
6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 |
# File 'quick_sight/cfn_analysis.rb', line 6278 def initialize(axis_binding:, field_id:, field_value: nil, settings: nil) @axis_binding = axis_binding Jsii::Type.check_type(@axis_binding, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "axisBinding") @field_id = field_id Jsii::Type.check_type(@field_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldId") @field_value = field_value Jsii::Type.check_type(@field_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldValue") unless @field_value.nil? @settings = settings.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::LineChartSeriesSettingsProperty.new(**settings.transform_keys(&:to_sym)) : settings Jsii::Type.check_type(@settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkxpbmVDaGFydFNlcmllc1NldHRpbmdzUHJvcGVydHkifV19fQ==")), "settings") unless @settings.nil? end |
Instance Attribute Details
#axis_binding ⇒ String (readonly)
The axis that you are binding the field to.
6293 6294 6295 |
# File 'quick_sight/cfn_analysis.rb', line 6293 def axis_binding @axis_binding end |
#field_id ⇒ String (readonly)
The field ID of the field that you are setting the axis binding to.
6298 6299 6300 |
# File 'quick_sight/cfn_analysis.rb', line 6298 def field_id @field_id end |
#field_value ⇒ String? (readonly)
The field value of the field that you are setting the axis binding to.
6303 6304 6305 |
# File 'quick_sight/cfn_analysis.rb', line 6303 def field_value @field_value end |
#settings ⇒ AWSCDK::IResolvable, ... (readonly)
The options that determine the presentation of line series associated to the field.
6308 6309 6310 |
# File 'quick_sight/cfn_analysis.rb', line 6308 def settings @settings end |
Class Method Details
.jsii_properties ⇒ Object
6310 6311 6312 6313 6314 6315 6316 6317 |
# File 'quick_sight/cfn_analysis.rb', line 6310 def self.jsii_properties { :axis_binding => "axisBinding", :field_id => "fieldId", :field_value => "fieldValue", :settings => "settings", } end |
Instance Method Details
#to_jsii ⇒ Object
6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 |
# File 'quick_sight/cfn_analysis.rb', line 6319 def to_jsii result = {} result.merge!({ "axisBinding" => @axis_binding, "fieldId" => @field_id, "fieldValue" => @field_value, "settings" => @settings, }) result.compact end |