'Compare set attributes on this stub to a boto3 ``Volume``.'

def __eq__(self, other):

    equal = True
    for (key, value) in self._volume_attributes.items():
        other_value = getattr(other, key, None)
        if (value is not None):
            if (value != other_value):
                equal = False
        if (other_value is not None):
            if (value != other_value):
                equal = False
    return equal
