Class: AWSCDK::CustomerProfiles::CfnDomainObjectType::DomainObjectTypeFieldProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CustomerProfiles::CfnDomainObjectType::DomainObjectTypeFieldProperty
- Defined in:
- customer_profiles/cfn_domain_object_type.rb
Overview
Represents a field in a DomainObjectType.
Instance Attribute Summary collapse
-
#content_type ⇒ String?
readonly
The content type of the field.
-
#feature_type ⇒ String?
readonly
The feature type of the field.
-
#source ⇒ String
readonly
The source field name.
-
#target ⇒ String
readonly
The target field name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(source:, target:, content_type: nil, feature_type: nil) ⇒ DomainObjectTypeFieldProperty
constructor
A new instance of DomainObjectTypeFieldProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(source:, target:, content_type: nil, feature_type: nil) ⇒ DomainObjectTypeFieldProperty
Returns a new instance of DomainObjectTypeFieldProperty.
586 587 588 589 590 591 592 593 594 595 |
# File 'customer_profiles/cfn_domain_object_type.rb', line 586 def initialize(source:, target:, content_type: nil, feature_type: nil) @source = source Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "source") @target = target Jsii::Type.check_type(@target, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "target") @content_type = content_type Jsii::Type.check_type(@content_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contentType") unless @content_type.nil? @feature_type = feature_type Jsii::Type.check_type(@feature_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "featureType") unless @feature_type.nil? end |
Instance Attribute Details
#content_type ⇒ String? (readonly)
The content type of the field.
611 612 613 |
# File 'customer_profiles/cfn_domain_object_type.rb', line 611 def content_type @content_type end |
#feature_type ⇒ String? (readonly)
The feature type of the field.
616 617 618 |
# File 'customer_profiles/cfn_domain_object_type.rb', line 616 def feature_type @feature_type end |
#source ⇒ String (readonly)
The source field name.
601 602 603 |
# File 'customer_profiles/cfn_domain_object_type.rb', line 601 def source @source end |
#target ⇒ String (readonly)
The target field name.
606 607 608 |
# File 'customer_profiles/cfn_domain_object_type.rb', line 606 def target @target end |
Class Method Details
.jsii_properties ⇒ Object
618 619 620 621 622 623 624 625 |
# File 'customer_profiles/cfn_domain_object_type.rb', line 618 def self.jsii_properties { :source => "source", :target => "target", :content_type => "contentType", :feature_type => "featureType", } end |
Instance Method Details
#to_jsii ⇒ Object
627 628 629 630 631 632 633 634 635 636 |
# File 'customer_profiles/cfn_domain_object_type.rb', line 627 def to_jsii result = {} result.merge!({ "source" => @source, "target" => @target, "contentType" => @content_type, "featureType" => @feature_type, }) result.compact end |