Class: AWSCDK::QuickSight::CfnAnalysis::GeospatialSolidColorProperty

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

Overview

The definition for a solid color.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(color:, state: nil) ⇒ GeospatialSolidColorProperty

Returns a new instance of GeospatialSolidColorProperty.

Parameters:

  • color (String)

    The color and opacity values for the color.

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

    Enables and disables the view state of the color.



14424
14425
14426
14427
14428
14429
# File 'quick_sight/cfn_analysis.rb', line 14424

def initialize(color:, state: nil)
  @color = color
  Jsii::Type.check_type(@color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "color")
  @state = state
  Jsii::Type.check_type(@state, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "state") unless @state.nil?
end

Instance Attribute Details

#colorString (readonly)

The color and opacity values for the color.



14435
14436
14437
# File 'quick_sight/cfn_analysis.rb', line 14435

def color
  @color
end

#stateString? (readonly)

Enables and disables the view state of the color.



14440
14441
14442
# File 'quick_sight/cfn_analysis.rb', line 14440

def state
  @state
end

Class Method Details

.jsii_propertiesObject



14442
14443
14444
14445
14446
14447
# File 'quick_sight/cfn_analysis.rb', line 14442

def self.jsii_properties
  {
    :color => "color",
    :state => "state",
  }
end

Instance Method Details

#to_jsiiObject



14449
14450
14451
14452
14453
14454
14455
14456
# File 'quick_sight/cfn_analysis.rb', line 14449

def to_jsii
  result = {}
  result.merge!({
    "color" => @color,
    "state" => @state,
  })
  result.compact
end