Class: AWSCDK::QuickSight::CfnTemplate::SpacingProperty

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

Overview

The configuration of spacing (often a margin or padding).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bottom: nil, left: nil, right: nil, top: nil) ⇒ SpacingProperty

Returns a new instance of SpacingProperty.

Parameters:

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

    Define the bottom spacing.

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

    Define the left spacing.

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

    Define the right spacing.

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

    Define the top spacing.



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

#bottomString? (readonly)

Define the bottom spacing.



25153
25154
25155
# File 'quick_sight/cfn_template.rb', line 25153

def bottom
  @bottom
end

#leftString? (readonly)

Define the left spacing.



25158
25159
25160
# File 'quick_sight/cfn_template.rb', line 25158

def left
  @left
end

#rightString? (readonly)

Define the right spacing.



25163
25164
25165
# File 'quick_sight/cfn_template.rb', line 25163

def right
  @right
end

#topString? (readonly)

Define the top spacing.



25168
25169
25170
# File 'quick_sight/cfn_template.rb', line 25168

def top
  @top
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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