Class RelationshipDefinition

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

public final class RelationshipDefinition extends Object
The definition of Relationship.
  • Constructor Details

    • RelationshipDefinition

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

    • cardinality

      public CardinalityTypes cardinality()
      Get the cardinality property: The Relationship Cardinality.
      Returns:
      the cardinality value.
    • withCardinality

      public RelationshipDefinition withCardinality(CardinalityTypes cardinality)
      Set the cardinality property: The Relationship Cardinality.
      Parameters:
      cardinality - the cardinality value to set.
      Returns:
      the RelationshipDefinition object itself.
    • displayName

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

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

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

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

      public OffsetDateTime expiryDateTimeUtc()
      Get the expiryDateTimeUtc property: The expiry date time in UTC.
      Returns:
      the expiryDateTimeUtc value.
    • withExpiryDateTimeUtc

      public RelationshipDefinition withExpiryDateTimeUtc(OffsetDateTime expiryDateTimeUtc)
      Set the expiryDateTimeUtc property: The expiry date time in UTC.
      Parameters:
      expiryDateTimeUtc - the expiryDateTimeUtc value to set.
      Returns:
      the RelationshipDefinition object itself.
    • fields

      public List<PropertyDefinition> fields()
      Get the fields property: The properties of the Relationship.
      Returns:
      the fields value.
    • withFields

      public RelationshipDefinition withFields(List<PropertyDefinition> fields)
      Set the fields property: The properties of the Relationship.
      Parameters:
      fields - the fields value to set.
      Returns:
      the RelationshipDefinition object itself.
    • lookupMappings

      public List<RelationshipTypeMapping> lookupMappings()
      Get the lookupMappings property: Optional property to be used to map fields in profile to their strong ids in related profile.
      Returns:
      the lookupMappings value.
    • withLookupMappings

      public RelationshipDefinition withLookupMappings(List<RelationshipTypeMapping> lookupMappings)
      Set the lookupMappings property: Optional property to be used to map fields in profile to their strong ids in related profile.
      Parameters:
      lookupMappings - the lookupMappings value to set.
      Returns:
      the RelationshipDefinition object itself.
    • profileType

      public String profileType()
      Get the profileType property: Profile type.
      Returns:
      the profileType value.
    • withProfileType

      public RelationshipDefinition withProfileType(String profileType)
      Set the profileType property: Profile type.
      Parameters:
      profileType - the profileType value to set.
      Returns:
      the RelationshipDefinition object itself.
    • provisioningState

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

      public String relationshipName()
      Get the relationshipName property: The Relationship name.
      Returns:
      the relationshipName value.
    • relatedProfileType

      public String relatedProfileType()
      Get the relatedProfileType property: Related profile being referenced.
      Returns:
      the relatedProfileType value.
    • withRelatedProfileType

      public RelationshipDefinition withRelatedProfileType(String relatedProfileType)
      Set the relatedProfileType property: Related profile being referenced.
      Parameters:
      relatedProfileType - the relatedProfileType value to set.
      Returns:
      the RelationshipDefinition object itself.
    • relationshipGuidId

      public String relationshipGuidId()
      Get the relationshipGuidId property: The relationship guid id.
      Returns:
      the relationshipGuidId value.
    • tenantId

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

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