Class Server

java.lang.Object
com.mailosaur.models.Server

public class Server extends Object
Mailosaur virtual SMTP/SMS server.
  • Constructor Details

    • Server

      public Server()
  • Method Details

    • id

      public String id()
      Gets the unique identifier of the server.
      Returns:
      The server ID.
    • name

      public String name()
      Gets the name of the server.
      Returns:
      The name of the server.
    • withName

      public Server withName(String name)
      Sets the name of the server.
      Parameters:
      name - The name of the server.
      Returns:
      the Server object itself.
    • users

      public List<String> users()
      Gets the IDs of users who have access to the server (if it is restricted).
      Returns:
      The IDs of users who have access to the server (if it is restricted).
    • withUsers

      public Server withUsers(List<String> users)
      Sets the IDs of users who have access to the server (if it is restricted).
      Parameters:
      users - The IDs of users who have access to the server (if it is restricted).
      Returns:
      the Server object itself.
    • messages

      public Integer messages()
      Gets the number of messages currently in the server.
      Returns:
      The number of messages currently in the server.