Class: AWSCDK::QuickSight::CfnAnalysis::FieldTooltipItemProperty

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

Overview

The tooltip item for the fields.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field_id:, label: nil, tooltip_target: nil, visibility: nil) ⇒ FieldTooltipItemProperty

Returns a new instance of FieldTooltipItemProperty.

Parameters:

  • field_id (String)

    The unique ID of the field that is targeted by the tooltip.

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

    The label of the tooltip item.

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

    Determines the target of the field tooltip item in a combo chart visual.

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

    The visibility of the tooltip item.



9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
# File 'quick_sight/cfn_analysis.rb', line 9240

def initialize(field_id:, label: nil, tooltip_target: nil, visibility: nil)
  @field_id = field_id
  Jsii::Type.check_type(@field_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldId")
  @label = label
  Jsii::Type.check_type(@label, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "label") unless @label.nil?
  @tooltip_target = tooltip_target
  Jsii::Type.check_type(@tooltip_target, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tooltipTarget") unless @tooltip_target.nil?
  @visibility = visibility
  Jsii::Type.check_type(@visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "visibility") unless @visibility.nil?
end

Instance Attribute Details

#field_idString (readonly)

The unique ID of the field that is targeted by the tooltip.



9255
9256
9257
# File 'quick_sight/cfn_analysis.rb', line 9255

def field_id
  @field_id
end

#labelString? (readonly)

The label of the tooltip item.



9260
9261
9262
# File 'quick_sight/cfn_analysis.rb', line 9260

def label
  @label
end

#tooltip_targetString? (readonly)

Determines the target of the field tooltip item in a combo chart visual.



9265
9266
9267
# File 'quick_sight/cfn_analysis.rb', line 9265

def tooltip_target
  @tooltip_target
end

#visibilityString? (readonly)

The visibility of the tooltip item.



9270
9271
9272
# File 'quick_sight/cfn_analysis.rb', line 9270

def visibility
  @visibility
end

Class Method Details

.jsii_propertiesObject



9272
9273
9274
9275
9276
9277
9278
9279
# File 'quick_sight/cfn_analysis.rb', line 9272

def self.jsii_properties
  {
    :field_id => "fieldId",
    :label => "label",
    :tooltip_target => "tooltipTarget",
    :visibility => "visibility",
  }
end

Instance Method Details

#to_jsiiObject



9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
# File 'quick_sight/cfn_analysis.rb', line 9281

def to_jsii
  result = {}
  result.merge!({
    "fieldId" => @field_id,
    "label" => @label,
    "tooltipTarget" => @tooltip_target,
    "visibility" => @visibility,
  })
  result.compact
end