java.lang.Object
com.azure.resourcemanager.customerinsights.fluent.models.LinkDefinition

public final class LinkDefinition extends Object
The definition of Link.
  • Constructor Details

    • LinkDefinition

      public LinkDefinition()
      Creates an instance of LinkDefinition class.
  • Method Details

    • tenantId

      public String tenantId()
      Get the tenantId property: The hub name.
      Returns:
      the tenantId value.
    • linkName

      public String linkName()
      Get the linkName property: The link name.
      Returns:
      the linkName value.
    • sourceEntityType

      public EntityType sourceEntityType()
      Get the sourceEntityType property: Type of source entity.
      Returns:
      the sourceEntityType value.
    • withSourceEntityType

      public LinkDefinition withSourceEntityType(EntityType sourceEntityType)
      Set the sourceEntityType property: Type of source entity.
      Parameters:
      sourceEntityType - the sourceEntityType value to set.
      Returns:
      the LinkDefinition object itself.
    • targetEntityType

      public EntityType targetEntityType()
      Get the targetEntityType property: Type of target entity.
      Returns:
      the targetEntityType value.
    • withTargetEntityType

      public LinkDefinition withTargetEntityType(EntityType targetEntityType)
      Set the targetEntityType property: Type of target entity.
      Parameters:
      targetEntityType - the targetEntityType value to set.
      Returns:
      the LinkDefinition object itself.
    • sourceEntityTypeName

      public String sourceEntityTypeName()
      Get the sourceEntityTypeName property: Name of the source Entity Type.
      Returns:
      the sourceEntityTypeName value.
    • withSourceEntityTypeName

      public LinkDefinition withSourceEntityTypeName(String sourceEntityTypeName)
      Set the sourceEntityTypeName property: Name of the source Entity Type.
      Parameters:
      sourceEntityTypeName - the sourceEntityTypeName value to set.
      Returns:
      the LinkDefinition object itself.
    • targetEntityTypeName

      public String targetEntityTypeName()
      Get the targetEntityTypeName property: Name of the target Entity Type.
      Returns:
      the targetEntityTypeName value.
    • withTargetEntityTypeName

      public LinkDefinition withTargetEntityTypeName(String targetEntityTypeName)
      Set the targetEntityTypeName property: Name of the target Entity Type.
      Parameters:
      targetEntityTypeName - the targetEntityTypeName value to set.
      Returns:
      the LinkDefinition object itself.
    • displayName

      public Map<String,String> displayName()
      Get the displayName property: Localized display name for the Link.
      Returns:
      the displayName value.
    • withDisplayName

      public LinkDefinition withDisplayName(Map<String,String> displayName)
      Set the displayName property: Localized display name for the Link.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the LinkDefinition object itself.
    • description

      public Map<String,String> description()
      Get the description property: Localized descriptions for the Link.
      Returns:
      the description value.
    • withDescription

      public LinkDefinition withDescription(Map<String,String> description)
      Set the description property: Localized descriptions for the Link.
      Parameters:
      description - the description value to set.
      Returns:
      the LinkDefinition object itself.
    • mappings

      public List<TypePropertiesMapping> mappings()
      Get the mappings property: The set of properties mappings between the source and target Types.
      Returns:
      the mappings value.
    • withMappings

      public LinkDefinition withMappings(List<TypePropertiesMapping> mappings)
      Set the mappings property: The set of properties mappings between the source and target Types.
      Parameters:
      mappings - the mappings value to set.
      Returns:
      the LinkDefinition object itself.
    • participantPropertyReferences

      public List<ParticipantPropertyReference> participantPropertyReferences()
      Get the participantPropertyReferences property: The properties that represent the participating profile.
      Returns:
      the participantPropertyReferences value.
    • withParticipantPropertyReferences

      public LinkDefinition withParticipantPropertyReferences(List<ParticipantPropertyReference> participantPropertyReferences)
      Set the participantPropertyReferences property: The properties that represent the participating profile.
      Parameters:
      participantPropertyReferences - the participantPropertyReferences value to set.
      Returns:
      the LinkDefinition object itself.
    • provisioningState

      public ProvisioningStates provisioningState()
      Get the provisioningState property: Provisioning state.
      Returns:
      the provisioningState value.
    • referenceOnly

      public Boolean referenceOnly()
      Get the referenceOnly property: Indicating whether the link is reference only link. This flag is ignored if the Mappings are defined. If the mappings are not defined and it is set to true, links processing will not create or update profiles.
      Returns:
      the referenceOnly value.
    • withReferenceOnly

      public LinkDefinition withReferenceOnly(Boolean referenceOnly)
      Set the referenceOnly property: Indicating whether the link is reference only link. This flag is ignored if the Mappings are defined. If the mappings are not defined and it is set to true, links processing will not create or update profiles.
      Parameters:
      referenceOnly - the referenceOnly value to set.
      Returns:
      the LinkDefinition object itself.
    • operationType

      public InstanceOperationType operationType()
      Get the operationType property: Determines whether this link is supposed to create or delete instances if Link is NOT Reference Only.
      Returns:
      the operationType value.
    • withOperationType

      public LinkDefinition withOperationType(InstanceOperationType operationType)
      Set the operationType property: Determines whether this link is supposed to create or delete instances if Link is NOT Reference Only.
      Parameters:
      operationType - the operationType value to set.
      Returns:
      the LinkDefinition object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.