Package com.mailosaur.models
Class Server
java.lang.Object
com.mailosaur.models.Server
Mailosaur virtual SMTP/SMS server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionid()Gets the unique identifier of the server.messages()Gets the number of messages currently in the server.name()Gets the name of the server.users()Gets the IDs of users who have access to the server (if it is restricted).Sets the name of the server.Sets the IDs of users who have access to the server (if it is restricted).
-
Constructor Details
-
Server
public Server()
-
-
Method Details
-
id
Gets the unique identifier of the server.- Returns:
- The server ID.
-
name
Gets the name of the server.- Returns:
- The name of the server.
-
withName
Sets the name of the server.- Parameters:
name- The name of the server.- Returns:
- the Server object itself.
-
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
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
Gets the number of messages currently in the server.- Returns:
- The number of messages currently in the server.
-