Class DataAttribute


  • public final class DataAttribute
    extends java.lang.Object
    • Method Detail

      • getType

        public java.lang.String getType()
        Returns:
        Value is data_attribute.
      • getId

        public java.util.Optional<java.lang.Integer> getId()
        Returns:
        The unique identifier for the data attribute which is given by Intercom. Only available for custom attributes.
      • getModel

        public java.util.Optional<DataAttribute.Model> getModel()
        Returns:
        Value is contact for user/lead attributes and company for company attributes.
      • getName

        public java.lang.String getName()
        Returns:
        Name of the attribute.
      • getFullName

        public java.lang.String getFullName()
        Returns:
        Full name of the attribute. Should match the name unless it's a nested attribute. We can split full_name on . to access nested user object values.
      • getLabel

        public java.lang.String getLabel()
        Returns:
        Readable name of the attribute (i.e. name you see in the UI)
      • getDescription

        public java.util.Optional<java.lang.String> getDescription()
        Returns:
        Readable description of the attribute.
      • getOptions

        public java.util.Optional<java.util.List<java.lang.String>> getOptions()
        Returns:
        List of predefined options for attribute value.
      • getApiWritable

        public java.util.Optional<java.lang.Boolean> getApiWritable()
        Returns:
        Can this attribute be updated through API
      • getMessengerWritable

        public java.util.Optional<java.lang.Boolean> getMessengerWritable()
        Returns:
        Can this attribute be updated by the Messenger
      • getUiWritable

        public java.util.Optional<java.lang.Boolean> getUiWritable()
        Returns:
        Can this attribute be updated in the UI
      • getCustom

        public java.util.Optional<java.lang.Boolean> getCustom()
        Returns:
        Set to true if this is a CDA
      • getArchived

        public java.util.Optional<java.lang.Boolean> getArchived()
        Returns:
        Is this attribute archived. (Only applicable to CDAs)
      • getCreatedAt

        public java.util.Optional<java.lang.Integer> getCreatedAt()
        Returns:
        The time the attribute was created as a UTC Unix timestamp
      • getUpdatedAt

        public java.util.Optional<java.lang.Integer> getUpdatedAt()
        Returns:
        The time the attribute was last updated as a UTC Unix timestamp
      • getAdminId

        public java.util.Optional<java.lang.String> getAdminId()
        Returns:
        Teammate who created the attribute. Only applicable to CDAs
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object