Module mailslurp_client.models.update_automated_inbox_placement_schedule_options

MailSlurp API

MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - Homepage - Get an API KEY - Generated SDK Clients - Examples repository # noqa: E501

The version of the OpenAPI document: 6.5.2 Contact: contact@mailslurp.dev Generated by: https://openapi-generator.tech

Classes

class UpdateAutomatedInboxPlacementScheduleOptions (name=None, interval_minutes=None, enabled=None, requested_segment=None, seedlist_profile=None, subject_template=None, text_body_template=None, html_body_template=None, local_vars_configuration=None)

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

UpdateAutomatedInboxPlacementScheduleOptions - a model defined in OpenAPI

Expand source code
class UpdateAutomatedInboxPlacementScheduleOptions(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    openapi_types = {
        'name': 'str',
        'interval_minutes': 'int',
        'enabled': 'bool',
        'requested_segment': 'str',
        'seedlist_profile': 'str',
        'subject_template': 'str',
        'text_body_template': 'str',
        'html_body_template': 'str'
    }

    attribute_map = {
        'name': 'name',
        'interval_minutes': 'intervalMinutes',
        'enabled': 'enabled',
        'requested_segment': 'requestedSegment',
        'seedlist_profile': 'seedlistProfile',
        'subject_template': 'subjectTemplate',
        'text_body_template': 'textBodyTemplate',
        'html_body_template': 'htmlBodyTemplate'
    }

    def __init__(self, name=None, interval_minutes=None, enabled=None, requested_segment=None, seedlist_profile=None, subject_template=None, text_body_template=None, html_body_template=None, local_vars_configuration=None):  # noqa: E501
        """UpdateAutomatedInboxPlacementScheduleOptions - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._name = None
        self._interval_minutes = None
        self._enabled = None
        self._requested_segment = None
        self._seedlist_profile = None
        self._subject_template = None
        self._text_body_template = None
        self._html_body_template = None
        self.discriminator = None

        self.name = name
        self.interval_minutes = interval_minutes
        self.enabled = enabled
        self.requested_segment = requested_segment
        self.seedlist_profile = seedlist_profile
        self.subject_template = subject_template
        self.text_body_template = text_body_template
        self.html_body_template = html_body_template

    @property
    def name(self):
        """Gets the name of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501


        :return: The name of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this UpdateAutomatedInboxPlacementScheduleOptions.


        :param name: The name of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
        :type: str
        """
        if (self.local_vars_configuration.client_side_validation and
                name is not None and len(name) > 255):
            raise ValueError("Invalid value for `name`, length must be less than or equal to `255`")  # noqa: E501
        if (self.local_vars_configuration.client_side_validation and
                name is not None and len(name) < 1):
            raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`")  # noqa: E501

        self._name = name

    @property
    def interval_minutes(self):
        """Gets the interval_minutes of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501


        :return: The interval_minutes of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
        :rtype: int
        """
        return self._interval_minutes

    @interval_minutes.setter
    def interval_minutes(self, interval_minutes):
        """Sets the interval_minutes of this UpdateAutomatedInboxPlacementScheduleOptions.


        :param interval_minutes: The interval_minutes of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
        :type: int
        """
        if (self.local_vars_configuration.client_side_validation and
                interval_minutes is not None and interval_minutes > 43200):  # noqa: E501
            raise ValueError("Invalid value for `interval_minutes`, must be a value less than or equal to `43200`")  # noqa: E501
        if (self.local_vars_configuration.client_side_validation and
                interval_minutes is not None and interval_minutes < 60):  # noqa: E501
            raise ValueError("Invalid value for `interval_minutes`, must be a value greater than or equal to `60`")  # noqa: E501

        self._interval_minutes = interval_minutes

    @property
    def enabled(self):
        """Gets the enabled of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501


        :return: The enabled of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
        :rtype: bool
        """
        return self._enabled

    @enabled.setter
    def enabled(self, enabled):
        """Sets the enabled of this UpdateAutomatedInboxPlacementScheduleOptions.


        :param enabled: The enabled of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
        :type: bool
        """

        self._enabled = enabled

    @property
    def requested_segment(self):
        """Gets the requested_segment of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501


        :return: The requested_segment of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
        :rtype: str
        """
        return self._requested_segment

    @requested_segment.setter
    def requested_segment(self, requested_segment):
        """Sets the requested_segment of this UpdateAutomatedInboxPlacementScheduleOptions.


        :param requested_segment: The requested_segment of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
        :type: str
        """
        allowed_values = [None,"ALL_INBOXES", "PERSONAL_INBOXES", "PROFESSIONAL_INBOXES"]  # noqa: E501
        if self.local_vars_configuration.client_side_validation and requested_segment not in allowed_values:  # noqa: E501
            raise ValueError(
                "Invalid value for `requested_segment` ({0}), must be one of {1}"  # noqa: E501
                .format(requested_segment, allowed_values)
            )

        self._requested_segment = requested_segment

    @property
    def seedlist_profile(self):
        """Gets the seedlist_profile of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501


        :return: The seedlist_profile of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
        :rtype: str
        """
        return self._seedlist_profile

    @seedlist_profile.setter
    def seedlist_profile(self, seedlist_profile):
        """Sets the seedlist_profile of this UpdateAutomatedInboxPlacementScheduleOptions.


        :param seedlist_profile: The seedlist_profile of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
        :type: str
        """
        if (self.local_vars_configuration.client_side_validation and
                seedlist_profile is not None and len(seedlist_profile) > 255):
            raise ValueError("Invalid value for `seedlist_profile`, length must be less than or equal to `255`")  # noqa: E501
        if (self.local_vars_configuration.client_side_validation and
                seedlist_profile is not None and len(seedlist_profile) < 0):
            raise ValueError("Invalid value for `seedlist_profile`, length must be greater than or equal to `0`")  # noqa: E501

        self._seedlist_profile = seedlist_profile

    @property
    def subject_template(self):
        """Gets the subject_template of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501


        :return: The subject_template of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
        :rtype: str
        """
        return self._subject_template

    @subject_template.setter
    def subject_template(self, subject_template):
        """Sets the subject_template of this UpdateAutomatedInboxPlacementScheduleOptions.


        :param subject_template: The subject_template of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
        :type: str
        """
        if (self.local_vars_configuration.client_side_validation and
                subject_template is not None and len(subject_template) > 998):
            raise ValueError("Invalid value for `subject_template`, length must be less than or equal to `998`")  # noqa: E501
        if (self.local_vars_configuration.client_side_validation and
                subject_template is not None and len(subject_template) < 1):
            raise ValueError("Invalid value for `subject_template`, length must be greater than or equal to `1`")  # noqa: E501

        self._subject_template = subject_template

    @property
    def text_body_template(self):
        """Gets the text_body_template of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501


        :return: The text_body_template of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
        :rtype: str
        """
        return self._text_body_template

    @text_body_template.setter
    def text_body_template(self, text_body_template):
        """Sets the text_body_template of this UpdateAutomatedInboxPlacementScheduleOptions.


        :param text_body_template: The text_body_template of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
        :type: str
        """
        if (self.local_vars_configuration.client_side_validation and
                text_body_template is not None and len(text_body_template) > 200000):
            raise ValueError("Invalid value for `text_body_template`, length must be less than or equal to `200000`")  # noqa: E501
        if (self.local_vars_configuration.client_side_validation and
                text_body_template is not None and len(text_body_template) < 0):
            raise ValueError("Invalid value for `text_body_template`, length must be greater than or equal to `0`")  # noqa: E501

        self._text_body_template = text_body_template

    @property
    def html_body_template(self):
        """Gets the html_body_template of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501


        :return: The html_body_template of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
        :rtype: str
        """
        return self._html_body_template

    @html_body_template.setter
    def html_body_template(self, html_body_template):
        """Sets the html_body_template of this UpdateAutomatedInboxPlacementScheduleOptions.


        :param html_body_template: The html_body_template of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
        :type: str
        """
        if (self.local_vars_configuration.client_side_validation and
                html_body_template is not None and len(html_body_template) > 500000):
            raise ValueError("Invalid value for `html_body_template`, length must be less than or equal to `500000`")  # noqa: E501
        if (self.local_vars_configuration.client_side_validation and
                html_body_template is not None and len(html_body_template) < 0):
            raise ValueError("Invalid value for `html_body_template`, length must be greater than or equal to `0`")  # noqa: E501

        self._html_body_template = html_body_template

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, UpdateAutomatedInboxPlacementScheduleOptions):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, UpdateAutomatedInboxPlacementScheduleOptions):
            return True

        return self.to_dict() != other.to_dict()

Class variables

var attribute_map
var openapi_types

Instance variables

prop enabled

Gets the enabled of this UpdateAutomatedInboxPlacementScheduleOptions. # noqa: E501

:return: The enabled of this UpdateAutomatedInboxPlacementScheduleOptions. # noqa: E501 :rtype: bool

Expand source code
@property
def enabled(self):
    """Gets the enabled of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501


    :return: The enabled of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
    :rtype: bool
    """
    return self._enabled
prop html_body_template

Gets the html_body_template of this UpdateAutomatedInboxPlacementScheduleOptions. # noqa: E501

:return: The html_body_template of this UpdateAutomatedInboxPlacementScheduleOptions. # noqa: E501 :rtype: str

Expand source code
@property
def html_body_template(self):
    """Gets the html_body_template of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501


    :return: The html_body_template of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
    :rtype: str
    """
    return self._html_body_template
prop interval_minutes

Gets the interval_minutes of this UpdateAutomatedInboxPlacementScheduleOptions. # noqa: E501

:return: The interval_minutes of this UpdateAutomatedInboxPlacementScheduleOptions. # noqa: E501 :rtype: int

Expand source code
@property
def interval_minutes(self):
    """Gets the interval_minutes of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501


    :return: The interval_minutes of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
    :rtype: int
    """
    return self._interval_minutes
prop name

Gets the name of this UpdateAutomatedInboxPlacementScheduleOptions. # noqa: E501

:return: The name of this UpdateAutomatedInboxPlacementScheduleOptions. # noqa: E501 :rtype: str

Expand source code
@property
def name(self):
    """Gets the name of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501


    :return: The name of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
    :rtype: str
    """
    return self._name
prop requested_segment

Gets the requested_segment of this UpdateAutomatedInboxPlacementScheduleOptions. # noqa: E501

:return: The requested_segment of this UpdateAutomatedInboxPlacementScheduleOptions. # noqa: E501 :rtype: str

Expand source code
@property
def requested_segment(self):
    """Gets the requested_segment of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501


    :return: The requested_segment of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
    :rtype: str
    """
    return self._requested_segment
prop seedlist_profile

Gets the seedlist_profile of this UpdateAutomatedInboxPlacementScheduleOptions. # noqa: E501

:return: The seedlist_profile of this UpdateAutomatedInboxPlacementScheduleOptions. # noqa: E501 :rtype: str

Expand source code
@property
def seedlist_profile(self):
    """Gets the seedlist_profile of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501


    :return: The seedlist_profile of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
    :rtype: str
    """
    return self._seedlist_profile
prop subject_template

Gets the subject_template of this UpdateAutomatedInboxPlacementScheduleOptions. # noqa: E501

:return: The subject_template of this UpdateAutomatedInboxPlacementScheduleOptions. # noqa: E501 :rtype: str

Expand source code
@property
def subject_template(self):
    """Gets the subject_template of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501


    :return: The subject_template of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
    :rtype: str
    """
    return self._subject_template
prop text_body_template

Gets the text_body_template of this UpdateAutomatedInboxPlacementScheduleOptions. # noqa: E501

:return: The text_body_template of this UpdateAutomatedInboxPlacementScheduleOptions. # noqa: E501 :rtype: str

Expand source code
@property
def text_body_template(self):
    """Gets the text_body_template of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501


    :return: The text_body_template of this UpdateAutomatedInboxPlacementScheduleOptions.  # noqa: E501
    :rtype: str
    """
    return self._text_body_template

Methods

def to_dict(self)

Returns the model properties as a dict

def to_str(self)

Returns the string representation of the model