def METHOD_NAME(self):
    _content_value, _builder = self.new_content_builder(
        self.ctx.args,
        typ=AAZObjectType,
        typ_kwargs={"flags": {"required": True, "client_flatten": True}}
    )
    _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}})
    properties = _builder.get(".properties")
    if properties is not None:
        properties.set_prop("rights", AAZListType, ".rights", typ_kwargs={"flags": {"required": True}})
    rights = _builder.get(".properties.rights")
    if rights is not None:
        rights.set_elements(AAZStrType, ".")
    return self.serialize_content(_content_value)