Class: AWSCDK::QuickSight::CfnDashboard::GeospatialSolidColorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::GeospatialSolidColorProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The definition for a solid color.
Instance Attribute Summary collapse
-
#color ⇒ String
readonly
The color and opacity values for the color.
-
#state ⇒ String?
readonly
Enables and disables the view state of the color.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(color:, state: nil) ⇒ GeospatialSolidColorProperty
constructor
A new instance of GeospatialSolidColorProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(color:, state: nil) ⇒ GeospatialSolidColorProperty
Returns a new instance of GeospatialSolidColorProperty.
15207 15208 15209 15210 15211 15212 |
# File 'quick_sight/cfn_dashboard.rb', line 15207 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
#color ⇒ String (readonly)
The color and opacity values for the color.
15218 15219 15220 |
# File 'quick_sight/cfn_dashboard.rb', line 15218 def color @color end |
#state ⇒ String? (readonly)
Enables and disables the view state of the color.
15223 15224 15225 |
# File 'quick_sight/cfn_dashboard.rb', line 15223 def state @state end |
Class Method Details
.jsii_properties ⇒ Object
15225 15226 15227 15228 15229 15230 |
# File 'quick_sight/cfn_dashboard.rb', line 15225 def self.jsii_properties { :color => "color", :state => "state", } end |
Instance Method Details
#to_jsii ⇒ Object
15232 15233 15234 15235 15236 15237 15238 15239 |
# File 'quick_sight/cfn_dashboard.rb', line 15232 def to_jsii result = {} result.merge!({ "color" => @color, "state" => @state, }) result.compact end |