Class: AWSCDK::QuickSight::CfnAnalysis::GradientStopProperty

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

Overview

Determines the gradient stop configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gradient_offset:, color: nil, data_value: nil) ⇒ GradientStopProperty

Returns a new instance of GradientStopProperty.

Parameters:

  • gradient_offset (Numeric)

    Determines gradient offset value.

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

    Determines the color.

  • data_value (Numeric, nil) (defaults to: nil)

    Determines the data value.



14620
14621
14622
14623
14624
14625
14626
14627
# File 'quick_sight/cfn_analysis.rb', line 14620

def initialize(gradient_offset:, color: nil, data_value: nil)
  @gradient_offset = gradient_offset
  Jsii::Type.check_type(@gradient_offset, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "gradientOffset")
  @color = color
  Jsii::Type.check_type(@color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "color") unless @color.nil?
  @data_value = data_value
  Jsii::Type.check_type(@data_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "dataValue") unless @data_value.nil?
end

Instance Attribute Details

#colorString? (readonly)

Determines the color.



14639
14640
14641
# File 'quick_sight/cfn_analysis.rb', line 14639

def color
  @color
end

#data_valueNumeric? (readonly)

Determines the data value.



14644
14645
14646
# File 'quick_sight/cfn_analysis.rb', line 14644

def data_value
  @data_value
end

#gradient_offsetNumeric (readonly)

Note:

Default: - 0

Determines gradient offset value.



14634
14635
14636
# File 'quick_sight/cfn_analysis.rb', line 14634

def gradient_offset
  @gradient_offset
end

Class Method Details

.jsii_propertiesObject



14646
14647
14648
14649
14650
14651
14652
# File 'quick_sight/cfn_analysis.rb', line 14646

def self.jsii_properties
  {
    :gradient_offset => "gradientOffset",
    :color => "color",
    :data_value => "dataValue",
  }
end

Instance Method Details

#to_jsiiObject



14654
14655
14656
14657
14658
14659
14660
14661
14662
# File 'quick_sight/cfn_analysis.rb', line 14654

def to_jsii
  result = {}
  result.merge!({
    "gradientOffset" => @gradient_offset,
    "color" => @color,
    "dataValue" => @data_value,
  })
  result.compact
end