def __setattr__(self, key, value):
    if (key not in self.attribute_map):
        raise KeyError('Invalid key `{}` for `ReplicationPerformance`'.format(key))
    if ((key == 'transmitted_bytes_per_sec') and (value is not None)):
        if (value < 0.0):
            raise ValueError('Invalid value for `transmitted_bytes_per_sec`, must be a value greater than or equal to `0.0`')
    if ((key == 'received_bytes_per_sec') and (value is not None)):
        if (value < 0.0):
            raise ValueError('Invalid value for `received_bytes_per_sec`, must be a value greater than or equal to `0.0`')
    self.__dict__[key] = value
def __setattr__(self, key, value):
    if (key not in self.attribute_map):
        raise KeyError('Invalid key `{}` for `ReplicationPerformance`'.format(key))
    if ((key == 'transmitted_bytes_per_sec') and (value is not None)):
        if (value < 0.0):
            raise ValueError('Invalid value for `transmitted_bytes_per_sec`, must be a value greater than or equal to `0.0`')
    if ((key == 'received_bytes_per_sec') and (value is not None)):
        if (value < 0.0):
            raise ValueError('Invalid value for `received_bytes_per_sec`, must be a value greater than or equal to `0.0`')
    self.__dict__[key] = value