Class: AWSCDK::Pinpoint::CfnSegment::AttributeDimensionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pinpoint::CfnSegment::AttributeDimensionProperty
- Defined in:
- pinpoint/cfn_segment.rb
Overview
Instance Attribute Summary collapse
- #attribute_type ⇒ String? readonly
- #values ⇒ Array<String>? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attribute_type: nil, values: nil) ⇒ AttributeDimensionProperty
constructor
A new instance of AttributeDimensionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(attribute_type: nil, values: nil) ⇒ AttributeDimensionProperty
Returns a new instance of AttributeDimensionProperty.
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_type ⇒ String? (readonly)
586 587 588 |
# File 'pinpoint/cfn_segment.rb', line 586 def attribute_type @attribute_type end |
#values ⇒ Array<String>? (readonly)
589 590 591 |
# File 'pinpoint/cfn_segment.rb', line 589 def values @values end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |