Class: AWSCDK::CustomerProfiles::CfnObjectType::ObjectTypeFieldProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CustomerProfiles::CfnObjectType::ObjectTypeFieldProperty
- Defined in:
- customer_profiles/cfn_object_type.rb
Overview
Represents a field in a ProfileObjectType.
Instance Attribute Summary collapse
-
#content_type ⇒ String?
readonly
The content type of the field.
-
#source ⇒ String?
readonly
A field of a ProfileObject.
-
#target ⇒ String?
readonly
The location of the data in the standard ProfileObject model.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(content_type: nil, source: nil, target: nil) ⇒ ObjectTypeFieldProperty
constructor
A new instance of ObjectTypeFieldProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(content_type: nil, source: nil, target: nil) ⇒ ObjectTypeFieldProperty
Returns a new instance of ObjectTypeFieldProperty.
770 771 772 773 774 775 776 777 |
# File 'customer_profiles/cfn_object_type.rb', line 770 def initialize(content_type: nil, source: nil, target: nil) @content_type = content_type Jsii::Type.check_type(@content_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contentType") unless @content_type.nil? @source = source Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "source") unless @source.nil? @target = target Jsii::Type.check_type(@target, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "target") unless @target.nil? end |
Instance Attribute Details
#content_type ⇒ String? (readonly)
The content type of the field.
Used for determining equality when searching.
785 786 787 |
# File 'customer_profiles/cfn_object_type.rb', line 785 def content_type @content_type end |
#source ⇒ String? (readonly)
A field of a ProfileObject.
For example: _source.FirstName, where “_source” is a ProfileObjectType of a Zendesk user and “FirstName” is a field in that ObjectType.
792 793 794 |
# File 'customer_profiles/cfn_object_type.rb', line 792 def source @source end |
#target ⇒ String? (readonly)
The location of the data in the standard ProfileObject model.
For example: _profile.Address.PostalCode.
799 800 801 |
# File 'customer_profiles/cfn_object_type.rb', line 799 def target @target end |
Class Method Details
.jsii_properties ⇒ Object
801 802 803 804 805 806 807 |
# File 'customer_profiles/cfn_object_type.rb', line 801 def self.jsii_properties { :content_type => "contentType", :source => "source", :target => "target", } end |
Instance Method Details
#to_jsii ⇒ Object
809 810 811 812 813 814 815 816 817 |
# File 'customer_profiles/cfn_object_type.rb', line 809 def to_jsii result = {} result.merge!({ "contentType" => @content_type, "source" => @source, "target" => @target, }) result.compact end |