Module mailslurp_client.models.inbox_placement_target_result_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 InboxPlacementTargetResultDto (seed_account_id=None, seed_address=None, provider=None, segment=None, status=None, placement_verdict=None, placement_folder=None, received_at=None, latency_ms=None, evidence=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.
InboxPlacementTargetResultDto - a model defined in OpenAPI
Expand source code
class InboxPlacementTargetResultDto(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 = { 'seed_account_id': 'int', 'seed_address': 'str', 'provider': 'str', 'segment': 'str', 'status': 'str', 'placement_verdict': 'str', 'placement_folder': 'str', 'received_at': 'datetime', 'latency_ms': 'int', 'evidence': 'dict(str, str)' } attribute_map = { 'seed_account_id': 'seedAccountId', 'seed_address': 'seedAddress', 'provider': 'provider', 'segment': 'segment', 'status': 'status', 'placement_verdict': 'placementVerdict', 'placement_folder': 'placementFolder', 'received_at': 'receivedAt', 'latency_ms': 'latencyMs', 'evidence': 'evidence' } def __init__(self, seed_account_id=None, seed_address=None, provider=None, segment=None, status=None, placement_verdict=None, placement_folder=None, received_at=None, latency_ms=None, evidence=None, local_vars_configuration=None): # noqa: E501 """InboxPlacementTargetResultDto - 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._seed_account_id = None self._seed_address = None self._provider = None self._segment = None self._status = None self._placement_verdict = None self._placement_folder = None self._received_at = None self._latency_ms = None self._evidence = None self.discriminator = None self.seed_account_id = seed_account_id self.seed_address = seed_address self.provider = provider self.segment = segment self.status = status self.placement_verdict = placement_verdict self.placement_folder = placement_folder self.received_at = received_at self.latency_ms = latency_ms self.evidence = evidence @property def seed_account_id(self): """Gets the seed_account_id of this InboxPlacementTargetResultDto. # noqa: E501 :return: The seed_account_id of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: int """ return self._seed_account_id @seed_account_id.setter def seed_account_id(self, seed_account_id): """Sets the seed_account_id of this InboxPlacementTargetResultDto. :param seed_account_id: The seed_account_id of this InboxPlacementTargetResultDto. # noqa: E501 :type: int """ if self.local_vars_configuration.client_side_validation and seed_account_id is None: # noqa: E501 raise ValueError("Invalid value for `seed_account_id`, must not be `None`") # noqa: E501 self._seed_account_id = seed_account_id @property def seed_address(self): """Gets the seed_address of this InboxPlacementTargetResultDto. # noqa: E501 :return: The seed_address of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: str """ return self._seed_address @seed_address.setter def seed_address(self, seed_address): """Sets the seed_address of this InboxPlacementTargetResultDto. :param seed_address: The seed_address of this InboxPlacementTargetResultDto. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and seed_address is None: # noqa: E501 raise ValueError("Invalid value for `seed_address`, must not be `None`") # noqa: E501 self._seed_address = seed_address @property def provider(self): """Gets the provider of this InboxPlacementTargetResultDto. # noqa: E501 :return: The provider of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: str """ return self._provider @provider.setter def provider(self, provider): """Sets the provider of this InboxPlacementTargetResultDto. :param provider: The provider of this InboxPlacementTargetResultDto. # 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 segment(self): """Gets the segment of this InboxPlacementTargetResultDto. # noqa: E501 :return: The segment of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: str """ return self._segment @segment.setter def segment(self, segment): """Sets the segment of this InboxPlacementTargetResultDto. :param segment: The segment of this InboxPlacementTargetResultDto. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and segment is None: # noqa: E501 raise ValueError("Invalid value for `segment`, must not be `None`") # noqa: E501 self._segment = segment @property def status(self): """Gets the status of this InboxPlacementTargetResultDto. # noqa: E501 :return: The status of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): """Sets the status of this InboxPlacementTargetResultDto. :param status: The status of this InboxPlacementTargetResultDto. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def placement_verdict(self): """Gets the placement_verdict of this InboxPlacementTargetResultDto. # noqa: E501 :return: The placement_verdict of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: str """ return self._placement_verdict @placement_verdict.setter def placement_verdict(self, placement_verdict): """Sets the placement_verdict of this InboxPlacementTargetResultDto. :param placement_verdict: The placement_verdict of this InboxPlacementTargetResultDto. # noqa: E501 :type: str """ self._placement_verdict = placement_verdict @property def placement_folder(self): """Gets the placement_folder of this InboxPlacementTargetResultDto. # noqa: E501 :return: The placement_folder of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: str """ return self._placement_folder @placement_folder.setter def placement_folder(self, placement_folder): """Sets the placement_folder of this InboxPlacementTargetResultDto. :param placement_folder: The placement_folder of this InboxPlacementTargetResultDto. # noqa: E501 :type: str """ self._placement_folder = placement_folder @property def received_at(self): """Gets the received_at of this InboxPlacementTargetResultDto. # noqa: E501 :return: The received_at of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: datetime """ return self._received_at @received_at.setter def received_at(self, received_at): """Sets the received_at of this InboxPlacementTargetResultDto. :param received_at: The received_at of this InboxPlacementTargetResultDto. # noqa: E501 :type: datetime """ self._received_at = received_at @property def latency_ms(self): """Gets the latency_ms of this InboxPlacementTargetResultDto. # noqa: E501 :return: The latency_ms of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: int """ return self._latency_ms @latency_ms.setter def latency_ms(self, latency_ms): """Sets the latency_ms of this InboxPlacementTargetResultDto. :param latency_ms: The latency_ms of this InboxPlacementTargetResultDto. # noqa: E501 :type: int """ self._latency_ms = latency_ms @property def evidence(self): """Gets the evidence of this InboxPlacementTargetResultDto. # noqa: E501 :return: The evidence of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: dict(str, str) """ return self._evidence @evidence.setter def evidence(self, evidence): """Sets the evidence of this InboxPlacementTargetResultDto. :param evidence: The evidence of this InboxPlacementTargetResultDto. # noqa: E501 :type: dict(str, str) """ if self.local_vars_configuration.client_side_validation and evidence is None: # noqa: E501 raise ValueError("Invalid value for `evidence`, must not be `None`") # noqa: E501 self._evidence = evidence 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, InboxPlacementTargetResultDto): 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, InboxPlacementTargetResultDto): return True return self.to_dict() != other.to_dict()Class variables
var attribute_mapvar openapi_types
Instance variables
prop evidence-
Gets the evidence of this InboxPlacementTargetResultDto. # noqa: E501
:return: The evidence of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: dict(str, str)
Expand source code
@property def evidence(self): """Gets the evidence of this InboxPlacementTargetResultDto. # noqa: E501 :return: The evidence of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: dict(str, str) """ return self._evidence prop latency_ms-
Gets the latency_ms of this InboxPlacementTargetResultDto. # noqa: E501
:return: The latency_ms of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: int
Expand source code
@property def latency_ms(self): """Gets the latency_ms of this InboxPlacementTargetResultDto. # noqa: E501 :return: The latency_ms of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: int """ return self._latency_ms prop placement_folder-
Gets the placement_folder of this InboxPlacementTargetResultDto. # noqa: E501
:return: The placement_folder of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: str
Expand source code
@property def placement_folder(self): """Gets the placement_folder of this InboxPlacementTargetResultDto. # noqa: E501 :return: The placement_folder of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: str """ return self._placement_folder prop placement_verdict-
Gets the placement_verdict of this InboxPlacementTargetResultDto. # noqa: E501
:return: The placement_verdict of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: str
Expand source code
@property def placement_verdict(self): """Gets the placement_verdict of this InboxPlacementTargetResultDto. # noqa: E501 :return: The placement_verdict of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: str """ return self._placement_verdict prop provider-
Gets the provider of this InboxPlacementTargetResultDto. # noqa: E501
:return: The provider of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: str
Expand source code
@property def provider(self): """Gets the provider of this InboxPlacementTargetResultDto. # noqa: E501 :return: The provider of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: str """ return self._provider prop received_at-
Gets the received_at of this InboxPlacementTargetResultDto. # noqa: E501
:return: The received_at of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: datetime
Expand source code
@property def received_at(self): """Gets the received_at of this InboxPlacementTargetResultDto. # noqa: E501 :return: The received_at of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: datetime """ return self._received_at prop seed_account_id-
Gets the seed_account_id of this InboxPlacementTargetResultDto. # noqa: E501
:return: The seed_account_id of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: int
Expand source code
@property def seed_account_id(self): """Gets the seed_account_id of this InboxPlacementTargetResultDto. # noqa: E501 :return: The seed_account_id of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: int """ return self._seed_account_id prop seed_address-
Gets the seed_address of this InboxPlacementTargetResultDto. # noqa: E501
:return: The seed_address of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: str
Expand source code
@property def seed_address(self): """Gets the seed_address of this InboxPlacementTargetResultDto. # noqa: E501 :return: The seed_address of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: str """ return self._seed_address prop segment-
Gets the segment of this InboxPlacementTargetResultDto. # noqa: E501
:return: The segment of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: str
Expand source code
@property def segment(self): """Gets the segment of this InboxPlacementTargetResultDto. # noqa: E501 :return: The segment of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: str """ return self._segment prop status-
Gets the status of this InboxPlacementTargetResultDto. # noqa: E501
:return: The status of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: str
Expand source code
@property def status(self): """Gets the status of this InboxPlacementTargetResultDto. # noqa: E501 :return: The status of this InboxPlacementTargetResultDto. # noqa: E501 :rtype: str """ return self._status
Methods
def to_dict(self)-
Returns the model properties as a dict
def to_str(self)-
Returns the string representation of the model