Class: AWSCDK::QuickSight::CfnTemplate::SpacingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::SpacingProperty
- Defined in:
- quick_sight/cfn_template.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.
25138 25139 25140 25141 25142 25143 25144 25145 25146 25147 |
# File 'quick_sight/cfn_template.rb', line 25138 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.
25153 25154 25155 |
# File 'quick_sight/cfn_template.rb', line 25153 def bottom @bottom end |
#left ⇒ String? (readonly)
Define the left spacing.
25158 25159 25160 |
# File 'quick_sight/cfn_template.rb', line 25158 def left @left end |
#right ⇒ String? (readonly)
Define the right spacing.
25163 25164 25165 |
# File 'quick_sight/cfn_template.rb', line 25163 def right @right end |
#top ⇒ String? (readonly)
Define the top spacing.
25168 25169 25170 |
# File 'quick_sight/cfn_template.rb', line 25168 def top @top end |
Class Method Details
.jsii_properties ⇒ Object
25170 25171 25172 25173 25174 25175 25176 25177 |
# File 'quick_sight/cfn_template.rb', line 25170 def self.jsii_properties { :bottom => "bottom", :left => "left", :right => "right", :top => "top", } end |
Instance Method Details
#to_jsii ⇒ Object
25179 25180 25181 25182 25183 25184 25185 25186 25187 25188 |
# File 'quick_sight/cfn_template.rb', line 25179 def to_jsii result = {} result.merge!({ "bottom" => @bottom, "left" => @left, "right" => @right, "top" => @top, }) result.compact end |