# coding: utf-8

"""
    vault/kernel/core_api/proto/v1/accounts/core_api_account_schedule_tags.proto

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: version not set
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

class SmartContractsSimulateExistingAccountRequest(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """
    """
    Attributes:
      swagger_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.
    """
    swagger_types = {
        'account_id': 'str',
        'start_timestamp': 'datetime',
        'end_timestamp': 'datetime',
        'events': 'list[SmartContractsExternalEvent]',
        'return_event_log': 'bool'
    }

    attribute_map = {
        'account_id': 'account_id',
        'start_timestamp': 'start_timestamp',
        'end_timestamp': 'end_timestamp',
        'events': 'events',
        'return_event_log': 'return_event_log'
    }

    def __init__(self, account_id=None, start_timestamp=None, end_timestamp=None, events=None, return_event_log=None):  # noqa: E501
        """SmartContractsSimulateExistingAccountRequest - a model defined in Swagger"""  # noqa: E501
        self._account_id = None
        self._start_timestamp = None
        self._end_timestamp = None
        self._events = None
        self._return_event_log = None
        self.discriminator = None
        if account_id is not None:
            self.account_id = account_id
        if start_timestamp is not None:
            self.start_timestamp = start_timestamp
        if end_timestamp is not None:
            self.end_timestamp = end_timestamp
        if events is not None:
            self.events = events
        if return_event_log is not None:
            self.return_event_log = return_event_log

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

        The account ID to be simulated.  # noqa: E501

        :return: The account_id of this SmartContractsSimulateExistingAccountRequest.  # noqa: E501
        :rtype: str
        """
        return self._account_id

    @account_id.setter
    def account_id(self, account_id):
        """Sets the account_id of this SmartContractsSimulateExistingAccountRequest.

        The account ID to be simulated.  # noqa: E501

        :param account_id: The account_id of this SmartContractsSimulateExistingAccountRequest.  # noqa: E501
        :type: str
        """

        self._account_id = account_id

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

        The time the simulation should start. Optional (defaults to current time).  # noqa: E501

        :return: The start_timestamp of this SmartContractsSimulateExistingAccountRequest.  # noqa: E501
        :rtype: datetime
        """
        return self._start_timestamp

    @start_timestamp.setter
    def start_timestamp(self, start_timestamp):
        """Sets the start_timestamp of this SmartContractsSimulateExistingAccountRequest.

        The time the simulation should start. Optional (defaults to current time).  # noqa: E501

        :param start_timestamp: The start_timestamp of this SmartContractsSimulateExistingAccountRequest.  # noqa: E501
        :type: datetime
        """

        self._start_timestamp = start_timestamp

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

        The time the simulation should end.  # noqa: E501

        :return: The end_timestamp of this SmartContractsSimulateExistingAccountRequest.  # noqa: E501
        :rtype: datetime
        """
        return self._end_timestamp

    @end_timestamp.setter
    def end_timestamp(self, end_timestamp):
        """Sets the end_timestamp of this SmartContractsSimulateExistingAccountRequest.

        The time the simulation should end.  # noqa: E501

        :param end_timestamp: The end_timestamp of this SmartContractsSimulateExistingAccountRequest.  # noqa: E501
        :type: datetime
        """

        self._end_timestamp = end_timestamp

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

        The list of events that should be fed into the simulator to simulate external actions on either Vault or the account.  # noqa: E501

        :return: The events of this SmartContractsSimulateExistingAccountRequest.  # noqa: E501
        :rtype: list[SmartContractsExternalEvent]
        """
        return self._events

    @events.setter
    def events(self, events):
        """Sets the events of this SmartContractsSimulateExistingAccountRequest.

        The list of events that should be fed into the simulator to simulate external actions on either Vault or the account.  # noqa: E501

        :param events: The events of this SmartContractsSimulateExistingAccountRequest.  # noqa: E501
        :type: list[SmartContractsExternalEvent]
        """

        self._events = events

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

        If set to true, the event log will be returned.  # noqa: E501

        :return: The return_event_log of this SmartContractsSimulateExistingAccountRequest.  # noqa: E501
        :rtype: bool
        """
        return self._return_event_log

    @return_event_log.setter
    def return_event_log(self, return_event_log):
        """Sets the return_event_log of this SmartContractsSimulateExistingAccountRequest.

        If set to true, the event log will be returned.  # noqa: E501

        :param return_event_log: The return_event_log of this SmartContractsSimulateExistingAccountRequest.  # noqa: E501
        :type: bool
        """

        self._return_event_log = return_event_log

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

        for attr, _ in six.iteritems(self.swagger_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
        if issubclass(SmartContractsSimulateExistingAccountRequest, dict):
            for key, value in self.items():
                result[key] = 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, SmartContractsSimulateExistingAccountRequest):
            return False

        return self.__dict__ == other.__dict__

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