-
public final class InboxRepresentation of a MailSlurp inbox. An inbox has an ID and a real email address. Emails can be sent to or from this email address. Inboxes are either
SMTPorHTTPmailboxes. The default,HTTPinboxes, use AWS SES to process emails and are best suited as test email accounts.SMTPinboxes use a custom mail server atmx.mailslurp.comand are best used for public facing email addresses. Use theEmailControlleror theInboxControllermethods to send and receive emails and attachments. Inboxes may have a description, name, and tags for display purposes. You can also favourite an inbox for easier searching. Inboxes can be private or allow team access. Team access enabled inboxes can be seen by other members of an organization.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumInbox.InboxTypeType of inbox - either HTTP (default) or SMTP. HTTP inboxes are great for testing. SMTP inboxes are processed by a custom SMTP mail server and are better for public facing inboxes that receive emails from Gmail and other large providers. If using a custom domain the domain type must match the inbox type. Use an SMTP domain for SMTP inboxes that includes an MX record pointing to
10 mx.mailslurp.comfor inbound messages. Values: hTTPINBOX,sMTPINBOX
-
Field Summary
Fields Modifier and Type Field Description private final OffsetDateTimecreatedAtprivate final Stringdescriptionprivate final StringemailAddressprivate final StringexpiresAtprivate final Booleanfavouriteprivate final UUIDidprivate final Inbox.InboxTypeinboxTypeprivate final Stringnameprivate final BooleanreadOnlyprivate final List<String>tagsprivate final BooleanteamAccessprivate final UUIDuserId
-
Method Summary
Modifier and Type Method Description final OffsetDateTimegetCreatedAt()final StringgetDescription()final StringgetEmailAddress()final StringgetExpiresAt()final BooleangetFavourite()final UUIDgetId()final Inbox.InboxTypegetInboxType()final StringgetName()final BooleangetReadOnly()final List<String>getTags()final BooleangetTeamAccess()final UUIDgetUserId()-
-
Constructor Detail
-
Inbox
Inbox(OffsetDateTime createdAt, String description, String emailAddress, String expiresAt, Boolean favourite, UUID id, Inbox.InboxType inboxType, String name, Boolean readOnly, List<String> tags, Boolean teamAccess, UUID userId)
- Parameters:
createdAt- When the inbox was created.description- Description of an inbox for labelling and searching purposesemailAddress- The inbox's email address.expiresAt- Inbox expiration time.favourite- Is the inbox a favorite inbox.id- ID of the inbox.inboxType- Type of inbox - either HTTP (default) or SMTP.name- Name of the inbox and used as the sender name when sending emails .readOnly- Is the inbox readOnly for the caller.tags- Tags that inbox has been tagged with.teamAccess- Does inbox permit team access for organization team members.userId- ID of user that inbox belongs to
-
-
Method Detail
-
getCreatedAt
final OffsetDateTime getCreatedAt()
-
getDescription
final String getDescription()
-
getEmailAddress
final String getEmailAddress()
-
getExpiresAt
final String getExpiresAt()
-
getFavourite
final Boolean getFavourite()
-
getInboxType
final Inbox.InboxType getInboxType()
-
getReadOnly
final Boolean getReadOnly()
-
getTeamAccess
final Boolean getTeamAccess()
-
-
-
-