Class: AWSCDK::CustomerProfiles::CfnObjectType::ObjectTypeFieldProperty

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

Overview

Represents a field in a ProfileObjectType.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content_type: nil, source: nil, target: nil) ⇒ ObjectTypeFieldProperty

Returns a new instance of ObjectTypeFieldProperty.

Parameters:

  • content_type (String, nil) (defaults to: nil)

    The content type of the field.

  • source (String, nil) (defaults to: nil)

    A field of a ProfileObject.

  • target (String, nil) (defaults to: nil)

    The location of the data in the standard ProfileObject model.



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_typeString? (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

#sourceString? (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

#targetString? (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_propertiesObject



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_jsiiObject



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