Class DeviceSession.Builder

    • Field Detail

      • sessionId

        protected final java.lang.String sessionId
      • ipAddress

        protected java.lang.String ipAddress
      • country

        protected java.lang.String country
      • created

        protected java.util.Date created
      • updated

        protected java.util.Date updated
    • Constructor Detail

      • Builder

        protected Builder​(java.lang.String sessionId)
    • Method Detail

      • withIpAddress

        public DeviceSession.Builder withIpAddress​(java.lang.String ipAddress)
        Set value for optional field.
        Parameters:
        ipAddress - The IP address of the last activity from this session.
        Returns:
        this builder
      • withCountry

        public DeviceSession.Builder withCountry​(java.lang.String country)
        Set value for optional field.
        Parameters:
        country - The country from which the last activity from this session was made.
        Returns:
        this builder
      • withCreated

        public DeviceSession.Builder withCreated​(java.util.Date created)
        Set value for optional field.
        Parameters:
        created - The time this session was created.
        Returns:
        this builder
      • withUpdated

        public DeviceSession.Builder withUpdated​(java.util.Date updated)
        Set value for optional field.
        Parameters:
        updated - The time of the last activity from this session.
        Returns:
        this builder