Module mailslurp_client.models.email_warmup_placement_delta_dto

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 EmailWarmupPlacementDeltaDto (provider=None, baseline_inbox_percent=None, latest_inbox_percent=None, percentage_point_change=None, baseline_sample_size=None, latest_sample_size=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.

EmailWarmupPlacementDeltaDto - a model defined in OpenAPI

Expand source code
class EmailWarmupPlacementDeltaDto(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 = {
        'provider': 'str',
        'baseline_inbox_percent': 'int',
        'latest_inbox_percent': 'int',
        'percentage_point_change': 'int',
        'baseline_sample_size': 'int',
        'latest_sample_size': 'int'
    }

    attribute_map = {
        'provider': 'provider',
        'baseline_inbox_percent': 'baselineInboxPercent',
        'latest_inbox_percent': 'latestInboxPercent',
        'percentage_point_change': 'percentagePointChange',
        'baseline_sample_size': 'baselineSampleSize',
        'latest_sample_size': 'latestSampleSize'
    }

    def __init__(self, provider=None, baseline_inbox_percent=None, latest_inbox_percent=None, percentage_point_change=None, baseline_sample_size=None, latest_sample_size=None, local_vars_configuration=None):  # noqa: E501
        """EmailWarmupPlacementDeltaDto - 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._provider = None
        self._baseline_inbox_percent = None
        self._latest_inbox_percent = None
        self._percentage_point_change = None
        self._baseline_sample_size = None
        self._latest_sample_size = None
        self.discriminator = None

        self.provider = provider
        self.baseline_inbox_percent = baseline_inbox_percent
        self.latest_inbox_percent = latest_inbox_percent
        self.percentage_point_change = percentage_point_change
        self.baseline_sample_size = baseline_sample_size
        self.latest_sample_size = latest_sample_size

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


        :return: The provider of this EmailWarmupPlacementDeltaDto.  # noqa: E501
        :rtype: str
        """
        return self._provider

    @provider.setter
    def provider(self, provider):
        """Sets the provider of this EmailWarmupPlacementDeltaDto.


        :param provider: The provider of this EmailWarmupPlacementDeltaDto.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and provider is None:  # noqa: E501
            raise ValueError("Invalid value for `provider`, must not be `None`")  # noqa: E501

        self._provider = provider

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


        :return: The baseline_inbox_percent of this EmailWarmupPlacementDeltaDto.  # noqa: E501
        :rtype: int
        """
        return self._baseline_inbox_percent

    @baseline_inbox_percent.setter
    def baseline_inbox_percent(self, baseline_inbox_percent):
        """Sets the baseline_inbox_percent of this EmailWarmupPlacementDeltaDto.


        :param baseline_inbox_percent: The baseline_inbox_percent of this EmailWarmupPlacementDeltaDto.  # noqa: E501
        :type: int
        """
        if self.local_vars_configuration.client_side_validation and baseline_inbox_percent is None:  # noqa: E501
            raise ValueError("Invalid value for `baseline_inbox_percent`, must not be `None`")  # noqa: E501

        self._baseline_inbox_percent = baseline_inbox_percent

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


        :return: The latest_inbox_percent of this EmailWarmupPlacementDeltaDto.  # noqa: E501
        :rtype: int
        """
        return self._latest_inbox_percent

    @latest_inbox_percent.setter
    def latest_inbox_percent(self, latest_inbox_percent):
        """Sets the latest_inbox_percent of this EmailWarmupPlacementDeltaDto.


        :param latest_inbox_percent: The latest_inbox_percent of this EmailWarmupPlacementDeltaDto.  # noqa: E501
        :type: int
        """
        if self.local_vars_configuration.client_side_validation and latest_inbox_percent is None:  # noqa: E501
            raise ValueError("Invalid value for `latest_inbox_percent`, must not be `None`")  # noqa: E501

        self._latest_inbox_percent = latest_inbox_percent

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


        :return: The percentage_point_change of this EmailWarmupPlacementDeltaDto.  # noqa: E501
        :rtype: int
        """
        return self._percentage_point_change

    @percentage_point_change.setter
    def percentage_point_change(self, percentage_point_change):
        """Sets the percentage_point_change of this EmailWarmupPlacementDeltaDto.


        :param percentage_point_change: The percentage_point_change of this EmailWarmupPlacementDeltaDto.  # noqa: E501
        :type: int
        """
        if self.local_vars_configuration.client_side_validation and percentage_point_change is None:  # noqa: E501
            raise ValueError("Invalid value for `percentage_point_change`, must not be `None`")  # noqa: E501

        self._percentage_point_change = percentage_point_change

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


        :return: The baseline_sample_size of this EmailWarmupPlacementDeltaDto.  # noqa: E501
        :rtype: int
        """
        return self._baseline_sample_size

    @baseline_sample_size.setter
    def baseline_sample_size(self, baseline_sample_size):
        """Sets the baseline_sample_size of this EmailWarmupPlacementDeltaDto.


        :param baseline_sample_size: The baseline_sample_size of this EmailWarmupPlacementDeltaDto.  # noqa: E501
        :type: int
        """
        if self.local_vars_configuration.client_side_validation and baseline_sample_size is None:  # noqa: E501
            raise ValueError("Invalid value for `baseline_sample_size`, must not be `None`")  # noqa: E501

        self._baseline_sample_size = baseline_sample_size

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


        :return: The latest_sample_size of this EmailWarmupPlacementDeltaDto.  # noqa: E501
        :rtype: int
        """
        return self._latest_sample_size

    @latest_sample_size.setter
    def latest_sample_size(self, latest_sample_size):
        """Sets the latest_sample_size of this EmailWarmupPlacementDeltaDto.


        :param latest_sample_size: The latest_sample_size of this EmailWarmupPlacementDeltaDto.  # noqa: E501
        :type: int
        """
        if self.local_vars_configuration.client_side_validation and latest_sample_size is None:  # noqa: E501
            raise ValueError("Invalid value for `latest_sample_size`, must not be `None`")  # noqa: E501

        self._latest_sample_size = latest_sample_size

    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, EmailWarmupPlacementDeltaDto):
            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, EmailWarmupPlacementDeltaDto):
            return True

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

Class variables

var attribute_map
var openapi_types

Instance variables

prop baseline_inbox_percent

Gets the baseline_inbox_percent of this EmailWarmupPlacementDeltaDto. # noqa: E501

:return: The baseline_inbox_percent of this EmailWarmupPlacementDeltaDto. # noqa: E501 :rtype: int

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


    :return: The baseline_inbox_percent of this EmailWarmupPlacementDeltaDto.  # noqa: E501
    :rtype: int
    """
    return self._baseline_inbox_percent
prop baseline_sample_size

Gets the baseline_sample_size of this EmailWarmupPlacementDeltaDto. # noqa: E501

:return: The baseline_sample_size of this EmailWarmupPlacementDeltaDto. # noqa: E501 :rtype: int

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


    :return: The baseline_sample_size of this EmailWarmupPlacementDeltaDto.  # noqa: E501
    :rtype: int
    """
    return self._baseline_sample_size
prop latest_inbox_percent

Gets the latest_inbox_percent of this EmailWarmupPlacementDeltaDto. # noqa: E501

:return: The latest_inbox_percent of this EmailWarmupPlacementDeltaDto. # noqa: E501 :rtype: int

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


    :return: The latest_inbox_percent of this EmailWarmupPlacementDeltaDto.  # noqa: E501
    :rtype: int
    """
    return self._latest_inbox_percent
prop latest_sample_size

Gets the latest_sample_size of this EmailWarmupPlacementDeltaDto. # noqa: E501

:return: The latest_sample_size of this EmailWarmupPlacementDeltaDto. # noqa: E501 :rtype: int

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


    :return: The latest_sample_size of this EmailWarmupPlacementDeltaDto.  # noqa: E501
    :rtype: int
    """
    return self._latest_sample_size
prop percentage_point_change

Gets the percentage_point_change of this EmailWarmupPlacementDeltaDto. # noqa: E501

:return: The percentage_point_change of this EmailWarmupPlacementDeltaDto. # noqa: E501 :rtype: int

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


    :return: The percentage_point_change of this EmailWarmupPlacementDeltaDto.  # noqa: E501
    :rtype: int
    """
    return self._percentage_point_change
prop provider

Gets the provider of this EmailWarmupPlacementDeltaDto. # noqa: E501

:return: The provider of this EmailWarmupPlacementDeltaDto. # noqa: E501 :rtype: str

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


    :return: The provider of this EmailWarmupPlacementDeltaDto.  # noqa: E501
    :rtype: str
    """
    return self._provider

Methods

def to_dict(self)

Returns the model properties as a dict

def to_str(self)

Returns the string representation of the model