Class: AWSCDK::CustomerProfiles::CfnSegmentDefinition::AddressDimensionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
customer_profiles/cfn_segment_definition.rb

Overview

Object that segments on Customer Profile's address object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(city: nil, country: nil, county: nil, postal_code: nil, province: nil, state: nil) ⇒ AddressDimensionProperty

Returns a new instance of AddressDimensionProperty.

Parameters:



635
636
637
638
639
640
641
642
643
644
645
646
647
648
# File 'customer_profiles/cfn_segment_definition.rb', line 635

def initialize(city: nil, country: nil, county: nil, postal_code: nil, province: nil, state: nil)
  @city = city.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnSegmentDefinition::ProfileDimensionProperty.new(**city.transform_keys(&:to_sym)) : city
  Jsii::Type.check_type(@city, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmblNlZ21lbnREZWZpbml0aW9uLlByb2ZpbGVEaW1lbnNpb25Qcm9wZXJ0eSJ9XX19")), "city") unless @city.nil?
  @country = country.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnSegmentDefinition::ProfileDimensionProperty.new(**country.transform_keys(&:to_sym)) : country
  Jsii::Type.check_type(@country, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmblNlZ21lbnREZWZpbml0aW9uLlByb2ZpbGVEaW1lbnNpb25Qcm9wZXJ0eSJ9XX19")), "country") unless @country.nil?
  @county = county.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnSegmentDefinition::ProfileDimensionProperty.new(**county.transform_keys(&:to_sym)) : county
  Jsii::Type.check_type(@county, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmblNlZ21lbnREZWZpbml0aW9uLlByb2ZpbGVEaW1lbnNpb25Qcm9wZXJ0eSJ9XX19")), "county") unless @county.nil?
  @postal_code = postal_code.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnSegmentDefinition::ProfileDimensionProperty.new(**postal_code.transform_keys(&:to_sym)) : postal_code
  Jsii::Type.check_type(@postal_code, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmblNlZ21lbnREZWZpbml0aW9uLlByb2ZpbGVEaW1lbnNpb25Qcm9wZXJ0eSJ9XX19")), "postalCode") unless @postal_code.nil?
  @province = province.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnSegmentDefinition::ProfileDimensionProperty.new(**province.transform_keys(&:to_sym)) : province
  Jsii::Type.check_type(@province, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmblNlZ21lbnREZWZpbml0aW9uLlByb2ZpbGVEaW1lbnNpb25Qcm9wZXJ0eSJ9XX19")), "province") unless @province.nil?
  @state = state.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnSegmentDefinition::ProfileDimensionProperty.new(**state.transform_keys(&:to_sym)) : state
  Jsii::Type.check_type(@state, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmblNlZ21lbnREZWZpbml0aW9uLlByb2ZpbGVEaW1lbnNpb25Qcm9wZXJ0eSJ9XX19")), "state") unless @state.nil?
end

Instance Attribute Details

#postal_codeAWSCDK::IResolvable, ... (readonly)

The postal code belonging to the address.



669
670
671
# File 'customer_profiles/cfn_segment_definition.rb', line 669

def postal_code
  @postal_code
end

Class Method Details

.jsii_propertiesObject



681
682
683
684
685
686
687
688
689
690
# File 'customer_profiles/cfn_segment_definition.rb', line 681

def self.jsii_properties
  {
    :city => "city",
    :country => "country",
    :county => "county",
    :postal_code => "postalCode",
    :province => "province",
    :state => "state",
  }
end

Instance Method Details

#to_jsiiObject



692
693
694
695
696
697
698
699
700
701
702
703
# File 'customer_profiles/cfn_segment_definition.rb', line 692

def to_jsii
  result = {}
  result.merge!({
    "city" => @city,
    "country" => @country,
    "county" => @county,
    "postalCode" => @postal_code,
    "province" => @province,
    "state" => @state,
  })
  result.compact
end