# NOTE: This class is auto generated by OpenAPI Generator (
# Do not edit the class manually.

defmodule MailSlurpAPI.Model.CreateInboxDto do
  @moduledoc """
  Options for creating an inbox. An inbox has a real email address that can send and receive emails. Inboxes can be permanent or expire at a given time. Inboxes are either `SMTP` or `HTTP` mailboxes. `SMTP` inboxes are processed by a mail server running at `` while `HTTP` inboxes are processed by AWS SES. Inboxes can use a custom email address (by verifying your own domain) or a randomly assigned email ending in either `` or (if `useDomainPool` is enabled) ending in a similar domain such as `` (selected at random). 

  @derive [Poison.Encoder]
  defstruct [

  @type t :: %__MODULE__{
    :"emailAddress" => String.t | nil,
    :"name" => String.t | nil,
    :"description" => String.t | nil,
    :"useDomainPool" => boolean() | nil,
    :"tags" => [String.t] | nil,
    :"expiresAt" => DateTime.t | nil,
    :"favourite" => boolean() | nil,
    :"expiresIn" => integer() | nil,
    :"allowTeamAccess" => boolean() | nil,
    :"inboxType" => String.t | nil

defimpl Poison.Decoder, for: MailSlurpAPI.Model.CreateInboxDto do
  def decode(value, _options) do