Class: AWSCDK::QuickSight::CfnAnalysis::DataBarsOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_analysis.rb

Overview

The options for data bars.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field_id:, negative_color: nil, positive_color: nil) ⇒ DataBarsOptionsProperty

Returns a new instance of DataBarsOptionsProperty.

Parameters:

  • field_id (String)

    The field ID for the data bars options.

  • negative_color (String, nil) (defaults to: nil)

    The color of the negative data bar.

  • positive_color (String, nil) (defaults to: nil)

    The color of the positive data bar.



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_idString (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_colorString? (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_colorString? (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_propertiesObject



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_jsiiObject



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