text: # coding: utf-8
  
  """
      Control-M Services
  
      Provides access to BMC Control-M Services  # noqa: E501
  
      OpenAPI spec version: 9.20.215
      Contact: customer_support@bmc.com
      Generated by: https://github.com/swagger-api/swagger-codegen.git
  """
  
  
  import pprint
  import re  # noqa: F401
  
  import six
  
  from clients.ctm_api_client.configuration import Configuration
  
  
  class SettingsMetadataProperties(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 = {
          "components": "list[ComponentMetaDataProperties]",
          "error": "str",
          "selected_component_after_activation": "str",
          "selected_component_before_activation": "str",
      }
  
      attribute_map = {
          "components": "components",
          "error": "error",
          "selected_component_after_activation": "selectedComponentAfterActivation",
          "selected_component_before_activation": "selectedComponentBeforeActivation",
      }
  
      def __init__(
          self,
          components=None,
          error=None,
          selected_component_after_activation=None,
          selected_component_before_activation=None,
          _configuration=None,
      ):  # noqa: E501
          """SettingsMetadataProperties - a model defined in Swagger"""  # noqa: E501
          if _configuration is None:
              _configuration = Configuration()
          self._configuration = _configuration
  
          self._components = None
          self._error = None
          self._selected_component_after_activation = None
          self._selected_component_before_activation = None
          self.discriminator = None
  
          if components is not None:
              self.components = components
          if error is not None:
              self.error = error
          if selected_component_after_activation is not None:
              self.selected_component_after_activation = (
                  selected_component_after_activation
              )
          if selected_component_before_activation is not None:
              self.selected_component_before_activation = (
                  selected_component_before_activation
              )
  
      @property
      def components(self):
          """Gets the components of this SettingsMetadataProperties.  # noqa: E501
  
  
          :return: The components of this SettingsMetadataProperties.  # noqa: E501
          :rtype: list[ComponentMetaDataProperties]
          """
          return self._components
  
      @components.setter
      def components(self, components):
          """Sets the components of this SettingsMetadataProperties.
  
  
          :param components: The components of this SettingsMetadataProperties.  # noqa: E501
          :type: list[ComponentMetaDataProperties]
          """
  
          self._components = components
  
      @property
      def error(self):
          """Gets the error of this SettingsMetadataProperties.  # noqa: E501
  
  
          :return: The error of this SettingsMetadataProperties.  # noqa: E501
          :rtype: str
          """
          return self._error
  
      @error.setter
      def error(self, error):
          """Sets the error of this SettingsMetadataProperties.
  
  
          :param error: The error of this SettingsMetadataProperties.  # noqa: E501
          :type: str
          """
  
          self._error = error
  
      @property
      def selected_component_after_activation(self):
          """Gets the selected_component_after_activation of this SettingsMetadataProperties.  # noqa: E501
  
  
          :return: The selected_component_after_activation of this SettingsMetadataProperties.  # noqa: E501
          :rtype: str
          """
          return self._selected_component_after_activation
  
      @selected_component_after_activation.setter
      def selected_component_after_activation(self, selected_component_after_activation):
          """Sets the selected_component_after_activation of this SettingsMetadataProperties.
  
  
          :param selected_component_after_activation: The selected_component_after_activation of this SettingsMetadataProperties.  # noqa: E501
          :type: str
          """
  
          self._selected_component_after_activation = selected_component_after_activation
  
      @property
      def selected_component_before_activation(self):
          """Gets the selected_component_before_activation of this SettingsMetadataProperties.  # noqa: E501
  
  
          :return: The selected_component_before_activation of this SettingsMetadataProperties.  # noqa: E501
          :rtype: str
          """
          return self._selected_component_before_activation
  
      @selected_component_before_activation.setter
      def selected_component_before_activation(
          self, selected_component_before_activation
      ):
          """Sets the selected_component_before_activation of this SettingsMetadataProperties.
  
  
          :param selected_component_before_activation: The selected_component_before_activation of this SettingsMetadataProperties.  # noqa: E501
          :type: str
          """
  
          self._selected_component_before_activation = (
              selected_component_before_activation
          )
  
      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(SettingsMetadataProperties, 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, SettingsMetadataProperties):
              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, SettingsMetadataProperties):
              return True
  
          return self.to_dict() != other.to_dict()
  