Class: AWSCDK::CustomerProfiles::CfnDomainObjectType::DomainObjectTypeFieldProperty

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

Overview

Represents a field in a DomainObjectType.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source:, target:, content_type: nil, feature_type: nil) ⇒ DomainObjectTypeFieldProperty

Returns a new instance of DomainObjectTypeFieldProperty.

Parameters:

  • source (String)

    The source field name.

  • target (String)

    The target field name.

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

    The content type of the field.

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

    The feature type of the field.



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

#sourceString (readonly)

The source field name.



601
602
603
# File 'customer_profiles/cfn_domain_object_type.rb', line 601

def source
  @source
end

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



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_jsiiObject



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