def METHOD_NAME(self, name, value, connection):
    if name == 'keyName':
        self.name = value
    elif name == 'keyFingerprint':
        self.fingerprint = value
    elif name == 'keyMaterial':
        self.material = value
    else:
        setattr(self, name, value)