Class Session.Builder

  • Enclosing class:
    Session

    public static class Session.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Session.Builder id​(String id)
        A unique ID for the session.

        This ID is immutable on creation.

        Parameters:
        id - the value to set
        Returns:
        this builder
      • displayName

        public Session.Builder displayName​(String displayName)
        A user-friendly name.

        Does not have to be unique, and it’s changeable. Avoid entering confidential information.

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • description

        public Session.Builder description​(String description)
        A description of the session.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • welcomeMessage

        public Session.Builder welcomeMessage​(String welcomeMessage)
        A greeting message that the you receive when you start of a session.
        Parameters:
        welcomeMessage - the value to set
        Returns:
        this builder
      • timeCreated

        public Session.Builder timeCreated​(Date timeCreated)
        The date and time that the session started in the format of an RFC3339 datetime string.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public Session.Builder timeUpdated​(Date timeUpdated)
        The date and time that the session was last updated in the format of an RFC3339 datetime string.
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder