# coding: utf-8

"""
    Cloudera Manager API

    <h1>Cloudera Manager API v50</h1>       <p>Introduced in Cloudera Manager 7.8.1</p>       <p><a href=\"http://www.cloudera.com/documentation.html\">Cloudera Product Documentation</a></p>

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


from pprint import pformat
from six import iteritems
import re


class ApiCreateEnvironment(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 = {
        'cm_user': 'str',
        'cm_pass': 'str',
        'cm_address': 'str',
        'cluster_name': 'str',
        'env_name': 'str'
    }

    attribute_map = {
        'cm_user': 'cmUser',
        'cm_pass': 'cmPass',
        'cm_address': 'cmAddress',
        'cluster_name': 'clusterName',
        'env_name': 'envName'
    }

    def __init__(self, cm_user=None, cm_pass=None, cm_address=None, cluster_name=None, env_name=None):
        """
        ApiCreateEnvironment - a model defined in Swagger
        """

        self._cm_user = None
        self._cm_pass = None
        self._cm_address = None
        self._cluster_name = None
        self._env_name = None

        if cm_user is not None:
          self.cm_user = cm_user
        if cm_pass is not None:
          self.cm_pass = cm_pass
        if cm_address is not None:
          self.cm_address = cm_address
        if cluster_name is not None:
          self.cluster_name = cluster_name
        if env_name is not None:
          self.env_name = env_name

    @property
    def cm_user(self):
        """
        Gets the cm_user of this ApiCreateEnvironment.
        

        :return: The cm_user of this ApiCreateEnvironment.
        :rtype: str
        """
        return self._cm_user

    @cm_user.setter
    def cm_user(self, cm_user):
        """
        Sets the cm_user of this ApiCreateEnvironment.
        

        :param cm_user: The cm_user of this ApiCreateEnvironment.
        :type: str
        """

        self._cm_user = cm_user

    @property
    def cm_pass(self):
        """
        Gets the cm_pass of this ApiCreateEnvironment.
        

        :return: The cm_pass of this ApiCreateEnvironment.
        :rtype: str
        """
        return self._cm_pass

    @cm_pass.setter
    def cm_pass(self, cm_pass):
        """
        Sets the cm_pass of this ApiCreateEnvironment.
        

        :param cm_pass: The cm_pass of this ApiCreateEnvironment.
        :type: str
        """

        self._cm_pass = cm_pass

    @property
    def cm_address(self):
        """
        Gets the cm_address of this ApiCreateEnvironment.
        

        :return: The cm_address of this ApiCreateEnvironment.
        :rtype: str
        """
        return self._cm_address

    @cm_address.setter
    def cm_address(self, cm_address):
        """
        Sets the cm_address of this ApiCreateEnvironment.
        

        :param cm_address: The cm_address of this ApiCreateEnvironment.
        :type: str
        """

        self._cm_address = cm_address

    @property
    def cluster_name(self):
        """
        Gets the cluster_name of this ApiCreateEnvironment.
        

        :return: The cluster_name of this ApiCreateEnvironment.
        :rtype: str
        """
        return self._cluster_name

    @cluster_name.setter
    def cluster_name(self, cluster_name):
        """
        Sets the cluster_name of this ApiCreateEnvironment.
        

        :param cluster_name: The cluster_name of this ApiCreateEnvironment.
        :type: str
        """

        self._cluster_name = cluster_name

    @property
    def env_name(self):
        """
        Gets the env_name of this ApiCreateEnvironment.
        

        :return: The env_name of this ApiCreateEnvironment.
        :rtype: str
        """
        return self._env_name

    @env_name.setter
    def env_name(self, env_name):
        """
        Sets the env_name of this ApiCreateEnvironment.
        

        :param env_name: The env_name of this ApiCreateEnvironment.
        :type: str
        """

        self._env_name = env_name

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

        for attr, _ in 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

        return result

    def to_str(self):
        """
        Returns the string representation of the model
        """
        return 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, ApiCreateEnvironment):
            return False

        return self.__dict__ == other.__dict__

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