# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional
from datetime import datetime

from ..._models import BaseModel

__all__ = ["SubdomainCreateResponse"]


class SubdomainCreateResponse(BaseModel):
    enabled: bool
    """Whether Email Sending is enabled on this subdomain."""

    name: str
    """The subdomain domain name."""

    tag: str
    """Sending subdomain identifier."""

    created: Optional[datetime] = None
    """The date and time the destination address has been created."""

    dkim_selector: Optional[str] = None
    """The DKIM selector used for email signing."""

    modified: Optional[datetime] = None
    """The date and time the destination address was last modified."""

    preview_enabled: Optional[bool] = None
    """Whether sent messages from this subdomain can be previewed in the activity log."""

    return_path_domain: Optional[str] = None
    """The return-path domain used for bounce handling."""
