'Initialize the SegmentMembershipInstance
:returns: twilio.rest.notify.v1.service.user.segment_memberships.SegmentMembershipInstance
:rtype: twilio.rest.notify.v1.service.user.segment_memberships.SegmentMembershipInstance'

def __init__(self, version, payload, service_sid, identity, segment=None):

    super(SegmentMembershipInstance, self).__init__(version)
    self._properties = {'account_sid': payload['account_sid'], 'service_sid': payload['service_sid'], 'identity': payload['identity'], 'segment': payload['segment'], 'url': payload['url']}
    self._context = None
    self._solution = {'service_sid': service_sid, 'identity': identity, 'segment': (segment or self._properties['segment'])}
