Class: AWSCDK::QuickSight::CfnDashboard::SpacingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::SpacingProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The configuration of spacing (often a margin or padding).
Instance Attribute Summary collapse
-
#bottom ⇒ String?
readonly
Define the bottom spacing.
-
#left ⇒ String?
readonly
Define the left spacing.
-
#right ⇒ String?
readonly
Define the right spacing.
-
#top ⇒ String?
readonly
Define the top spacing.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bottom: nil, left: nil, right: nil, top: nil) ⇒ SpacingProperty
constructor
A new instance of SpacingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bottom: nil, left: nil, right: nil, top: nil) ⇒ SpacingProperty
Returns a new instance of SpacingProperty.
28050 28051 28052 28053 28054 28055 28056 28057 28058 28059 |
# File 'quick_sight/cfn_dashboard.rb', line 28050 def initialize(bottom: nil, left: nil, right: nil, top: nil) @bottom = bottom Jsii::Type.check_type(@bottom, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bottom") unless @bottom.nil? @left = left Jsii::Type.check_type(@left, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "left") unless @left.nil? @right = right Jsii::Type.check_type(@right, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "right") unless @right.nil? @top = top Jsii::Type.check_type(@top, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "top") unless @top.nil? end |
Instance Attribute Details
#bottom ⇒ String? (readonly)
Define the bottom spacing.
28065 28066 28067 |
# File 'quick_sight/cfn_dashboard.rb', line 28065 def bottom @bottom end |
#left ⇒ String? (readonly)
Define the left spacing.
28070 28071 28072 |
# File 'quick_sight/cfn_dashboard.rb', line 28070 def left @left end |
#right ⇒ String? (readonly)
Define the right spacing.
28075 28076 28077 |
# File 'quick_sight/cfn_dashboard.rb', line 28075 def right @right end |
#top ⇒ String? (readonly)
Define the top spacing.
28080 28081 28082 |
# File 'quick_sight/cfn_dashboard.rb', line 28080 def top @top end |
Class Method Details
.jsii_properties ⇒ Object
28082 28083 28084 28085 28086 28087 28088 28089 |
# File 'quick_sight/cfn_dashboard.rb', line 28082 def self.jsii_properties { :bottom => "bottom", :left => "left", :right => "right", :top => "top", } end |
Instance Method Details
#to_jsii ⇒ Object
28091 28092 28093 28094 28095 28096 28097 28098 28099 28100 |
# File 'quick_sight/cfn_dashboard.rb', line 28091 def to_jsii result = {} result.merge!({ "bottom" => @bottom, "left" => @left, "right" => @right, "top" => @top, }) result.compact end |