# coding: utf-8

"""
    Cloudera Manager API

    <h1>Cloudera Manager API v57</h1>       <p>Introduced in Cloudera Manager 7.13.1</p>       <p><a href=\"http://www.cloudera.com/documentation.html\">Cloudera Product Documentation</a></p>  # noqa: E501

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

import pprint
import re  # noqa: F401

import six

class IcebergReplicationYarnOptions(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 = {
        'scheduler_pool_name': 'str',
        'number_of_mappers': 'int',
        'bandwidth_per_map': 'int'
    }

    attribute_map = {
        'scheduler_pool_name': 'schedulerPoolName',
        'number_of_mappers': 'numberOfMappers',
        'bandwidth_per_map': 'bandwidthPerMap'
    }

    def __init__(self, scheduler_pool_name=None, number_of_mappers=None, bandwidth_per_map=None):  # noqa: E501
        """IcebergReplicationYarnOptions - a model defined in Swagger"""  # noqa: E501
        self._scheduler_pool_name = None
        self._number_of_mappers = None
        self._bandwidth_per_map = None
        self.discriminator = None
        if scheduler_pool_name is not None:
            self.scheduler_pool_name = scheduler_pool_name
        if number_of_mappers is not None:
            self.number_of_mappers = number_of_mappers
        if bandwidth_per_map is not None:
            self.bandwidth_per_map = bandwidth_per_map

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


        :return: The scheduler_pool_name of this IcebergReplicationYarnOptions.  # noqa: E501
        :rtype: str
        """
        return self._scheduler_pool_name

    @scheduler_pool_name.setter
    def scheduler_pool_name(self, scheduler_pool_name):
        """Sets the scheduler_pool_name of this IcebergReplicationYarnOptions.


        :param scheduler_pool_name: The scheduler_pool_name of this IcebergReplicationYarnOptions.  # noqa: E501
        :type: str
        """

        self._scheduler_pool_name = scheduler_pool_name

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


        :return: The number_of_mappers of this IcebergReplicationYarnOptions.  # noqa: E501
        :rtype: int
        """
        return self._number_of_mappers

    @number_of_mappers.setter
    def number_of_mappers(self, number_of_mappers):
        """Sets the number_of_mappers of this IcebergReplicationYarnOptions.


        :param number_of_mappers: The number_of_mappers of this IcebergReplicationYarnOptions.  # noqa: E501
        :type: int
        """

        self._number_of_mappers = number_of_mappers

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


        :return: The bandwidth_per_map of this IcebergReplicationYarnOptions.  # noqa: E501
        :rtype: int
        """
        return self._bandwidth_per_map

    @bandwidth_per_map.setter
    def bandwidth_per_map(self, bandwidth_per_map):
        """Sets the bandwidth_per_map of this IcebergReplicationYarnOptions.


        :param bandwidth_per_map: The bandwidth_per_map of this IcebergReplicationYarnOptions.  # noqa: E501
        :type: int
        """

        self._bandwidth_per_map = bandwidth_per_map

    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(IcebergReplicationYarnOptions, 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, IcebergReplicationYarnOptions):
            return False

        return self.__dict__ == other.__dict__

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