Class: AWSCDK::QuickSight::CfnAnalysis::AxisLinearScaleProperty

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

Overview

The liner axis scale setup.

This is a union type structure. For this structure to be valid, only one of the attributes can be defined.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(step_count: nil, step_size: nil) ⇒ AxisLinearScaleProperty

Returns a new instance of AxisLinearScaleProperty.

Parameters:

  • step_count (Numeric, nil) (defaults to: nil)

    The step count setup of a linear axis.

  • step_size (Numeric, nil) (defaults to: nil)

    The step size setup of a linear axis.



1759
1760
1761
1762
1763
1764
# File 'quick_sight/cfn_analysis.rb', line 1759

def initialize(step_count: nil, step_size: nil)
  @step_count = step_count
  Jsii::Type.check_type(@step_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "stepCount") unless @step_count.nil?
  @step_size = step_size
  Jsii::Type.check_type(@step_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "stepSize") unless @step_size.nil?
end

Instance Attribute Details

#step_countNumeric? (readonly)

The step count setup of a linear axis.



1770
1771
1772
# File 'quick_sight/cfn_analysis.rb', line 1770

def step_count
  @step_count
end

#step_sizeNumeric? (readonly)

The step size setup of a linear axis.



1775
1776
1777
# File 'quick_sight/cfn_analysis.rb', line 1775

def step_size
  @step_size
end

Class Method Details

.jsii_propertiesObject



1777
1778
1779
1780
1781
1782
# File 'quick_sight/cfn_analysis.rb', line 1777

def self.jsii_properties
  {
    :step_count => "stepCount",
    :step_size => "stepSize",
  }
end

Instance Method Details

#to_jsiiObject



1784
1785
1786
1787
1788
1789
1790
1791
# File 'quick_sight/cfn_analysis.rb', line 1784

def to_jsii
  result = {}
  result.merge!({
    "stepCount" => @step_count,
    "stepSize" => @step_size,
  })
  result.compact
end