Class: AWSCDK::Pinpoint::CfnSegment::AttributeDimensionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pinpoint/cfn_segment.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute_type: nil, values: nil) ⇒ AttributeDimensionProperty

Returns a new instance of AttributeDimensionProperty.

Parameters:

  • attribute_type (String, nil) (defaults to: nil)
  • values (Array<String>, nil) (defaults to: nil)


577
578
579
580
581
582
# File 'pinpoint/cfn_segment.rb', line 577

def initialize(attribute_type: nil, values: nil)
  @attribute_type = attribute_type
  Jsii::Type.check_type(@attribute_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attributeType") unless @attribute_type.nil?
  @values = values
  Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values") unless @values.nil?
end

Instance Attribute Details

#attribute_typeString? (readonly)



586
587
588
# File 'pinpoint/cfn_segment.rb', line 586

def attribute_type
  @attribute_type
end

#valuesArray<String>? (readonly)



589
590
591
# File 'pinpoint/cfn_segment.rb', line 589

def values
  @values
end

Class Method Details

.jsii_propertiesObject



591
592
593
594
595
596
# File 'pinpoint/cfn_segment.rb', line 591

def self.jsii_properties
  {
    :attribute_type => "attributeType",
    :values => "values",
  }
end

Instance Method Details

#to_jsiiObject



598
599
600
601
602
603
604
605
# File 'pinpoint/cfn_segment.rb', line 598

def to_jsii
  result = {}
  result.merge!({
    "attributeType" => @attribute_type,
    "values" => @values,
  })
  result.compact
end