Class: AWSCDK::CustomerProfiles::CfnSegmentDefinition::AddressDimensionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CustomerProfiles::CfnSegmentDefinition::AddressDimensionProperty
- Defined in:
- customer_profiles/cfn_segment_definition.rb
Overview
Object that segments on Customer Profile's address object.
Instance Attribute Summary collapse
-
#city ⇒ AWSCDK::IResolvable, ...
readonly
The city belonging to the address.
-
#country ⇒ AWSCDK::IResolvable, ...
readonly
The country belonging to the address.
-
#county ⇒ AWSCDK::IResolvable, ...
readonly
The county belonging to the address.
-
#postal_code ⇒ AWSCDK::IResolvable, ...
readonly
The postal code belonging to the address.
-
#province ⇒ AWSCDK::IResolvable, ...
readonly
The province belonging to the address.
-
#state ⇒ AWSCDK::IResolvable, ...
readonly
The state belonging to the address.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(city: nil, country: nil, county: nil, postal_code: nil, province: nil, state: nil) ⇒ AddressDimensionProperty
constructor
A new instance of AddressDimensionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(city: nil, country: nil, county: nil, postal_code: nil, province: nil, state: nil) ⇒ AddressDimensionProperty
Returns a new instance of AddressDimensionProperty.
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
#city ⇒ AWSCDK::IResolvable, ... (readonly)
The city belonging to the address.
654 655 656 |
# File 'customer_profiles/cfn_segment_definition.rb', line 654 def city @city end |
#country ⇒ AWSCDK::IResolvable, ... (readonly)
The country belonging to the address.
659 660 661 |
# File 'customer_profiles/cfn_segment_definition.rb', line 659 def country @country end |
#county ⇒ AWSCDK::IResolvable, ... (readonly)
The county belonging to the address.
664 665 666 |
# File 'customer_profiles/cfn_segment_definition.rb', line 664 def county @county end |
#postal_code ⇒ AWSCDK::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 |
#province ⇒ AWSCDK::IResolvable, ... (readonly)
The province belonging to the address.
674 675 676 |
# File 'customer_profiles/cfn_segment_definition.rb', line 674 def province @province end |
#state ⇒ AWSCDK::IResolvable, ... (readonly)
The state belonging to the address.
679 680 681 |
# File 'customer_profiles/cfn_segment_definition.rb', line 679 def state @state end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |